Siemens SINUMERIK Series Function Manual page 53

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

Advertisement

Reading from PLC-I/Os
The following assumptions are made in this example:
● PLC I/Os:
● $A_PBx_IN is used to read in data from a part program into R parameters.
● In order to avoid slowing down the PLC user program unnecessarily (OB1), an update
Parameter assignment
The machine data should be set as follows:
MD10395 $MN_PLCIO_LOGIC_ADRESS_IN = 420
MD10394 $MN_PLCIO_NUM_BYTES_IN = 11
MD10398 $MN_PLCIO_IN_UPDATE_TIME = 0.03
MD10399 $MN_PLCIO_TYPE_REPRESENTATION = 1
Run-up of NCK and PLC:
The update (for read access) is now performed in every third interpolation cycle after the
NCK and PLC have run up.
Programming
Loading and starting of the part program with the following content:
Program code
...
R1=$A_PBW_IN[0]
R2=$A_PBD_IN[2]
R3=$A_PBR_IN[6]
R4=$A_PBB_IN[10]
...
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
- log. addr. 420:
- log. addr. 422:
- log. addr. 426:
- log. addr. 430:
time (for read access) was configured via MD10398 $MN_PLCIO_IN_UPDATE_TIME so
that an update is only performed in every third interpolation cycle.
A4: Digital and analog NCK I/Os for SINUMERIK 840D sl
16-bit analog input module
32-bit digital input module
32-bit DP slave input
8-bit digital input module
Comment
; Read in 16-bit integer
; Read in 32-bit integer
; Read in 32-bit float
; Read in 8-bit integer
1.2 Access via PLC
; Data is read in from log.
addr. 420 onwards
; A total of 11 bytes have to be
read in
; Update time period = 30 ms
(interpolation cycle = 12 ms)
; Data is displayed in big-
endian format
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d slSinumerik 828d

Table of Contents