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

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

Advertisement

Connecting Sensors/Actuators
7.3 Safe programmable logic (SPL)
7.3.6
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
system program (NCK and PLC basic program).
The NCK–SPL program must be started as an ASUB. To do this, the interrupt
number and channel must first be assigned via FB4 using the ASUB (asynchro-
nous 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 displayed that the end of SAFE.SPF has been
reached. This is displayed using a signal in SAFE.SPF (e.g. $A_PLCSIOUT
variable, M function) or SPL status bit 13 (DB18.DBX137.5). Only then may the
PLC–SPL be started to ensure that both SPLs run in synchronism and therefore
the axial monitoring channels are synchronously supplied.
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-234
SINUMERIK 840D sl/SINAMICS S120 SINUMERIK Safety Integrated (FBSI sl) – 05.2008 Edition
Parameterizing FB 4
Type
Value range
ANY
PI.ASUP
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'
Description
Assign interrupt
Channel
Interrupt number
Priority
LIFTFAST
BLSYNC
NCK–SPL path name
NCK–SPL program name
© Siemens AG 2008 All Rights Reserved
05.08

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinamics s120

Table of Contents