Siemens SINUMERIK Series Function Manual page 67

Extended functions
Hide thumbs Also See for SINUMERIK Series:
Table of Contents

Advertisement

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
Query, whether the configured RangeIndex = 5 is valid
N3
N5
N10
N15
N20
Querying the length of the configured, valid I/O-range with RangeIndex = 5
N100
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
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
check:
IF $A_DP_OUT_VALID B_AND 'B100000' GOTOF
write
SETAL(61000)
write:
$A_DPB_OUT[5,6]=128
R1=$A_DP_OUT_LENGTH[5]
A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
; 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
; Jump marker
; if data range valid
; => jump to N15
;Set alarm no. 61000
; Jump marker
; Writing the data byte
; Length of the I/O-range (slot) in bytes
;Result: R1 = 32
1.3 Access via PROFIBUS
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 828d

Table of Contents