7 Configuring example
11.03
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
7-374
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
At the beginning of the NCK-SPL (standard cycle SAFE.SPF), freely selectable
names are assigned to system variables $A_INSE/$A_OUTSE and $A_INSI/
$A_OUTSI using the "DEFINE" instruction. This makes the program easier to
read and facilitates making changes to the terminal assignment.
The "DEFINE" statements must be placed at the beginning of the NCK-SPL. In
the tabular list, names used in the example program are listed in the column
headed "Symbolic".
NCK-SPL program excerpt
/
;
; ---- External interfaces ----
;
DEFINE NOT_HALTE
AS $A_INSE[1]
DEFINE TUERZUVER
AS $A_INSE[2]
DEFINE NOT_QUIT
AS $A_INSE[4]
DEFINE SCHLUESSEL AS $A_INSE[5]
DEFINE KL_AS12_XZ
AS $A_INSE[7]
DEFINE KL_AS12_C
AS $A_INSE[8]
DEFINE TESTSTOP1E AS $A_INSE[9]
DEFINE TESTSTOP2E AS $A_INSE[10]
DEFINE TEST_STOPA
AS $A_INSE[11]
DEFINE TEST_STOPC AS $A_INSE[12]
DEFINE TEST_STOPD AS $A_INSE[13]
;
DEFINE NOT_HALT2K AS $A_OUTSE[1]
DEFINE KL_663_XZ AS $A_OUTSE[3]
DEFINE KL_663_C
AS $A_OUTSE[4]
;
;
; ---- Internal interfaces ----
;
DEFINE IMP_FREI_XZ
AS
$A_INSI[1]
DEFINE IMP_FREI_C
AS
$A_INSI[2]
;
DEFINE STOP_A_ABWS
AS
$A_OUTSI[1]
DEFINE STOP_A_ABWA
AS
$A_OUTSI[2]
DEFINE STOP_C_ABW
AS
$A_OUTSI[3]
DEFINE STOP_D_ABW
AS
$A_OUTSI[4]
DEFINE SBHABW
AS
$A_OUTSI[5]
DEFINE SG_BIT_O
AS
$A_OUTSI[6]
DEFINE TEST1STOP
AS
$A_OUTSI[7]
DEFINE TEST2STOP
AS
$A_OUTSI[8]
DEFINE STAT_IMP_XZ
AS
$A_OUTSI[9]
DEFINE STAT_IMP_C
AS
$A_OUTSI[10]
;
;
; ----- Markers ----
;
DEFINE MERK1
AS
$A_MAKERSI[1]
DEFINE NOT_HALT
AS
$A_MAKERSI[2]
DEFINE QUIT_REQUEST AS
$A_MAKERSI[3]
DEFINE QUIT_MARKER
AS
$A_MAKERSI[4]
DEFINE STOP_A_A
AS
$A_MAKERSI[7]
DEFINE STOP_A_S
AS
$A_MAKERSI[8]
;
;
; ----- Timers ----
;
DEFINE TIMER1
AS
$A_TIMERSI[1]
DEFINE TIMER2
AS
$A_TIMERSI[2]
DEFINE QUIT_TIMER3
AS
$A_TIMERSI[3]
;
;
Symbolic