EasyManuals Logo

Siemens SINUMERIK Series Function Manual

Siemens SINUMERIK Series
956 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #60 background imageLoading...
Page #60 background image
A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
1.3 Access via PROFIBUS
Extended Functions
60 Function Manual, 03/2013, 6FC5397-1BP40-3BA1
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 Value Meaning
$A_DP_IN_VALID 32-bit bit array Reading all valid input data ranges of the PROFIBUS I/O
$A_DP_OUT_VALID 32-bit bit array Reading all valid output data ranges of the PROFIBUS I/O
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 Value Meaning
$A_DP_IN_STATE[<n>]
<n> = index for the input
data range
Reading the state of the input
data range
$A_DP_OUT_STATE[<n>]
<n> = index for the output
data range
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
Reading the state of 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 Meaning
$A_DP_IN_LENGTH[<n>]
<n> = index for the input data range
Reading the length of the input data range
$A_DP_OUT_LENGTH[<n>]
<n> = index for the output data range
Reading the length of the output data range
Note
Via <n> (RangeIndex) the corresponding NCK-configured I/O range is selected. If the
required I/O range is not configured, it is indicated by issuing an alarm (17020).
The <m> (RangeOffset) points to the place (byte-offset) within the I/O range, from which
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).
Via the machine data MD10502 $MN_DPIO_RANGE_ATTRIBUTE_IN or MD10512
$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.

Table of Contents

Other manuals for Siemens SINUMERIK Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK Series and is the answer not in the manual?

Siemens SINUMERIK Series Specifications

General IconGeneral
Axes ControlUp to 31 axes
CategoryControl Unit
ManufacturerSiemens
SeriesSINUMERIK
Control TypeCNC
Communication InterfacesEthernet, USB
Operating Temperature0°C to 45°C
Protection ClassIP20
Power Supply24V DC
DisplayColor TFT LCD

Related product manuals