B.2 Combine Two Inputs With And - Siemens CP-8000 User Manual

Sicam a8000 series
Hide thumbs Also See for CP-8000:
Table of Contents

Advertisement

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
ST
PLC_CYCLETIME
PLC_INIT:
PLC_START:
LD
I_030_002_000_000.VALUE
ST
AND.IN0
LD
I_030_003_000_000.VALUE
ST
AND.IN1
CAL
AND
ST
M_BOOL_TESTFLAG
ST
O_030_008_000_000.VALUE
SICAM A8000 / CP-8000 • CP-8021 • CP-8022 Manual
DC8-037-2.02, Edition 10.2017
Examples for Instruction Lists (IL)
(*load value 50*)
(*store at system variable for cycle*)
(*time in ms*)
(*read input IN00*)
(*store at input 0 for AND function*)
(*read input IN01*)
(*store at input 1 for AND function*)
(*call function*)
(*store in a flag*)
(*store as single command output*)
Unrestricted
545

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp-8021Cp-8022

Table of Contents