z28z34man (Customer) asked a question.

Productivity network read and write scan update behavior

when in the scan order is the tag database updated from a network read instruction and when in the scan order in remote project is the tag database updated from a network write instruction? the manual says updated immediately but what is meant by immediately. i woulddn't expect the network read instruction to be a blocking instruction and waiting for a response there as network issues could cause watch dog faults.

 

this is what is in the manual

 

Note: Tag Values are updated immediately as each Ladder Rung is executed, top to bottom. However, Tag Values representing physical Outputs are only applied to the physical Output after the END statement of the last Task to be scanned is reached. Outputs in Remote Base Groups have additional limitations regarding Update Intervals.


  • ADC Community_02 (Automationdirect.com)

    Write Operations:

    When a write instruction is executed, the data is read directly from the tags at the moment the instruction runs. This means the data is captured mid-scan, inline with the ladder logic execution.

     

    Read Operations:

    For read operations, tag values are updated when the Modbus response is received. Because the CPU processes incoming Ethernet packets (Modbus messages) at the end of the scan cycle, tag updates occur after the ladder logic has finished executing — outside of the ladder logic itself.

     

    In summary, write data reflects tag values at the point of instruction execution, while read data reflects tag values as of the end of the previous scan cycle.

    Expand Post
    Selected as Best
  • ADC Community_02 (Automationdirect.com)

    As far as logic scan behavior refer to this help file link topic P202. As far as remote base groups that is explained in help topic P190.

     

  • z28z34man (Customer)

    I was asking when the mapped tags within the network read and write instruction update. Are the values moves from the communications buffer to the tags in the PLC at the beginning of the scan, end of the scan, the next time it sees the network read instruction, or as soon as it receives the full message regardless of where it is in the scan cycle?

  • ADC Community_02 (Automationdirect.com)

    Write Operations:

    When a write instruction is executed, the data is read directly from the tags at the moment the instruction runs. This means the data is captured mid-scan, inline with the ladder logic execution.

     

    Read Operations:

    For read operations, tag values are updated when the Modbus response is received. Because the CPU processes incoming Ethernet packets (Modbus messages) at the end of the scan cycle, tag updates occur after the ladder logic has finished executing — outside of the ladder logic itself.

     

    In summary, write data reflects tag values at the point of instruction execution, while read data reflects tag values as of the end of the previous scan cycle.

    Expand Post
    Selected as Best
  • z28z34man (Customer)

    Awesome thanks.

     

    Would I be correct in assuming in the remote project the values would be updated at the end of it's scan?