ControlLogix -- how is data retained throughout a scan?

lufen

Member
Join Date
Aug 2013
Location
WA
Posts
6
Let's say... A_DINT = 100

In some subroutine:

rung 1 : A_DINT = A_DINT + 1

rung 2 : A_DINT = A_DINT + 2

rung 3 : A_DINT = A_DINT + 3

After a scan of the subroutine completes, will A_DINT be 103? Or will it be 106?
I'm unsure because I vaguely remember a mention of the input (left side of the ladder) doesn't get updated until a full scan completes and the output (right side of the ladder) gets fed back into the input.
 
Last edited:
if you are initially starting the program and if your A_DINT tag initially has a value of 100 then the value at the end of one scan will be 106, just keep in mind that if you don't have preceding conditions that allow the arithmetic add instruction to execute upon the execution of the next scan it will keep incrementing at the speed of your processors scan times.
 

Similar Topics

When adding an IFM AL1322 IO-Link Master Module to a 1756-EN2T Ethernet Card on a 1756-L82E Controller, The Input and Output data file does not...
Replies
0
Views
107
Hello all first time user here with a question about how to repopulate data on my controllogix 5561 176-L61B. Combination of a low PLC battery and...
Replies
7
Views
1,017
Hi Guys, I just wanted to ask regarding to an error that we got troubleshooting the PLC system. Everything is working well then we tried to add a...
Replies
15
Views
5,363
Hi Guys, I just wanted to ask regarding to an error that we got troubleshooting the PLC system. Everything is working well then we tried to add a...
Replies
0
Views
1,005
I am working on a project, inside an AB CLX, I implemented the Modbus TCP Client AOI published on AB website, to interreact with a Modbus ASCII...
Replies
7
Views
3,567
Back
Top Bottom