PLC Subroutines Manual
66
6FC5397-0FP40-0BA0, 08/2013
Relevant PLC machine data
None
Example for calling subroutine 60
3.33
Subroutines 34 to 36, 57, 61 and 62
Explanation
Subroutines 34 to 36, 57, 61 and 62 are reserved for users.
3.34
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
Table 3-43
Inputs
Name
Type
Description
Delay7
WORD
Delay duration of switch 7 (unit: 10 ms)
Delay8
WORD
Delay duration of switch 8 (unit: 10 ms)
Ki_1…Ki_6
BOOL
Input of hold switch 1...input of hold switch 6
Ki_7…Ki_8
BOOL
Inputs of delay switches 7 and 8