Author Topic: Is NETCMD$ "atomic"?  (Read 10361 times)

Joel Moore

  • Full Member
  • Posts: 128
    • View Profile
Is NETCMD$ "atomic"?
« on: April 13, 2006, 04:40:05 AM »
If I call NETCMD$ on the same port from multiple locations in my program, will this cause problems?  Does one NETCMD$ call block others from accessing the port and force them to wait until the first one receives a response or times out?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Is NETCMD$ "atomic"?
« Reply #1 on: April 13, 2006, 07:17:07 PM »
The PLC execution is a single threaded so at any one time, only one Custom function may be executed and therefore the NETCMD$ will have to be completed before the custom function can return. Hence there is no possibility of two NETCMD$ being executed simultaneously.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS