11.03
7 Configuring example
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
7-373
The external NCK input and outputs are assigned bytewise to the NCK-SPL in
the following machine data
External NCK inputs
MD 10390 SAFE_IN_HW_ASSIGN[0] :
$A_INSE[1..8]
MD 10390 SAFE_IN_HW_ASSIGN[1] :
$A_INSE[9..16]
External NCK outputs
MD 10392 SAFE_OUT_HW_ASSIGN[0] :
$A_OUTSE[1..8]
MD 10392 SAFE_OUT_HW_ASSIGN[1] :
$A_OUTSE[9..16]
They are available in the form of system variables $A_INSE and $A_OUTSE
for the SPL program.
Configuration example:
The terminal block has the logical drive number 4 (acc. to the drive
configuration), the input module being used is inserted into slot 1 (sub-
module 1), the output module into slot 2 (sub-module 2).
This results in the following parameterization for the machine data above:
MD 10390 SAFE_IN_HW_ASSIGN[0] :
01 04 01 01 H
(LOW-Byte)
MD 10390 SAFE_IN_HW_ASSIGN[1] :
01 04 01 02 H
(HIGH-Byte)
MD 10392 SAFE_OUT_HW_ASSIGN[0] :
01 04 02 01 H
(LOW-Byte)
MD 10392 SAFE_OUT_HW_ASSIGN[1] :
01 04 02 02 H
(HIGH-Byte)
The internal inputs and outputs of the SPL logic are assigned using the
following machine data
Internal SPL inputs
MD36980...MD36990 :
SGA -> $A_INSI
The SGAs are output signals of the SI function and can be mapped to the
system variables $A_INSI[n]. These can, in turn, be read in the NCK-SPL and
used as inputs for the logic operations.
Internal SPL outputs
MD36970...MD36978 :
$A_OUTSI -> SGE
The SGEs are input signals of SI function and their values are supplied from
the system variables $A_OUTSI[n]. These can be written in the NCK-SPL.
Configuration example:
Parameterized machine data as shown in the table
In order to save intermediate states in the SPL logic, markers are defined.
These markers are available in the NCK in system variables $A_MARKERSI[n].
There is no connection with machine data.
Configuration example:
Assignment as shown in the table
In order to program timers in the SPL logic, timers are available in the NCK in
system variables $A_TIMERSI[n]. There is no connection with machine data.
Configuration example:
Assignment as shown in the table
$A_INSE / $A_OUTSE
NCK
$A_INSI / $A_OUTSI
NCK
$A_MARKERSI
NCK
$A_TIMERSI