Siemens SINUMERIK 840D sl Function Manual page 67

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

Advertisement

Examples
Program code
$A_DPB_OUT[5,6]=128
$A_DPW_OUT[5,5]='B0110'
$A_DPSD_OUT[5,3]='H8F'
$AC_MARKER[0]=5
$AC_MARKER[1]=3
$A_DPSD_OUT[$AC_MARKER[0],$AC_MARKER[1]]='H8F' ; indirect addressing
R1 = $A_DPB_OUT[5,6]
ID=1 WHENEVER TRUE DO $A_DPB_OUT[5,0]=123 ; cyclic writing per IPO cycle
; Faulty programming
$A_DPB_OUT[5.255]=128
$A_DPB_OUT[6.10]=128
$A_DPB_OUT[7.10]=128
$A_DPB_OUT[16.6]=128
Configuration for programming via CompileCycles
Specifications
● Parameterization of the 7th data record: Machine data / system variable index = 6
● Configuration data:
– Logical start address = 444
– Slot length = 10 bytes
● Representation: Little endian format
Parameterization in the machine data
● MD10510 $MN_DPIO_LOGIC_ADDRESS_OUT[ 6 ] = 444 (logical start address)
● MD10511 $MN_DPIO_LENGTH_OUT[ 6 ] = 0 (only the first user data slot is used)
● MD10512 $MN_DPIO_ATTRIBUTE_OUT[ 6 ]
– Bit0 = 0 (little endian format)
– Bit1 = 1 (writing only via CC-binding)
– Bit3 = 1 (slot sign-of-life alarms are suppressed)
Extended Functions
Function Manual, 10/2015, 6FC5397-1BP40-5BA3
A4: Digital and analog NC I/O for SINUMERIK 840D sl
Comment
; Byte
8 bits, index=5, offset=6
; Word
16 bits, index=5, offset=5
; Caution: Data on offset 6 will be overwritten
; Double
32 bits, index=5, offset=3
; Caution: Data on offsets 4, 5, 6 will be overwritten
; Index=5
; Offset=3
; Double
32 bits, on index=5, offset=3
; Assignment to R parameter, byte
offset=6
;Result: R1 == 'HFF'
; Byte
8 bits, index=5, offset=0
;
Alarm 17030: Offset 255 > I/O range
;
Alarm 17020: Index 6 reserved for compile cycle, see
below
;
Alarm 17020: Index 7 not defined in the machine data
;
Alarm 17020: Index 16 outside the value range
2.4 Direct I/O access without PLC
8 bits, index=5,
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents