Johnny T
Member
I have read that the PLC scan in S7 has four stages. It scans an image of all the inputs. Then it processes the code inbetween the inputs and outputs. Then it writes the output image to the PLC and finally it does a Self Check (internally checking its hardware etc) before starting the procedure again.
If I had a Function with say 20 lines of ladder in it. Does it scan all the FC first to establish which inputs are on. Then process any MOVE instructions or maths instructions etc, then write any outputs that need turning on?
Or does it do it line by line. So scan the FC as you would read a book??
Also, do all PLC's scan the same, or does it vary between manufacturers?
If I had a Function with say 20 lines of ladder in it. Does it scan all the FC first to establish which inputs are on. Then process any MOVE instructions or maths instructions etc, then write any outputs that need turning on?
Or does it do it line by line. So scan the FC as you would read a book??
Also, do all PLC's scan the same, or does it vary between manufacturers?