Array; Subrange Types - Panasonic GM1 User Manual

Motion controller controller rtex
Hide thumbs Also See for GM1:
Table of Contents

Advertisement

● You can also use user-defined data types such as structure, enumeration, alias, and union. For
details, refer to

6.5.2 Array

GM Programmer allows the use of arrays.
Using arrays enables multiple data items to be used as a single variable.
This feature is useful when variables of the same type are handled collectively.
Example: When one-dimensional array a1 with eight INT type data items is declared
and used in an ST program
● Whether indexes are within the declared range can be automatically checked when variables in
an array are accessed. Use a POU for implicit checks that checks boundaries. For details, refer
to
"10.7 POU for implicit
● Using the array wizard for auto declaration enables array variables to be declared only by
entering index and base types. For details, refer to

6.5.3 Subrange Types

GM Programmer allows the use of subrange types. Subrange types allow the user to specify
the range of values for standard data types.
The following is a declaration example of subrange type variables in character string format.
If an attempt is made to substitute an out-of-range value for a variable, an error will be
displayed during build.
WUME-GM1RTXOP-01
"6.5.4 Structure, Enumeration, Alias, and Union Data
checks".
Types".
"6.2.3 Auto
Declaration".
6.5 Variables
6-19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gm1 series

Table of Contents