Commissioning Manual
204 01/2017
Subroutine 63 - TOGGLES
Purpose
Two types of switches are provided in subroutine 63, more specifically, a hold switch for switching a circuit on (press) and off
(press again), and a delay switch for switching on a circuit and automatically switching it off after a certain time period. A
total of six hold switches and two delay switches are available in this subroutine, with the delay duration being configurable.
The key inputs or outputs of the subroutine can be connected with any physical inputs or outputs. The inputs and outputs of
all idle switches are respectively "ZERO" and "NULL_b" (M255.7).
Local variable definition
Inputs
For switch 7; unit: 10 ms; max delay = 5 min
For switch 8; unit: 10 ms; max delay = 5 min
Input of hold switch 1...input of hold switch 6
Inputs of delay switches 7 and 8
Output of switch 1...output of switch 8
Assigned global variables
State 1 of the hold switch
State 2 of the hold switch
"On" state of the hold switch
Relevant PLC machine data
None
Example for calling subroutine 63
Subroutines 0 to 19, 34 to 36, 57, and 61
Explanation
Subroutines 0 to 19, 34 to 36, 57, and 61 are reserved for users.