Predefined User Variables: Link Variables - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

Example
Assignments to R-parameters and use of R-parameters in mathematical functions:
Program code
R0=3.5678
R[1]=-37.3
R3=-7
$R4=-0.1EX-5
$R[6]=1.874EX8
R7=SIN(25.3)
R[R2]=R10
R[(R1+R2)*R3]=5
X=(R1+R2)
Z=SQRT(R1*R1+R2*R2)
See also
Variables (Page 17)
1.1.3

Predefined user variables: Link variables

Function
Link variables can be used in the context of the "NCU-Link" function for cyclic data exchange
between NCUs which are linked on a network. They facilitate data-format-specific access to
the link variables memory. The link variables memory is defined both in terms of size and
data structure on a system-specific basis by the user/machine manufacturer.
Link variables are system-global user variables which can be read and written in part
programs and cycles by all NCUs involved in a link if link communication has been
configured. Unlike global user variables (GUD), link variables can also be used in
synchronized actions.
On systems without an active NCU link, link variables can be used locally on the controller
as additional global user variables alongside global user variables (GUD).
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
Comment
;
Assignment in preprocessing
;
Assignment in preprocessing
;
Assignment in preprocessing
;
Assignment in main run: R4 = -0.1 * 10^-5
;
Assignment in main run: R6 = 1.874 * 10^8
;
Assignment in preprocessing
;
Indirect addressing using R-parameter
;
Indirect addressing using math. expression
;
Traverse axis X to the position resulting from the
sum of R1 and R2
;
Traverse axis Z to the square root position (R1^2 +
R2^2)
Flexible NC programming
1.1 Variables
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents