Siemens SINUMERIK 840D sl Function Manual page 72

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

Advertisement

Digital and Analog NCK I/Os (A4)
Examples
Programming
before an access query the status of RangeIndex = 5
N3
N5
N10
N15
N20
Query, whether all configured ranges/slots are valid
N3
N5
N10
N15
N20
Query, whether the configured RangeIndex = 5 is valid
N3
N5
N10
N15
N20
Querying the length of the configured, valid I/O-range with RangeIndex = 5
N100
72
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]
; 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, 03/2009, 6FC5397-1BP10-4BA0
Extended Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents