Initialization Of Array Variables (Set, Rep) - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

10.4.24

Initialization of array variables (SET, REP)

Function
Array variables can be initialized or described with particular values in synchronized actions.
Note
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.
Syntax
DO ARRAY[n,m]=SET(<value1>,<value2>,...)
DO ARRAY[n,m]=REP(<value>)
Significance
ARRAY[n,m]
SET(<value1>,<value2>,..
.)
REP(<value>)
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
10.4 Actions in synchronized actions
Programmed array indices set
Initialization starts at the programmed array indexes.
For 2D arrays, the second index is incremented first.
This is not done with axis indices.
Initialization with value lists
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, an alarm is triggered.
Initialization with the same values
The array is described from the programmed array
indices to the end of the array and repeated using the
parameter <value>) of REP.
Motion synchronous actions
705

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents