Examples; Nck I/O Via Plc; Writing To Plc-I/Os - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

1.5

Examples

1.5.1

NCK I/O via PLC

1.5.1.1

Writing to PLC-I/Os

The following assumptions are made in this example:
● Data are to be output directly to the following PLC I/Os:
● $A_PBx_OUT is used to output the data from synchronized actions.
Parameter assignment
The machine data should be set as follows:
MD10397 $MN_PLCIO_LOGIC_ADRESS_OUT= 521
MD10396 $MN_PLCIO_NUM_BYTES_OUT= 3
MD10399 $MN_PLCIO_TYPE_REPRESENTATION = 1
Booting of NCK and PLC
Once the NCK and PLC have booted, there is no cyclic data transfer to the PLC I/Os (for
write access).
Programming
Loading and starting of the part program with the following content:
...
ID = 1 WHENEVER TRUE DO $A_PBB_OUT[0] = 123
...
ID = 2 WHEN $AA_IW[x] >= 5 DO $A_PBW_OUT[1] = 'Habcd'
...
Extended Functions
Function Manual, 01/2008, 6FC5397-1BP10-3BA0
- log. addr. 521:
- log. addr. 522:
;8-bit digital output module
;16-bit digital output module
Digital and analog NCK I/Os (A4)
;Data are output from log. addr. 521
onwards
;A total of 3 bytes have to be output
;Data are displayed in big-endian
format
;Cyclic output
;(per interpolation cycle)
;Output of a
;hex value
1.5 Examples
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents