Siemens SINUMERIK 840D sl Function Manual page 63

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

Advertisement

Query status of an I/O range
The exact status of an I/O range can be queried with the help of the following system
variables.
System variables
$A_DP_IN_STATE[n]
n = index for the input data
range
$A_DP_OUT_STATE[n]
n = index for the output data
range
Query length of an I/O range
The configured length an I/O range can be queried with the help of the following system
variables.
System variables
$A_DP_IN_LENGTH[n]
n = index for the input data range
$A_DP_OUT_LENGTH[n]
n = index for the output data range
Note
● Via <n> (RangeIndex) the corresponding NCK-configured E/A-range is selected. If the
● The <m> (RangeOffset) points to the place (byte-offset) within the I/O range, from which
● Via the machine data:
Extended Functions
Function Manual, 09/2009, 6FC5397-1BP20-0BA0
Value
0: Data range was not configured
1: Data range could not be activated
2: Data range is available
3: Data range is currently not available
required I/O range is not configured, it is indicated by issuing an alarm (17020).
the data access is to be started. Data types can be read/written at any byte-offset within
the I/O range. Read/write accesses, which exceed the configured limits of the respective
I/O range, are rejected with the generation of an alarm (17030).
MD10502 $MN_DPIO_RANGE_ATTRIBUTE_IN or
MD10512 $MN_DPIO_RANGE_ATTRIBUTE_OUT
the display format (Little-/Big-Endian) for $A_DPx_IN[n,m]- or $A_DPx_OUT[n,m]-system
variables can be defined for read/write direction as well as for each individual I/O range.
1.3 NCK I/O via PROFIBUS - only 840D sl
Description
Reading the length of the input data range
Reading the length of the output data range
A4: Digital and analog NCK I/Os
Description
Reading the state of the input
data range
Reading the state of the output
data range
63

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents