Modbus connection terminates due to popup error "runtime error #16 (watchdog expired Task = default task)"
I am currently running my PLC as a slave, and its setting a coil bit by a modbus master..
When i send commands to it i get the error message?
"runtime error #16 (watchdog expired Task = default task)"
I guess it might have to do with some timing?..
I am not sure i understand the timing issue.
My code litterally looks like this
Bit0 := True;
Bit1 := True;
Bit2 := True;
DO0 := Bit0;
DO1 := Bit1;
DO2 := Bit2;
DO3 := Bit3;
The DOx are output pins mapped
And Bitx are global variables set as
Bit0 AT %MX0.0.0 : BOOL; (* Read: 10001 - Write: 00001 *)
Bit1 AT %MX0.0.1 : BOOL; (* Read: 10002 - Write: 00002 *)
Bit2 AT %MX0.0.2 : BOOL; (* Read: 10003 - Write: 00003 *)
Bit3 AT %MX0.0.3 : BOOL; (* Read: 10004 - Write: 00004 *)
My full project can be found on my dropbox