Descriptions of the PLC subroutines
3.20 Subroutine 47 - PLC_Select_PP (PLC selects a subroutine)
PLC Subroutines Manual
54 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
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- 17 Inputs
Name Type Description
PP_num BOOL The index for a part program
Table 3- 18 Outputs
Name Type Description
Finish BOOL Part program selection finished
Error BOOL Part program selection error
Assigned global variables
SelPP_FinOm BOOL M239.6 Indicates that a part program has been selected
SelPP_ErrOm BOOL M239.7 Indicates that an error occurs when selecting a part program
Relevant PLC machine data
None
Example for calling subroutine 47