Examples for Instruction Lists (IL)
548
Unrestricted
SICAM A8000 / CP-8000 • CP-8021 • CP-8022 Manual
DC8-037-2.02, Edition 10.2017
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*)
Содержание CP-8000
Страница 10: ...Open Source Software 10 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 74: ...Function Packages 74 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 468: ...Engineering via SICAM WEB 468 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 524: ...Service 524 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 556: ...Error Handling 556 Unrestricted SICAM A8000 CP 8000 CP 8021 CP 8022 Manual DC8 037 2 02 Edition 10 2017 ...
Страница 603: ...Use Cases SICAM A8000 CP 8000 CP 8021 CP 8022 Manual Unrestricted 603 DC8 037 2 02 Edition 10 2017 ...
Страница 604: ......