EasyManuals Logo

Siemens CP-8021 User Manual

Siemens CP-8021
614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #545 background imageLoading...
Page #545 background image
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*)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens CP-8021 and is the answer not in the manual?

Siemens CP-8021 Specifications

General IconGeneral
BrandSiemens
ModelCP-8021
CategoryController
LanguageEnglish

Related product manuals