Skip to content
LDmicroGitHub edited this page Apr 24, 2018 · 3 revisions

This page caused by discussing:
LDmicro Forum - PLC and safety
LDmicro Forum - set-reset

Classic PLC scan cycle is:
default

LDmicro has no "Image register" to hold the inputs/outputs state. All input Contacts and output Coils refer directly to MCU pins.
default
In this example X1 is read twice per PLC cycle, also Y1 is written twice per PLC cycle.
Also, port A copied to port B twice per PLC cycle.
default

This architecture has some advantages:

  • short pulses inside the PLC cycle are allowed.
    default

Some disadvantages present:

You can use Classic PLC scan cycle style with LDmicro:
default

RS or SR trigger priority (by DanielH) default

PLC and safety.zip

Thanks to Zdenek Hajek, DanielH.
Any additions are welcome LDmicro.GitHub@gmail.com

Clone this wiki locally