6.5 Variables
Subrange types can also be declared in table format.
● Whether values are within the declared range can be automatically checked when subrange
type variables of the DINT, UDINT, LINT, or ULINT data type are accessed. Use a POU for
implicit checks that checks ranges. For details, refer to
6.5.4 Structure, Enumeration, Alias, and Union Data Types
User-defined structure, enumeration, alias, and union data types can be declared using DUT
objects.
When using these data types, add DUT objects to the project.
1.
Right-click the [Application] object in the navigator pane and then select Add Object>DUT
from the context-sensitive menu that is displayed.
The "Add DUT" dialog box will be displayed.
The name in the "Name" field will be used as the name when the data unit type is accessed
by programs.
6-20
"10.7 POU for implicit
WUME-GM1RTXOP-01
checks".