Siemens SINUMERIK 840D sl Function Manual page 72

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

Advertisement

A4: Digital and analog NCK I/Os
1.5 Examples
MD10502 $MN_DPIO_RANGE_ATTRIBUTE_IN[0]
Bit0 = 1 (Big-Endian-Format)
Bit2 = 0 (read possible via system variable and CC-binding)
Bit3 = 0 (Slot-lifespan-alarms issued)
Configuration for programming via CompileCycles
● RangeIndex = 1 (NCK-internal configuration)
● as per S7-HW-configuration:
This results in the following configuration of the machine data:
MD10500 $MN_DPIO_LOGIC_ADDRESS_IN[1] = 312 (log. start address I/O range)
MD10501 $MN_DPIO_RANGE_LENGTH_IN[1] = 32 (length of the I/O range)
MD10502 $MN_DPIO_RANGE_ATTRIBUTE_IN[1]
Bit0 = 1 (Big-Endian-Format)
Bit2 = 1 (read possible only via CC-binding)
Bit3 = 1 (Slot-lifespan-alarms suppressed)
Programming
$AC_MARKER[0]=$A_DPW_IN[0,0]
$AC_MARKER[1]=$A_DPSD_IN[0,1]
$AC_MARKER[1]=$A_DPSD_IN[0,8]
$AC_MARKER[2]=0
$AC_MARKER[3]=8
$AC_MARKER[1]=$A_DPSD_IN[$AC_MARKER[2],$AC_MARKER[3]]
ID=2 WHEN $A_DPB_IN[0,11]>=5 DO $AC_MARKER[2]='ABCDHex'
R1=$A_DPB_IN[0,255]
R1=$A_DPB_IN[2,6]
R1=$A_DPB_IN[1,10]
R1=$A_DPB_IN[16,6]
72
– Log. start address = 312
– Slot length = 32 byte
– To be displayed in Little-Endian format
; read (16 bit) on RangeIndex=0, RangeOffset=0
; Big-Endian-format
; read (32 bit) on RangeIndex=0, RangeOffset=1
; Big-Endian-format
; read (32 bit) on RangeIndex=0, RangeOffset=8
; Big-Endian-format
; read (32 bit) on RangeIndex=0, RangeOffset=8
; Big-Endian-format
; indirect programming
; Cyclic reading;(per IPO cycle)
; Alarm 17030 because the RangeOffset is invalid.
; Alarm 17020 because this range is not defined.
; Alarm 17020 because this range of part program
; cannot be written.
; Alarm 17020 because RangeIndex >= max.
; available number of ranges.
Function Manual, 09/2009, 6FC5397-1BP20-0BA0
Extended Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents