Siemens SINUMERIK 840D Description Of Functions page 143

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

Advertisement

11.03
3.10 Safe programable logic (SPL) (840D SW 4.4.18)
; -------------------------------------------------------
; System variable $P_PROG_EVENT can be used to
; interrogate as to which event activated the call:
;
;
;
;
;
;-------------------- Cycle definition ------------------
; Suppress single block, display
;--------------------------------------------------------
N100 PROC PROG_EVENT SBLOF DISPLOF
;
; NCK-SPL start
; -------------------------------------------------------
N200 IF ($P_PROG_EVENT == 4); interrogate run-up
N300
N400 ENDIF
N500 ...
N600 ...
N700 M17 ; end of cycle
The part program SAFE.SPF is called if the system variable check
$P_PROG_EVENT indicated that the part program PROG_EVENT.SPF was
called when the control system ran-up.
Example for SAFE.SPF
A simple example for SAFE.SPF will now be shown that is started via
PROG_EVENT when the system runs-up and includes status synchronous
actions.
; File: SAFE.SPF
=============
; Definitions
DEFINE STOP_A_DISABLE AS $A_OUTSI[1]
DEFINE STOP_C_DISABLE AS $A_OUTSI[2]
DEFINE STOP_D_DISABLE AS $A_OUTSI[3]
;
DEFINE STOP_A_EXT AS $A_INSE[6]
DEFINE STOP_C_EXT AS $A_INSE[7]
DEFINE STOP_D_EXT AS $A_INSE[8]
DEFINE STOP_A_XT AS $A_INSE[9]
;
; Program section
N10 IDS=01 DO STOP_A_DISABLE=STOP_A_EXT
N20 IDS=02 DO $A_OUTSE[1]=NOT $A_OUTSE[1]
N30 M17
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
( ) start of program
( ) end of program
( ) operator panel reset
(x) run-up
CALL "/_N_CST_DIR/_N_SAFE_SPF"
3 Safety-Related Functions
--> $P_PROG_EVENT == 1
--> $P_PROG_EVENT == 2
--> $P_PROG_EVENT == 3
--> $P_PROG_EVENT == 4
3-143

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simodrive 611 digital

Table of Contents