Siemens SINUMERIK 840D sl Function Manual page 62

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

Advertisement

A4: Digital and analog NCK I/Os
1.3 NCK I/O via PROFIBUS - only 840D sl
Access I/O range data
The following system variables are available for accessing the I/O range data:
Table 1- 3
NCK → PROFIBUS-I/O
System variables
$A_DPB_OUT[n,m]
$A_DPW_OUT[n,m]
$A_DPSB_OUT[n,m]
$A_DPSW_OUT[n,m]
$A_DPSD_OUT[n,m]
$A_DPR_OUT[n,m]
n = index for the output data range; m = byte index for the data
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
62
Value
Description
8 bit unsigned
Writing a data byte (8 bit) to PROFIBUS-IO
16 bit unsigned
Writing a data word (16 bit) to PROFIBUS-IO
8 bit signed
Writing a data byte (8 bit) to PROFIBUS-IO
16 bit signed
Writing a data word (16 bit) to PROFIBUS-IO
32 bit signed
Writing a data double word (32 bit) to PROFIBUS-IO
32 bit REAL
Writing output data (32 bit REAL) to PROFIBUS-IO
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
Function Manual, 09/2009, 6FC5397-1BP20-0BA0
Extended Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents