Examples for Instruction Lists (IL)
SICAM A8000 / CP-8000 • CP-8021 • CP-8022 Manual
Unrestricted
545
DC8-037-2.02, Edition 10.2017
B.2
Combine two Inputs with AND
The cycle time is set to 50 ms. The first two inputs of the Master Module will be combined by
logical AND. The result is transferred to a flag and additional to a digital output. The type iden-
tification of the output is single message.
PLC_RESET:
LD 50
(*load value 50*)
ST PLC_CYCLETIME
(*store at system variable for cycle*)
(*time in ms*)
PLC_INIT:
PLC_START:
LD
I_030_002_000_000.VALUE
(*read input IN00*)
ST AND.IN0
(*store at input 0 for AND function*)
LD
I_030_003_000_000.VALUE
(*read input IN01*)
ST AND.IN1
(*store at input 1 for AND function*)
CAL AND
(*call function*)
ST M_BOOL_TESTFLAG
(*store in a flag*)
ST
O_030_008_000_000.VALUE
(*store as single command output*)
Summary of Contents for CP-8000
Page 604: ......