Commissioning Manual
6FC5397-4EP10-0BA8, 07/2018
161
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
Inputs
Part program number, 1-100: user; 101-200: OEM; 201-255: Siemens
PLC selects a part program successfully
PLC selects a part program incorrectly
Assigned global variables
Indicates that a part program has been selected
Indicates that an error occurs when selecting a part program
Relevant PLC machine data
None
Example for calling subroutine 47
Subroutine 48 - ServPlan (service planner)
Purpose
To use subroutine 48, you must have created a service plan on the control system. When the pre-alarm time arrives, the
machine outputs a notification message. When the final alarm time arrives, the machine outputs an alarm message.
Note
To perform a service plan on the PLC, you need to download DB9903 (SP_INI) and DB9904 (SP_ACT).
Local variable definition
Inputs
Deactivate 1st service plan
Acknowledge message of 1st service plan
Hint message for 1st service plan
Alarm message for 1st service plan