Commissioning Manual
6FC5397-4EP10-0BA8, 07/2018
159
Example for calling subroutine 45
Subroutine 46 - PI_SERVICE
Purpose
Subroutine 46 is for realizing functions like ASUP (Asynchronous Subroutine Program) and deleting a password.
●
The ASUP function means the execution of PLCASUP1.SPF or PLCASUP2.SPF called by the PLC. The two ASUPs cannot
be simultaneously executed, and the PLCASUP1.SPF has a higher priority over the PLCASUP2.SPF.
In a program, firstly you can initialize the ASUP1 and ASUP2 by setting "PI index" (DB1200.DBB4001) and "NCK read/write
start" (DB1200.DBX4000.0), and then use a rising edge to trigger "ASUP1 start" (DB3400.DBX0.0) and "ASUP2 start"
(DB3400.DBX1.0).
The control system provides two default ASUPs for the PLC. ASUP1 is used for manual tool change and ASUP2 is used for
the manual machine of the workpiece on a turning machine with the Manual Machine Plus function.
You can also use your own ASUPs as required. To do so, you must first place your programs (PLCASUP1.SPF and
PLCASUP2.SPF) in the manufacturer cycle directory (N:\CMA), and then set "PI index" (DB1200.DBB4001) to 1 (ASUP1)/2
(ASUP2).
●
To use this function, you need to only execute the PI service. Here, no initialization of the PI service is required.
By default, MD14512 [19].2 = 0, which indicates that the control system will automatically delete the password after NC
restarts. If you want the control system to remember the last used password every time the NC restarts, you need to set
MD14512 [19].2 = 1.