2-9
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Using this Section
2
Variables that use derivative data types (enumerations, structures, and unions) are specified as such in
the tables of variable data types. The notation is described below.
The data type for an enumerated variable is given within the table. The following is an example. Here,
the data type of the Out variable is enumerated type _eDAYOFWEEK. The enumerators are described
in the description of the function of the instruction.
The data type for a structure or union variable is given within the table. The following is an example.
Here, the data type of the In1 variable is structure _sPORT. Details on the members of a structure or
union are given in the description of the function of the instruction.
The tables also indicate any variables for which you can specify a structure, a structure member, a
union, or a union member as the parameter.
In the following example, you can specify a parameter with a basic data type, or you can specify a struc-
ture, a structure member, a union, or a union member for the In1 variable. To specify a structure or
union, specify only the structure or the union as the parameter. To specify a structure member or a
union member, specify the member as the parameter.
Derivative Data Types (Enumerations, Structures, and Unions)
Enumerations
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK
Out Refer to Function for the enumerators of the enumerated type _eDAYOFWEEK.
Structures and Unions
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1 Refer to Function for details on the structure _sPORT.
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1 OKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOK
A structure, structure member, union, or union member can also be specified.