Starting The Nck-Spl From The Plc User Program - Siemens SINUMERIK 840D sl Function Manual

Sinumerik safety integrated
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Connecting Sensors/Actuators
7.3 Safe programmable logic (SPL)
7.3.5

Starting the NCK-SPL from the PLC user program

Program start
The NCK-SPL can also be started from the PLC user program. As soon as the
NCK-SPL has been started, the crosswise data comparison is activated in the sy-
stem program (NCK and PLC basic program).
The NCK-SPL program must be started as an ASUB. To do this, the interrupt num-
ber and channel must first be assigned via FB4 using the ASUB (asynchronous
sub-routine) function via parameter PIService="PI.ASUB".
As soon as FB4 has been successfully run (output parameter "Done"=TRUE) the
program is executed via FC9 "ASUB" [asynchronous sub-routine].
Starting the PLC-SPL
The PLC-SPL in conjunction with FB4/FC9 has started if the FC9 has signaled
successful execution and has identified that the end of the SAFE.SPF has been
reached. This is realized using a signal in SAFE.SPF (e.g. $A_PLCSIOUT vari-
able, M function) or SPL status bit 13 (DB18.DBX137.5). Only then is it permissible
to start the PLC-SPL in order to ensure synchronous execution of the two SPL and
that the axial monitoring channels are supplied in synchronism.
Parameterizing FB 4
FB4 may only be started in the cyclic mode (OB 1).
Table 7-5
Signal
Reg
PIService
Unit
WVar1
WVar2
WVar3
WVar4
Addr1
Addr2
[values in brackets are standard values required for the call]
7-206
SINUMERIK 840D sl/SINAMICS S120 SINUMERIK Safety Integrated (FBSI sl) – 03.2006 Edition
Parameterizing FB 4
Type
Range of values
ANY
PI.ASUB
INT
1 to 10 [1]
INT
[1]
INT
[1]
INT
0/1 [0]
INT
0/1 [0]
STRING
'/_N_CST_DIR/'
STRING
'_N_SAFE_SPF'
Meaning
Assign interrupt
Channel
Interrupt number
Priority
LIFTFAST
BLSYNC
NCK-SPL path name
NCK-SPL program name
© Siemens AG, 2006. All rights reserved
03.06

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinamics s120

Table of Contents