Profibus-I/O In Read Direction - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

Programming
$A_DPB_OUT[5,6]=128
$A_DPW_OUT[5,5]='B0110'
$A_DPSD_OUT[5,3]='8FHex'
$AC_MARKER[0]=5
$AC_MARKER[1]=3
$A_DPSD_OUT[$AC_MARKER[0],$AC_MARKER[1]]='8FHex'
R1=$A_DPB_OUT[5,6]
ID=1 WHENEVER TRUE DO $A_DPB_OUT[5,0]=123
$A_DPB_OUT[5.255]=128
$A_DPB_OUT[6.10]=128
$A_DPB_OUT[7.10]=128
$A_DPB_OUT[16.6]=128
1.5.2.2

PROFIBUS-I/O in read direction

Requirement
The S7-HW-configuration is already done.
Configuration for programming via part program/synchronous actions
● RangeIndex = 0 (NCK-internal configuration)
● as per S7-HW-configuration:
This results in the following configuration of the machine data:
MD10500 $MN_DPIO_LOGIC_ADDRESS_IN[0] = 456 (log. start address I/O range)
MD10501 $MN_DPIO_RANGE_LENGTH_IN[0] = 32 (length of the I/O range)
Extended Functions
Function Manual, 09/2009, 6FC5397-1BP20-0BA0
– Log. start address = 456
– Slot length = 32 byte
– To be displayed in Big-Endian format
; write (8 bit) to RangeIndex=5, RangeOffset=6
; write (16 bit) to RangeIndex=5, RangeOffset=5
; Little-Endian-format
; Caution: RangeData of byte 6 are overwritten
; write (32 bit) to RangeIndex=5, RangeOffset=3
; Little-Endian-format
; Caution: RangeData of byte 5.6 are overwritten
; write (32 bit) to RangeIndex=5, RangeOffset=3
; Little-Endian-format
; indirect programming
; read (8 bit) on RangeIndex=5, RangeOffset=6
; Little-Endian-format
; Result: 0xFF
; Cyclic output;(per IPO cycle)
; Alarm 17030 because the RangeOffset is invalid.
; Alarm 17020 because this range of part program
; cannot be written.
; Alarm 17020 because this range is not defined.
; Alarm 17020 because RangeIndex >= max. available
; number of ranges.
A4: Digital and analog NCK I/Os
1.5 Examples
71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents