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*)
Содержание SICAM CMIC
Страница 8: ...Preface 8 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 10: ...Open Source Software Used in SICAM CMIC 10 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 20: ...Table of Contents 20 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 Glossary 405 ...
Страница 46: ...Installation 46 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 62: ...Interfaces and Circuitry 62 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 102: ...Preparing the Engineering 102 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 130: ...Engineering via SICAM TOOLBOX II 130 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 334: ...Error Handling 334 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 386: ...Set Up Dial Up Connection via PPP 386 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 394: ...Install Security Certificate 394 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 404: ...Use Cases 404 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 ...
Страница 414: ...Glossary 414 SICAM RTUs User Manual SICAM CMIC DC8 001 2 09 Edition 08 2016 X Z ...