A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
1.3 Access via PROFIBUS
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
59
Access I/O range data
The following system variables are available for accessing the I/O range data:
Table 1- 4 NCK → PROFIBUS I/O
System variable Value Meaning
$A_DPB_OUT[<n>,<m>] 8-bit unsigned Writing a data byte (8-bit) to PROFIBUS I/O
$A_DPW_OUT[<n>,<m>] 16-bit unsigned Writing a data word (16-bit) to PROFIBUS I/O
$A_DPSB_OUT[<n>,<m>] 8-bit signed Writing a data byte (8-bit) to PROFIBUS I/O
$A_DPSW_OUT[<n>,<m>] 16-bit signed Writing a data word (16-bit) to PROFIBUS I/O
$A_DPSD_OUT[<n>,<m>] 32-bit signed Writing a data double word (32-bit) to PROFIBUS I/O
$A_DPR_OUT[<n>,<m>] 32-bit REAL Writing output data (32-bit REAL) to PROFIBUS I/O
<n> = index for the output data range; <m> = byte index for the data
Table 1- 5 PROFIBUS I/O → NCK
System variable Value Meaning
$A_DPB_IN[<n>,<m>] 8-bit unsigned Reading a data byte (8-bit) from PROFIBUS I/O
$A_DPW_IN[<n>,<m>] 16-bit unsigned Reading a data word (16-bit) from PROFIBUS I/O
$A_DPSB_IN[<n>,<m>] 8-bit signed Reading a data byte (8-bit) from PROFIBUS I/O
$A_DPSW_IN[<n>,<m>] 16-bit signed Reading a data word (16-bit) from PROFIBUS I/O
$A_DPSD_IN[<n>,<m>] 32-bit signed Reading a data double word (32-bit) from PROFIBUS I/O
$A_DPR_IN[<n>,<m>] 32-bit REAL Reading of output data (32-bit REAL) from PROFIBUS I/O
<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 arrays corresponds to an I/O range. It is set when the I/O range is configured
for access via the part programs / synchronized actions.
System variable Value Meaning
$A_DP_IN_CONF 32-bit bit array Reading all configured input data ranges of the PROFIBUS I/O
$A_DP_OUT_CONF 32-bit bit array Reading all configured output data ranges of the PROFIBUS I/O