Modbus_reset_fault:
If Inverter_type = 0 Then '
Modbus_data_word = &H0009 ' adres 00 01 / wartosc 00 09 (dowolna)
Print #1 , Makemodbus(0 , 6 , &H0001 , Modbus_data_word); ' slave 0, function 6, adres &H0001 , data &H0009
Waitms 50 : Reset Watchdog
End If
If Inverter_type = 1 Then
Modbus_data_word = &H0009 ' adres 20 00 / wartosc 00 09
Print #1 , Makemodbus(1 , 6 , &H2000 , Modbus_data_word); ' slave 1, function 6, adres &H2000 , data &H0009
Waitms 50 : Reset Watchdog
End If
Return
|