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

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

Advertisement

Digital and analog NCK I/Os (A4)
1.5 Examples
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]
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)
68
– log. start address = 1200
– Slot length = 32 byte
– To be displayed in Big-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, 01/2008, 6FC5397-1BP10-3BA0
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents