sequence of program execution

chriswarrn

Member
Join Date
Dec 2003
Posts
24
I'm confused about when the plc actually changes the state of the output of a rung. I understand that when the rung with a real-world output goes true the output table is updated immediately but the actual output doesn't change until after the scan is finished. What I don't know is if I use an XIC or XIO for that output, does the contact change state immediately when the associated output rung goes true or when the plc actually changes the real output.

Also, what about internal relays and latches. Do they operate/execute differently then real-world I/O?
 
this should answer all of the questions you posted ...

this one comes up quite often ... see if this helps ...

link to a previous post

here's a specific quote:

Basic idea: the INSTRUCTIONS in the ladder program are called “instructions” for a reason. They literally are instructions FROM (you) the programmer TO the processor. These instructions tell the processor to “examine a bit to see if it contains a 1” or to “examine a bit to see if it contains a 0” or to “go write a 1 or a 0” into a particular bit. The processor obeys these instructions instantly as soon as the rungs are executed. Specifically, the processor does exactly what the ladder commands it to do and “examines a bit” or “writes to a bit” instantly - whether the bit in question is an output bit (example: O:2/0) or an internal bit (example: B3/0) or even an input bit (example: I:1/0) makes no difference.

post again if you still need help ...
 
Thank you, Ron. That was a very informative post. I tried to search for the answer here, but I was apparently using the wrong keywords for my search. This site is making me look like I know what I'm talking about here at work. It's a great asset. Thanks again.
 

Similar Topics

hello every one, i want sample of sequence timer program (12 out put) using s7 200. when power on start 1st one out put and stop withing 1 sec...
Replies
8
Views
1,972
hi anybody can help me for writing the program of this sequence diagram with step 7?
Replies
0
Views
1,406
I've started writing a program and its a sequence of steps that it will go through. The sequence commands seemed a little complex to me so I opted...
Replies
7
Views
8,747
Four contactors k1, k2, k3 & k4. If temperature goes over set temp by, 1 degree bring one contactor in, two degrees bring two contactors in, three...
Replies
3
Views
3,248
Back
Top Bottom