11.03
7 Configuring example
7.3 Safety Integrated with SPL
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
7-389
; ----- TEST STOP TRIGGER via PLC
;
N9700 DEFINE TESTST_PLC AS $A_DBB[5]
;
; ----- GENERAL DEFINITIONS
;
N9900 DEFINE BIT_0 AS 1
N10000 DEFINE BIT_1 AS 2
N10100 DEFINE BIT_2 AS 4
N10200 DEFINE BIT_3 AS 8
N10300 DEFINE BIT_4 AS 16
N10400 DEFINE BIT_5 AS 32
N10500 DEFINE BIT_6 AS 64
N10600 DEFINE BIT_7 AS 128
; PROGRAM EXCERPT (relevant sections only)
; Test stop (forced checking procedure / Phase 1/2)
N14000 IDS=41 EVERY TESTST_PLC == BIT_0 DO TESTSTOP_1 = 1
N14100 IDS=42 EVERY TESTST_PLC == BIT_1 DO TESTSTOP_2 = 1
; Test stop (external stops / STOP A/C/D)
N14200 IDS=43 EVERY TESTST_PLC == BIT_2 DO TEST_STOPA = 1
N14300 IDS=44 EVERY TESTST_PLC == BIT_3 DO TEST_STOPC = 1
N14400 IDS=45 EVERY TESTST_PLC == BIT_4 DO TEST_STOPD = 1
; The markers TEST_STOPA, TEST_STOPC, TEST_STOPD are also
combined into the STOP A, STOP C, STOP D de-selection in a similar way to
the SPL program of the configuration examples.
The byte in the dual port RAM ($A_DBB[5] "TESTST_PLC") is assigned the
value for the actual test step via the FC 21 from the PLC program, i.e. the
transfer FC 21 is active for the test stops.
Version 2:
Data transfer via the simulated NCK-I/Os
It is also possible to replace the wiring by a bitwise (bit-serial) data transfer via
the DB 10.
Limitations
MD 10350
$MN_FASTIO_DIG_NUM_INPUTS
Number of digital I bytes: 1...5 (standard value 1 - onboard inputs)
MD 10360
$MN_FASTIO_DIG_NUM_OUTPUTS
Number of digital Q bytes: 1...5 (standard value 0)
To use the function for data transfer, MD 10350 and 10360 must be set
depending on how many bytes are to be used for data exchange.
If real inputs and outputs are present, they can be used regardless of SI. In this
case, MD 10366 $MN_HW_ASSIGN_DIG_FASTIN and MD 10368
$MN_HW_ASSIGN_DIG_FASTOUT must be set in accordance with the
hardware configuration.
Data exchange can only be used for bytes for which there are no real inputs
and outputs.