Siemens SINUMERIK 840D sl Function Manual page 58

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

Advertisement

Digital and analog NCK I/Os (A4)
1.3 NCK I/O via PROFIBUS
Table 1-4
PROFIBUS-I/O → NCK
System variables
$A_DPB_IN[n,m]
$A_DPW_IN[n,m]
$A_DPSB_IN[n,m]
$A_DPSW_IN[n,m]
$A_DPSD_IN[n,m]
$A_DPR_IN[n,m]
n = index for the input data range; m = byte index for the data
Check configuration of the I/O-ranges
The configuration of the I/O-ranges can be checked via the following system variables. Each
bit of these bit-fields correspond to an I/O-range. It is set, when the I/O-range is configured
for access via the part programs/synchronous actions.
System variables
$A_DP_IN_CONF
$A_DP_OUT_CONF
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-fields correspond to an I/O-range. It is set, when the I/O-range is ready for
access via the part programs/synchronous actions.
System variables
$A_DP_IN_VALID
$A_DP_OUT_VALID
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
58
Value
Description
8 bit unsigned
Reading a data byte (8 bit) from PROFIBUS-IO
16 bit unsigned
Reading a data word (16 bit) from PROFIBUS-IO
8 bit signed
Reading a data byte (8 bit) from PROFIBUS-IO
16 bit signed
Reading a data word (16 bit) from PROFIBUS-IO
32 bit signed
Reading a data double word (32 bit) from PROFIBUS-IO
32 bit REAL
Reading of output data (32 bit REAL) from PROFIBUS-IO
Value
Description
32 bit bit-field
Reading all configured input data ranges of the PROFIBUS-IO
32 bit bit-field
Reading all configured output data ranges of the PROFIBUS-IO
Value
Description
32 bit bit-field
Reading all valid input data ranges of the PROFIBUS-IO
32 bit bit-field
Reading all valid output data ranges of the PROFIBUS-IO
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
Description
Reading the state of the input
data range
Reading the state of the output
data range
Function Manual, 01/2008, 6FC5397-1BP10-3BA0
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents