Configuring variables
6.3 Configuring GUD tags
6.3.2
Configuring GUD arrays
6.3.2.1
Overview
Introduction
GUDs in the NCU can also be defined as arrays, specifically as one, two and three-
dimensional arrays.
Table 6- 2
GUD definition
DEF {NCK|CHAN} type Name[number of lines,
number of columns]
DEF {NCK|CHAN} STRING[number of charac-
ters] Name[number of strings]
In WinCC (TIA Portal), however, multi-dimensional arrays must be linearized, which means
access is only performed via a single index:
● In one-dimensional arrays, this is simply the required index, starting at 0.
● With multi-dimensional arrays, the index must be calculated.
If, in WinCC (TIA Portal) you wish to dynamically access a GUD array via an index tag,
observe the associated notes (Page 80).
Note
Methods for indexing R parameters and GUD arrays
The method for indexing R parameters and GUD arrays depends on the employed Runtime
version or SIMATIC Panel.
See: Indexing of R parameters and GUD arrays (Page 70)
76
Definition of the GUD arrays in the NCU
Example
DEF NCK REAL REALNGUD[2,3]
DEF CHAN REAL REALCGUD[2,3]
DEF NCK STRING[8] NTEXT[5]
SINUMERIK Integrate Create MyHMI / WinCC V13 SP1
Configuration Manual, 11/2014