You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
How do we know that connection is still active before attempting to write data to PLC?
I am currently using
if(s7Connection.isoConnectionState!==4){thrownewError("Not connected to PLC");}else{s7Connection.writeItems(address,data,cb);}
Should we call initiateConnection for every plc operation (read or write to data-blocks)?
something like:
s7Connection.initiateConnection(s7ConnectionDetails,err=>{if(err){reject('Error connecting to PLC.');}else{s7Connection.writeItems(addresses,data,writeStatus=>{s7Connection.dropConnection(()=>{resolve(writeStatus);});});}});
Please help!
The text was updated successfully, but these errors were encountered:
Hi,
How do we know that connection is still active before attempting to write data to PLC?
I am currently using
Should we call
initiateConnection
for every plc operation (read or write to data-blocks)?something like:
Please help!
The text was updated successfully, but these errors were encountered: