Connecting Sensors/Actuators7.3 Safe programmable logic (SPL)05.087-242 © Siemens AG 2008 All Rights ReservedSINUMERIK 840D sl/SINAMICS S120 SINUMERIK Safety Integrated (FBSI sl) – 05.2008 EditionLimitationsThe language commands SIRELIN, SIRELOUT and SIRELTIME may not be usedin synchronized actions.The language command SIRELAY may only be used in synchronized actions ofthe SPL (SAFE.SPF). The connection must be specified beforehand using the lan-guage commands SIRELIN, SIRELOUT and SIRELTIME.ExampleExample of an Emergency Stop implemented using NCK–SPL in SAFE.SPF:DEF INT RESULT_IN, RESULT_OUT, RESULT_TIMEN10 DEFINE IE_NH_E AS $A_INSE[1]N20 DEFINE IE_NH_Q AS $A_INSE[2]N30 DEFINE MI_NH_Q AS $A_MARKERSI[1]N40 DEFINE MI_C_ABW AS $A_MARKERSI[2]N50 DEFINE MI_A_ABW_A AS $A_MARKERSI[3]N60 DEFINE MI_A_ABW_S AS $A_MARKERSI[4]N70 DEFINE M_STATUS_1 AS $AC_MARKER[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 10Declaration of the functionVAR_INPUTIn1 : BOOL := True ; // Input 1In2 : BOOL := True ; // Input 2In3 : BOOL := True ; // Input 3Ackn1 : BOOL ; // Ackn1 signalAckn2 : BOOL ; // Ackn2 signalTimeValue1 : TIME := T#0ms ; // TimeValue for Output 1TimeValue2 : TIME := T#0ms ; // TimeValue for Output 2TimeValue3 : TIME := T#0ms ; // TimeValue for Output 3END_VARVAR_OUTPUTOut0 : BOOL ; // Output without DelayOut1 : BOOL ; // Delayed Output to False by Timer 1Out2 : BOOL ; // Delayed Output to False by Timer 2Out3 : BOOL ; // Delayed Output to False by Timer 3