Siemens SINUMERIK 840D Description Of Functions page 144

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

Advertisement

3 Safety-Related Functions
3.10 Safe programable logic (SPL) (840D SW 4.4.18)
3.10.3
Starting the NCK-SPL from the PLC user program
Program start
The NCK-SPL can also be started by the PLC user program. As soon as the
NCK-SPL is started, crosswise data comparison is activated in the system
program (NCK and PLC basic program).
The NCK-SPL program must be started as an asynchronous sub-routine. For
this, the interrupt number and channel must first be assigned via FB4 using
function ASUP (asynchronous subroutine), via parameter
PIService="PI.ASUP".
As soon as FB4 has been successfully completed (output parameter
"Done"=TRUE) the program is executed via FC9 "ASUP".
Starting the PLC-SPL
The PLC-SPL has started in the PLC user program in conjunction with the start
of the NCK-SPL via FB4/FC9 if the FC9 has signaled successful execution and
identified that the end of SAFE.SPF has been reached via a signal in
SAFE.SPF (e.g. $A_PLCSIOUT variable, M function or, from SW 6.4.15
onwards, SPL status bit 13 (DB18.DBX137.5)).
SPL status signals
There is an additional bit in the SPL status that can be used to synchronize
NCK-SPL execution and the start of the PLC-SPL.
DB18.DBX137.5 (status bit 13) (from SW 6.4.15)
This bit is set if the end of the SAFE.SPF program is identified. In conjunction
with this, the end IDs M02, M17 or M30 are permissible for SAFE.SPF as end
of program.
If an error occurs while executing SAFE.SPF, and the end of the program is not
reached (e.g. M17), then bit 13 is not set in the SPL status.
This bit can be used in the PLC user program to start the PLC-SPL. This
means that the PLC-SPL only starts if the NCK-SPL was completely execution.
Parameterizing FB 4
FB 4 may only be started in the cyclic mode (OB 1)
Table 3-62
Signal
Reg
PIService
Unit
WVar1
WVar2
WVar3
WVar4
Addr1
Addr2
[values in brackets are default values for the call]
Table 3-63
Parameterizing FC 9
Signal
Start
ChanNo
IntNo
Active
3-144
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
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'
Parameterizing FC 9
Type
Value range
I
Bool
I
Int
1 to 10 [1]
I
Int
1 – 8 [1]
O
Bool
Meaning
Assign interrupt
Channel
Interrupt number
Priority
LIFTFAST
BLSYNC
NCK-SPL path name
NCK-SPL program name
Remarks
No. of NC channel
Interrupt no.
1 = active
© Siemens AG 2003 All Rights Reserved
11.03

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simodrive 611 digital

Table of Contents