11.03
3 Safety-Related Functions
3.10 Safe programable logic (SPL) (840D SW 4.4.18)
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
3-151
of the language command SIRELAY. The cyclic section must be integrated in
the synchronized actions of the SPL.
Syntax:
status = SIRELAY(x )
The following values are possible for status:
Return value status
Meaning
1
The input quantity of the safety relay is not parameterized or
not correctly parameterized.
Remedy: Call SIRELIN with correct parameterization
2
The output quantities of the safety relay are not
parameterized or not correctly parameterized.
Remedy: Call SIRELOUT with correct parameterization
3
The input and output quantities of the safety relay are not
parameterized or not correctly parameterized.
Remedy: Call SIRELIN and SIRELOUT with correct
parameterization
4
The timers of the safety relay are not parameterized or not
correctly parameterized.
Remedy: Call SIRELTIME with correct parameterization
5
The input quantities and timers of the safety relay are not
parameterized or not correctly parameterized
Remedy: Call SIRELIN and SIRELTIME with correct
parameterization
6
The output quantities of the safety relay are not
parameterized or not correctly parameterized
Remedy: Call SIRELOUT and SIRELTIME with correct
parameterization
7
The initialization of the safety relay was not carried-out or
not correctly carried-out.
Remedy: Call SIRELIN, SIRELOUT and SIRELTIME with
correct parameterization
Notes on possible alarms
1. The SIRELAY call must be made in the NCK-SPL (program SAFE.SPF),
since the allocation of the output variables corresponds to the write
access operations to safety system variables. If the call comes from a
different program, Alarm 17070 "Channel %1 Block %2 Data write-
protected" is triggered.
2. The SIRELAY call must be included in a synchronized action. If this
condition is not satisfied, Alarm 12080 "Channel %1 Block %2 Syntax
error for text SIRELAY" is triggered.
3. If Parameter x contains a value that lies outside the range 1 to 4, Alarm
20149 "Channel %1 Block %2 Motion synchronous action: Invalid index"
is triggered.
When the safety relay is tested, acknowledgement input Q2 and one of the
three disable inputs (E1, E2 or E3) must be used. Q2 must be connected to a
safety marker ($A_MARKERSI[ ]) and may only be set briefly (< 1s) to 1.
One of the three inputs E1 to E3 can be used (e.g. from the PLC) with a short
falling edge to check that the safety relay has dropped-out. The 0 signal level
may not be present for longer that the time parameterized in TM1. The
maximum value for TM1 is 1s, as otherwise the crosswise data comparison
between NCK and PLC-SPL would detect an error.
Forced checking
procedure