EasyManua.ls Logo

Siemens CP-8021

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
Loading...
Examples for Instruction Lists (IL)
SICAM A8000 / CP-8000 • CP-8021 • CP-8022 Manual Unrestricted 551
DC8-037-2.02, Edition 10.2017
B.6 Setpoint Command
PLC_RESET:
LD 20
ST PLC_CYCLETIME (*cycle time in ms*)
PLC_START:
(*Mapping inputs to flags*)
LD I_050_171_105_000.S_E (*setpoint command select/execute*)
ST M_BOOL_NyttBVCmL45
LD I_030_008_004_000.VALUE (*single-point information input*)
ST M_BOOL_OmkHandL45
LD I_036_018_039_000.VALUE (*measured value float input*)
ST M_REAL_CmL45
LD I_050_171_105_000.VALUE (*setpoint command float input*)
ST M_REAL_BvCmL45DC
(*Temporary test variables*)
LD I_050_171_105_000.S (*check for a rising edge, otherwise*)
ST R_TRIG_PosFlank1.CLK (*create a confirmation each cycle*)
CAL R_TRIG_PosFlank1 (*if you have no setpoint the logic*)
JMPN HOPP90 (*will jump over the COT procedure*)
LD I_050_171_105_000.S_E
ST O_050_171_105_000.S_E (*here you have to add the select*)
(*before execute procedure*)
ST M_BOOL_NyttBVCmL45 (*setpoint command select/execute*)
LD I_050_171_105_000.VALUE
ST O_050_171_105_000.VALUE (*setpoint command float output*)
ST M_REAL_BvCmL45DC
(*Example for select before execute*)
LD 7 (*7 = confirmation, 10 = termination,*)
ST O_050_171_105_000.COT (*if you set 0, the confirmation would*)
(*be created here, and the termination*)
(*in the following cycle*)
LD 1
ST O_050_171_105_000.S (*setpoint command spontaneous*)
HOPP90:

Table of Contents

Related product manuals