EasyManuals Logo

Siemens SINUMERIK 840D Programming Manual

Siemens SINUMERIK 840D
687 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #485 background imageLoading...
Page #485 background image
Motion synchronous actions
10.4 Actions in synchronized actions
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
10-59
10.4.24 Initialization of array variables with SET, REP
Function
Array variables can be initialized or described with particular values in synchronized actions.
Programming
DO ARRAY[n,m]=SET(value1, value2, ...)
or
DO ARRAY[n,m] = REP(value)
Initialization starts at the programmed array indexes. For 2D arrays, the second index is
incremented first. This is not done with axis indices.
Value assignments of array variables
Only variables that can be described in synchronized actions are possible. Machine data
cannot therefore be initialized. Axis variables cannot be specified using the NO_AXIS value.
SET(value list) Initialization with value lists
REP (value) Initialization with the same values
Value list With the number of specified values
Value With the same value up to the end of
the array
SET(value list)
The array is described from the programmed array indices onwards using the SET
parameters. As many array elements are assigned as values are programmed. If more
values than exist in the remaining array elements are programmed, a system alarm is
triggered.
REP(value)
The array is described from the programmed array indices to the end of the array and
repeated using the REPparameters.
Example
WHEN TRUE DO SYG_IS[0]=REP(0)
WHEN TRUE DO SYG_IS[1]=SET(3,4,5)
Result:
SYG_IS[0]=0
SYG_IS[1]=3
SYG_IS[2]=4
SYG_IS[3]=5
SYG_IS[4]=0

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals