Siemens SINUMERIK 840D sl Function Manual page 271

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

Advertisement

● MD20108 $MC_PROG_EVENT_MASK, bit 5 = 1
● MD10095 $MN_SAFE_MODE_MASK, bit 2 = 0
● SAFE.SPF is called when the system boots, and with the
executed error-free.
Configuration
The function is activated using machine data 20108 $MC_PROG_EVENT_MASK, bit 5 = 1.
An existing SAFE.SPF call in a PROG_EVENT.SPF power on section or in an ASUB can be
removed. If the function is active, then only the restricted language scope is possible in a
SAFE.SPF. If the function is not active, then the complete language scope is permitted in a
SAFE.SPF. If MD $MC_PROG_EVENT_MASK, bit 5 = 0, then SAFE.SPF is not executed
when the system boots and errors are active.
Table 8-4
Block structure
Nxxx
XYZ:
/
;
Beginning of the program
SAFE PROC
Attributes, which are programmed in the PROC line
SBLOF
DISPLOF
ACTBLOCNO
DISPLON
SBLOF is always active, even if SBLOF is not programmed
Variable definition
DEF
DEFINE
Assignments
Values are assigned to variables with an = character. The value being assigned can either be a constant
or an algorithm If the value is a constant, the binary, hexadecimal or exponential notation is possible.
'B0000001'
'H3C7F'
4.1EX-3
Fields can be assigned with
REP
SET
SETA
Writing, i.e. the lefthand part of an assignment, is possible with these variables:
LUD
Safety Integrated
Function Manual, 12/2017, 6FC5397-4BP40-6BA1
Permissible language commands for SAFE.SPF
;Block number
;Labels
;Skip, block skip
;Comment characters
;Empty line
;First operation in the program
;Single block skip
;Skip, block display
;For DISPLOF, for an alarm output the number of the actual block
;Activate block display
;Creating DUDs
;Creating macros
;Binary notation
;Hexadecimal notation
;Exponential notation
:Initialization with the same values
;Initialization with value list
;Copying fields
Connecting sensors and actuators
8.5 Safe programmable logic
restricted language scope is
271

Advertisement

Table of Contents
loading

Table of Contents