Examples for Application Programs
326
SICAM RTUs, User Manual SICAM CMIC
DC8-001-2.09, Edition 08.2016
This could be executed by a subroutine before
PLC_RESET
. With
RET
the subroutine will be
left.
(*SUBROUTINE*)
ResetCounter:
LD 0
(*the old value for operating minutes*)
ST M_DINT_MINUTESOLD
(*is set to "0"*)
ST M_BOOL_RESET
(*reset the flag for running this*)
(*subroutine*)
LD 1
ST CTU_COUNTER.R
(*reset counter by input 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
0
as long as the
flag will be reset to
0
.
LD 0
(*besides reset of the time the*)
ST CTU_COUNTER.R
(*counter input R is set to "0"*)
LD M_BOOL_RESET
(*if the flag is set to "1"*)
CALC ResetCounter
(*call the subroutine ResetCounter*)
Summary of Contents for SICAM CMIC
Page 8: ...Preface 8 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Page 46: ...Installation 46 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Page 62: ...Interfaces and Circuitry 62 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Page 102: ...Preparing the Engineering 102 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Page 334: ...Error Handling 334 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Page 404: ...Use Cases 404 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Page 414: ...Glossary 414 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 X Z ...