Siemens CP-8000 User Manual page 548

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

Advertisement

Examples for Instruction Lists (IL)
This could be executed by a subroutine before PLC_RESET. With RET the subroutine will be
left.
(*SUBROUTINE*)
ResetCounter:
LD
0
ST
M_DINT_MINUTESOLD
ST
M_BOOL_RESET
LD
1
ST
CTU_COUNTER.R
RET
(*END SUBROUTINE*)
The call of the subroutine could be executed at the end (after ST M_DINT_HOURS). Therefore
the flag (M_BOOL_RESET) must be set to 1. Instead of the flag an input address could be
used, for instance a command.
Reaching the command CALC the call of the subroutine will be executed. In the subroutine the
flag (M_BOOL_RESET) will be reset to 0, otherwise the counter would last at
flag will be reset to 0.
LD
0
ST
CTU_COUNTER.R
LD
M_BOOL_RESET
CALC ResetCounter
548
Unrestricted
(*the old value for operating minutes*)
(*is set to "0"*)
(*reset the flag for running this*)
(*subroutine*)
(*reset counter by input R*)
(*besides reset of the time the*)
(*counter input R is set to "0"*)
(*if the flag is set to "1"*)
(*call the subroutine ResetCounter*)
SICAM A8000 / CP-8000 • CP-8021 • CP-8022 Manual
0
as long as the
DC8-037-2.02, Edition 10.2017

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cp-8021Cp-8022

Table of Contents