Bindings (Compile Cycles) - Siemens SINUMERIK 840D sl Function Manual

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
System variable
<n> = index of the I/O range
State
0: I/O range has not been configured
1: I/O range could not be activated
2: I/O range is available
3: I/O range is currently not available
Length of an I/O range
The configured length of an I/O range can be read via the following system variables.
System variable
$A_DP_IN_LENGTH[<n>]
$A_DP_OUT_LENGTH[<n>]
<n> = index of the I/O range
Supplementary conditions
● A preprocessing stop is triggered in the channel when reading/writing from a part program.
● To ensure data consistency during programming from the part program and the
synchronized actions, the PROFIBUS I/O data is accessed which is kept consistent for the
respective IPO cycle.
● If the same PROFIBUS I/O data is to be write-accessed several times within an interpolation
cycle (e.g. synchronized actions, access from different channels, etc.), then the data of the
last write access is valid.
● The PROFIBUS I/O data to be written is output at the PROFIBUS I/O only after the
corresponding IPO cycle.
● The <b> (RangeOffset) indicates the place (byte offset) within the I/O range as of 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 "Parameter assignment (Page 61)"), the
display format (little/big endian) for $A_DPx_IN[<n>,<b>] or $A_DPx_OUT[<n>,<b>]
system variables can be defined for the read/write direction as well as for each individual
I/O range.
2.4.3.2

Bindings (compile cycles)

General
CC-bindings are available for importing/exporting data blocks via the compile cycle interfaces.
The access to the data of the I/O range takes place at the servo task level. The data is updated
in each servo cycle. Data consistency is thus given for each respective servo cycle.
64
Type
Meaning
Meaning
Reading the length of the input data range
Reading the length of the output data range
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