Direct Plc I/Os, Addressable From The Nc; Function - Siemens SINUMERIK Series Function Manual

Extended functions
Hide thumbs Also See for SINUMERIK Series:
Table of Contents

Advertisement

A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
1.2 Access via PLC
1.2.6

Direct PLC I/Os, addressable from the NC

1.2.6.1

Function

The fast data channel between the NCK and PLC I/Os is processed directly and therefore
quickly by the PLC operating system.
There is no provision for control of the PLC basic and user programs. It is not advisable for
the NCK and the PLC to attempt to access the same PLC I/Os simultaneously, as this can
result in faults.
Data exchange
For access purposes, the NC uses system variables associated with part programs and
synchronized actions.
Table 1- 2
• $A_PBB_IN[<n>]
• $A_PBW_IN[<n>]
• $A_PBD_IN[<n>]
• $A_PBR_IN[<n>]
<n> =
Reading from the part program causes a preprocessing stop.
Table 1- 3
• $A_PBB_OUT[<n>]
• $A_PBW_OUT[<n>]
• $A_PBD_OUT[<n>]
• $A_PBR_OUT[<n>]
<n> =
The output data can also be read from the part program and synchronized actions. Reading
from the part program causes an automatic preprocessing stop (to achieve synchronization
with the real-time context).
Ranges of values
Values within the following ranges can be stored in the system variables:
System variable
$A_PBB_OUT[<n>]:
$A_PBW_OUT[<n>]:
$A_PBD_OUT[<n>]:
$A_PBR_OUT[<n>]:
48
For reading from PLC:
Read byte (8-bit)
Read word (16-bit)
Read double word (32-bit)
Read real (32-bit float)
Byte offset within the PLC input area
For writing to PLC:
; Write byte (8-bit)
; Write word (16-bit)
; Write data word (32-bit)
; Write real (32-bit float)
Byte offset within the PLC output area
Value range
(-128 ... +127) or (0 ... 255)
(-32768 ... +32767) or (0 ... 65535)
(-2147483648 ... +2147483647) or (0 ... 4294967295)
(-3.402823466E+38 ... +3.402823466E+38)
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 828d

Table of Contents