Siemens SINUMERIK 840D sl Function Manual page 70

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

Advertisement

A4: Digital and analog NC I/O for SINUMERIK 840D sl
2.4 Direct I/O access without PLC
Parameterization in the machine data
● MD10510 $MN_DPIO_LOGIC_ADDRESS_OUT[ 5 ] = 1200 (logical start address)
● MD10511 $MN_DPIO_LENGTH_OUT[ 5 ] = 0 (length of the I/O-range in bytes)
● MD10512 $MN_DPIO_ATTRIBUTE_OUT[ 5 ]
– Bit0 = 1 (little endian format)
– Bit1 = 0 (writing only via system variable)
– Bit3 = 0 (issue slot sign-of-life alarms)
Examples
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]
70
; 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
Function Manual, 10/2015, 6FC5397-1BP40-5BA3
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents