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*)
Содержание CP-8000
Страница 10: ...Open Source Software 10 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 74: ...Function Packages 74 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 468: ...Engineering via SICAM WEB 468 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 524: ...Service 524 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 556: ...Error Handling 556 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 603: ...Use Cases SICAM A8000 CP 8000 CP 8021 CP 8022 Manual Unrestricted 603 DC8 037 2 02 Edition 10 2017 ...
Страница 604: ......