Siemens SINUMERIK Series Function Manual page 60

Extended functions
Hide thumbs Also See for SINUMERIK Series:
Table of Contents

Advertisement

A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
1.3 Access via PROFIBUS
Check availability of the I/O ranges
The availability of the I/O ranges can be checked via the following system variables. Each bit
of these bit arrays corresponds to an I/O range. It is set, when the I/O-range is ready for
access via the part programs/synchronous actions.
System variable
$A_DP_IN_VALID
$A_DP_OUT_VALID
Query state 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 variable
$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 of an I/O range can be queried using the following system variables.
System variable
$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 I/O 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 MD10502 $MN_DPIO_RANGE_ATTRIBUTE_IN or MD10512
60
Value
Meaning
32-bit bit array
Reading all valid input data ranges of the PROFIBUS I/O
32-bit bit array
Reading all valid output data ranges of the PROFIBUS I/O
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).
$MN_DPIO_RANGE_ATTRIBUTE_OUT (see "Configuration of the I/O ranges
(Page 56)"), the display format (little-/big-endian) for $A_DPx_IN[n,m] or
$A_DPx_OUT[n,m] system variables can be defined for the read/write direction as well as
for each individual I/O range.
Meaning
Reading the length of the input data range
Reading the length of the output data range
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Meaning
Reading the state of the input
data range
Reading the state of the output
data range
Extended Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 828d

Table of Contents