Internet PLC Forum

General => Technical support => Topic started by: Joel Moore on April 13, 2006, 04:40:05 AM

Title: Is NETCMD$ "atomic"?
Post by: Joel Moore 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?
Title: Re:Is NETCMD$ "atomic"?
Post by: support 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.