Edge Generation – IL

PLC3000 does not include Rising and Falling Edge functions. However, they can easily be generated from the available memory bits

Generation in IL

Generate a Rising Edge on %I0 is done by considering a memory bit, e.g. %M1, such as

LD	%I0
ANDN	%M0
ST	%M1
LD	%I0 
ST	%M0

Generate a Falling Edge on %I1 is done by considering a memory bit, e.g. %M3, such as

LDN	%I1
ANDN	%M2
ST	%M3
LDN	%I1
ST	%M2