PART 1: CX-Programmer
OMRON CHAPTER 4 – Reference
CX-Programmer _Page 61
Name Size Signed Format Notes
LINT 4 words Yes Binary Address of a long integer
NUMBER
(See note 2.)
– Yes Decimal A literal value - not an address. ‘NUMBER’
type symbols can be used for numeric
operands which are usually prefixed with
‘#’,‘&’, ‘+’ or ‘-‘. They can be used in BCD or
binary instructions. For BCD usage, the
value is treated as if entered in hex (e.g. the
number ‘1234’ has the same effect as
entering ‘#1234’ in the operand).
A floating-point value can be entered (e.g.
‘3.1416’). An engineering format number
can be entered (e.g. ‘-1.1e4’).
A decimal value is assumed. A
hexadecimal value can be entered using a
prefix of ‘#’.
REAL 2 words Yes IEEE Address of a floating-point number. The
format is the 32-bit IEEE format. For the
special OMRON floating point format (FDIV
instruction) use the UDINT_BCD type.
LREAL 4 words Yes IEEE Address of a floating-point number. The
format is the 64-bit IEEE format.
UDINT 2 words No Binary Address of an unsigned double integer
UDINT_BCD
(See note 1.)
2 words No BCD Address of an unsigned double BCD
integer
UINT 1 word No Binary Address of an unsigned integer
UINT_BCD
(See note 1.)
1 word No BCD Address of an unsigned BCD integer
ULINT 4 words No Binary Address of an unsigned long integer
ULINT_BCD
(See note 1.)
4 words No BCD Address of an unsigned long BCD integer
WORD
(See note 3.)
1 word --- Any Address of a bit string of 16 bits.
DWORD
(See note 3.)
2 words --- Any Address of a bit string of 32 bits.
LWORD
(See note 3.)
4 words --- Any Address of a bit string of 64 bits.
TIMER Used for a timer number, Timer Completion Flag, or timer present value.
Note: TIMERs can be used only for CJ2 CPU Units with unit version 1.0 or later
and only with CX-Programmer version 8.3.
COUNTER Used for a counter number, Counter Completion Flag, or counter present value.
Note: COUNTERs can be used only for CJ2 CPU Units with unit version 1.0 or
later and only with CX-Programmer version 8.3.
STRING
(See note 4.)
256
bytes
(128
words)
--- ASCII The data is handled as character strings.
The size can be set between 1 and 255
characters.
Note 1: When structured text is used in a task program, the UINT-BCD, UDINT_BCD, ULINT_BCD,
and CHANNEL data types are handled as follows (CX-Programmer Ver. 7.2 only):
• UINT BCD → WORD
• UDINT BCD → DWORD
• ULINT BCD → LWORD
• CHANNEL → WORD
2: NUMBER cannot be used in ST programs. An error will occur in the program check if this
data type is used.
3: CX-Programmer Ver. 5.0 or higher
4: This data type is supported only by CX-Programmer Ver. 7.2 (CX-One Ver. 2.1) or higher.