Query Of The Rangeindex In Case Of "Profibus-I/O In Write Direction - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

1.5.2.3

Query of the RangeIndex in case of "PROFIBUS-I/O in write direction"

Requirement
The S7-HW-configuration is already done.
Configuration for programming via part program/synchronous actions
● RangeIndex = 5 (NCK-internal configuration)
● as per S7-HW-configuration:
This results in the following configuration of the machine data:
MD10510 $MN_DPIO_LOGIC_ADDRESS_OUT[5] = 1200 (log. start address I/O range)
MD10511 $MN_DPIO_RANGE_LENGTH_OUT[5] = 0
(a single useful-data slot is to be used)
MD10512 $MN_DPIO_RANGE_ATTRIBUTE_OUT[5]
Bit0 = 1 (Big-Endian-Format)
Bit1 = 0 (writing only via system variable)
Bit3 = 0 (Slot-lifespan-alarms issued)
Programming
before an access query the status of RangeIndex = 5
N3
N5
N10
N15
N20
Query, whether all configured ranges/slots are valid
N3
N5
N10
N15
N20
Extended Functions
Function Manual, 09/2009, 6FC5397-1BP20-0BA0
– Log. start address = 1200
– Slot length = 32 byte
– To be displayed in Big-Endian format
check:
IF $A_DP_OUT_STATE[5]==2 GOTOF write
GOTOB check
write:
$A_DPB_OUT[5,6]=128
check:
IF $A_DP_OUT_CONF==$A_DP_OUT_VALID GOTOF
write
SETAL(61000)
write:
$A_DPB_OUT[5,6]=128
A4: Digital and analog NCK I/Os
1.5 Examples
; Jump marker
; if data range valid
; => jump to N15
; jump back to check
; Jump marker
; Writing the data byte
; Jump marker
; if data range valid
; => jump to N15
; Set alarm no. 61000
; Jump marker
; Writing the data byte
73

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents