Siemens SINUMERIK 840D sl Function Manual page 242

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

Advertisement

Connecting Sensors/Actuators
7.3 Safe programmable logic (SPL)
Limitations
The language commands SIRELIN, SIRELOUT and SIRELTIME may not be used
in synchronized actions.
The language command SIRELAY may only be used in synchronized actions of
the SPL (SAFE.SPF). The connection must be specified beforehand using the lan-
guage commands SIRELIN, SIRELOUT and SIRELTIME.
Example
Example of an Emergency Stop implemented using NCK–SPL in SAFE.SPF:
DEF
N10 DEFINE IE_NH_E
N20 DEFINE IE_NH_Q
N30 DEFINE MI_NH_Q
N40 DEFINE MI_C_ABW
N50 DEFINE MI_A_ABW_A
N60 DEFINE MI_A_ABW_S
N70 DEFINE M_STATUS_1
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
N200 SIRELIN(1,RESULT_IN,"IE_NH_Q","MI_NH_Q","IE_NH_E")
N210 SIRELOUT(1,RESULT_OUT,"MI_C_ABW",MI_A_ABW_A","MI_A_ABW_S")
N220 SIRELTIME(1,RESULT_TIME,0.4, 2.2, 3.5)
;––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
N300 IDS=10 DO M_STATUS_1 = SIRELAY(1)
––––––––––––––––––––Error handling–––––––––––––––––––––––––––––
N310 IDS=11 EVERY M_STATUS_1 < > DO . . . . . .
FUNCTION_BLOCK FB 10
Declaration of the function
VAR_INPUT
In1 : BOOL := True ;
In2 : BOOL := True ;
In3 : BOOL := True ;
Ackn1 : BOOL ;
Ackn2 : BOOL ;
TimeValue1 : TIME := T#0ms ;
TimeValue2 : TIME := T#0ms ;
TimeValue3 : TIME := T#0ms ;
END_VAR
VAR_OUTPUT
Out0 : BOOL ;
Out1 : BOOL ;
Out2 : BOOL ;
Out3 : BOOL ;
7-242
SINUMERIK 840D sl/SINAMICS S120 SINUMERIK Safety Integrated (FBSI sl) – 05.2008 Edition
INT RESULT_IN, RESULT_OUT, RESULT_TIME
AS $A_INSE[1]
AS $A_INSE[2]
AS $A_MARKERSI[1]
AS $A_MARKERSI[2]
AS $A_MARKERSI[3]
AS $A_MARKERSI[4]
AS $AC_MARKER[1]
//
//
//
//
//
//
//
//
//
//
//
//
Input 1
Input 2
Input 3
Ackn1 signal
Ackn2 signal
TimeValue for Output 1
TimeValue for Output 2
TimeValue for Output 3
Output without Delay
Delayed Output to False by Timer 1
Delayed Output to False by Timer 2
Delayed Output to False by Timer 3
© Siemens AG 2008 All Rights Reserved
05.08

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinamics s120

Table of Contents