Why does my ST code only send UDP message once?
Advertisements I set MainTask to execute "PLC_PRG" every 20 milliseconds. screenshot Code in "PLC_PRG": PROGRAM PLC_PRG VAR str: STRING := ‘abc123456789′; UDP_Peer_1: NBS.UDP_Peer; UDP_Send_1: NBS.UDP_Send; ipAddress_PC:STRING:=’192.168.1.200′; IP_PC: NBS.IP_ADDR; ipAddress_PLC:STRING:=’192.168.1.101’; IP_PLC: NBS.IP_ADDR; Sended:BOOL; END_VAR IP_PC.sAddr:=ipAddress_PC; IP_PLC.sAddr:=ipAddress_PLC; UDP_Peer_1( xEnable:= TRUE, xDone=> , xBusy=> , xError=> , ipAddr:= IP_PLC, uiPort:= 12000, ipMultiCast:= , eError=> , xActive=> , hPeer=>… Read More Why does my ST code only send UDP message once?