That's what i thought. I have the plc polling data from 2 boilers and writing it to a cabinet as follows.
PollBoiler1() // in this function I start by opening the TCP connection polling the Modbus data and end by closing it with a delay of 5 seconds.
PollBoiler2() // in this function I start by opening the TCP connection polling the Modbus data and end by closing it with a delay of 5 seconds.
WriteToCabinet() // in this function I start by opening the TCP connection writing the Modbus data received from boiler 1 and 2 and then end by closing it with a delay of 5 seconds.
When I close the connection I need a delay of 5 seconds before I can reconnect it this true? what would you say is the min time?
ConnectTCP()-----------------------------
PRINT #4 "<MBTCPCONNECT "+ D$ +":502>" 'CONNECT TO MOORE PAC
CALL GetTCPStatusC4
IF STRCMP(A$,"<CONNECTED>")<> 0 ' did not received "CONNECTED" message
SETLCD 2,1,"Not Connected "
else
SETLCD 2,1,"Connected "
ENDIF
RETURN
-----------------------------------------------
CloseTCP ----------------------------------
Print #4 </CLOSE>
DELAY 5000
RETURN
-----------------------------------------------
Thank you
Ed