Sign in to follow this  
Followers 0
sid

PLC Scan, Flags & Registers

4 posts in this topic

Once I have asked question in forum about the flag updation in programme. There was reply that flags such as M0 are updated as soon as logic processing of rung. Is the same is true for data registers i.e when we use -[mov k10 D0]- instruction, D0 is updated as soon as rung processing or it is updated at the end of scan.

Share this post


Link to post
Share on other sites
Updating of devices depends on the mode of operation of the PLC and the model of PLC being used. With some versions there is no choice of operating mode, with others it is selectable. Generally, in (batch) refresh mode, M coils and register devices are updated in "real time" whereas X inputs are updated at start of scan and Y outputs, timers and counters are updated at end of scan. In direct mode, Xs and Ys are updated by reference to the device state as it is addressed by the program i.e. in real time. Other devices are as for refresh mode. Both modes have advantages and disadvantages depending on the application!

Share this post


Link to post
Share on other sites
Is there a mode that, M and D devices aren't updated real time? I think it is impossible. Also "timers and counters are updated at end of scan." doesn't make sense to me. How do you configure these modes?

Share this post


Link to post
Share on other sites
To my understanding, the update of M and D devices cannot be changed. Certainly, the older FX range of PLCs operated only on refresh principal - I believe that subsequent models do the same. Again, older A and AnS series products (possibly not all) had a switch in the CPU that determined the operating mode. It is my belief that Q series utilises the refresh mode also but benefits from the additional refining program options such as SCAN, INITIAL, SLOW, CONSTANT. The FX programming manual or one of the A series user /fundamental manuals should explain more clearly how C and T devices work and give examples of the errors in accuracy that can occur as a result of dependancy on scan update. Updating of C and T devices refers to the setting of the "completed" coil -not the running value Edited by The Cat

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0