PLC Subroutines Manual
48
6FC5397-0FP40-0BA0, 08/2013
Local variable definition
Table 3-17
Inputs
Name
Type
Description
ASUP1_trigger
BOOL
Calling the ASUP1, rising edge active
ASUP2_trigger
BOOL
Calling the ASUP1, rising edge active
Table 3-18
Outputs
Name
Type
Description
ASUP1Run
BOOL
Running state of the ASUP1
ASUP2Run
BOOL
Running state of the ASUP2
Err1
BOOL
ASUP1 execution error
Err2
BOOL
ASUP2 execution error
Occupied global variables
IniASUP1
M229.0
Mark of ASUP1 initialization
IniASUP2
M229.1
Mark of ASUP2 initialization
Relevant PLC machine data
None
Example for calling subroutine 46
3.20
Subroutine 47 - PLC_Select_PP (PLC selects a subroutine)
Purpose
Subroutine 47 is used to select a part program.
You firstly need to create a PLC program-calling table, and assign a program index to each part program in this table. In
subroutine 47 you can assign DB1700.DBB1000 to the "Program index" to select the corresponding part program.
Local variable definition
Table 3-19
Inputs
Name
Type
Description
PP_num
BOOL
The index for a part program