Omron CX-PROGRAMMER V9 - REV 12-2009 Operation Manual page 153

Table of Contents

Advertisement

OMRON
Name
LINT
NUMBER
(See note 2.)
REAL
LREAL
UDINT
UDINT_BCD
(See note 1.)
UINT
UINT_BCD
(See note 1.)
ULINT
ULINT_BCD
(See note 1.)
WORD
(See note 3.)
DWORD
(See note 3.)
LWORD
(See note 3.)
TIMER
COUNTER
STRING
(See note 4.)
Note 1: When structured text is used in a task program, the UINT-BCD, UDINT_BCD, ULINT_BCD,
2: NUMBER cannot be used in ST programs. An error will occur in the program check if this
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.
Size
Signed
4 words
Yes
Yes
2 words
Yes
4 words
Yes
2 words
No
2 words
No
1 word
No
1 word
No
4 words
No
4 words
No
1 word
---
2 words
---
4 words
---
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.
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.
256
---
bytes
(128
words)
and CHANNEL data types are handled as follows (CX-Programmer Ver. 7.2 only):
→ WORD
UINT BCD
UDINT BCD → DWORD
ULINT BCD → LWORD
→ WORD
CHANNEL
data type is used.
Format
Binary
Address of a long integer
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 '#'.
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.
IEEE
Address of a floating-point number. The
format is the 64-bit IEEE format.
Binary
Address of an unsigned double integer
BCD
Address of an unsigned double BCD
integer
Binary
Address of an unsigned integer
BCD
Address of an unsigned BCD integer
Binary
Address of an unsigned long integer
BCD
Address of an unsigned long BCD integer
Any
Address of a bit string of 16 bits.
Any
Address of a bit string of 32 bits.
Any
Address of a bit string of 64 bits.
ASCII
The data is handled as character strings.
The size can be set between 1 and 255
characters.
PART 1: CX-Programmer
CHAPTER 4 – Reference
Notes
CX-Programmer _Page 73

Advertisement

Table of Contents
loading

Table of Contents