Siemens SINUMERIK 828D Programming Manual page 47

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Values can be assigned by means of:
● Explicit specification of an array element
● Explicit specification of an array element as a starting element and specification of a
● Explicit specification of an array element as a starting element and specification of a
Syntax (
)
DEF
DEF <data type> <variable name>[<n>,<m>,<o>]
DEF
Syntax (
DEF...=SET...
Using a value list:
● During definition:
● During value assignment:
Syntax (
DEF...=REP...
Using a value with repetition
● During definition:
● During value assignment:
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
value list (
)
SET
value and the frequency at which it is repeated (
Note
FRAME data type user variables cannot be assigned initialization values.
STRING[<string length>] <variable name>[<n>,<m>]
)
DEF <data type> <variable name>[<n>,<m>,<o>]=SET(<value1>,<value2>, etc.)
Equivalent to:
DEF <data type> <variable name>[<n>,<m>,<o>]=(<value1>,<value2>, etc.)
Note
does not have to be specified for initialization via a value list.
SET
<variable name>[<n>,<m>,<o>]=SET(<VALUE1>,<value2>, etc.)
)
DEF <data type> <variable name>[<n>,<m>,<o>]=REP(<value>)
DEF <data type> <variable name>[<n>,<m>,<o>]=REP(<value>, <number_array_elements>)
<variable name>[<n>,<m>,<o>]=REP(<value>)
DEF <data type> <variable name>[<n>,<m>,<o>]=REP(<value>,<number_array_elements>)
Flexible NC programming
)
REP
1.1 Variables
47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents