EasyManua.ls Logo

Siemens SICAM CMIC - Combine Two Inputs with and

Siemens SICAM CMIC
414 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Error Handling
SICAM RTUs, User Manual SICAM CMIC 323
DC8-001-2.09, Edition 08.2016
B.2 Combine two Inputs with AND
The cycle time is set to 50 ms. The first two inputs of the master control element will be com-
bined by logical AND. The result is transferred to a flag and additional to a digital output. The
type identification 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*)

Table of Contents

Related product manuals