PART 1: CX-Programmer
OMRON
CHAPTER 4 – Reference
CX-Programmer _Page 53
Name Size
Signed
Format
Notes
LINT
4 words
Yes
Binary
Address of a long integer
NUMBER –
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 2
words No
BCD
Address of an unsigned double BCD
integer
UINT
1 word
No
Binary
Address of an unsigned integer
UINT_BCD
1 word
No
BCD
Address of an unsigned BCD integer
ULINT
4 words
No
Binary
Address of an unsigned long integer
ULINT_BCD
4 words
No
BCD
Address of an unsigned long BCD integer
Data Types and Timer / Counters
Information for a timer/counter on a PLC consists of three parts – a status bit, a pre-set-value and the current
value. Different data-types are used to refer to these different parts. These three parts can set to different
comments, but to set the same comment for all three parts, use I/O Comment view to input a comment - Refer to
Chapter 3 – Project Reference I/O Comment View
for further information. When there is no comment in the
symbol with a NUMBER or a UINT data-type, the comment of the symbol with a BOOL data-type will be
shown on the right of the right-busbar instead.
1. Define a symbol with a BOOL data-type to refer to the status value (e.g. a symbol with address/value
‘TIM1’ and data-type BOOL). This may be used for contacts.
2. Define a symbol with a NUMBER data-type to refer to the timer as a whole (e.g. a symbol with
address/value ‘1’ and data-type NUMBER). This can be used in timer/counter instructions (e.g. ‘TIM’).
3. Define a symbol with a UINT data-type to refer to the set-value part of the timer/counter (e.g. a symbol
with address ‘TIM1’ and data-type UINT). This can be used in instructions to read/write the set-value of
the timer.
Global Symbols
The PLC global symbol table is initially filled with some pre-set symbols, which depend upon the PLC type.
For example, the symbol ‘P_1s’ (1 second pulse) is created for many PLC types. All pre-set symbols have the
prefix ‘P_’ and they may not be removed or edited.
A global symbol table contains the PLC’s symbols – these symbols can be referenced by any program in the
PLC. Any unnamed symbols (IO comment - just addresses given a comment) are contained within the global
table - they may not be placed in a local symbol table.
Note:
Global symbols are only global for a particular PLC. It is not possible to share symbol
definitions between PLCs on the project workspace.
Summary of Contents for Sysmac WS02-CXPC1-EV3
Page 1: ...Cat No W414 E1 01 SYSMAC...
Page 2: ......
Page 3: ...SYSMAC WS02 CXPC1 EV3 CX Programmer Ver 3 1 Operation Manual Revised November 2002...
Page 4: ......
Page 6: ......
Page 7: ...PART1 CX Programmer...
Page 8: ......
Page 24: ......
Page 34: ......
Page 106: ......
Page 130: ......
Page 131: ...PART 2 CX Server PLC Tools...
Page 132: ......
Page 136: ......
Page 158: ......
Page 168: ......
Page 194: ......
Page 206: ......
Page 250: ......
Page 298: ......
Page 304: ......
Page 305: ...PART 3 CX Server Runtime...
Page 306: ......
Page 310: ......
Page 338: ......
Page 344: ......
Page 378: ......
Page 384: ......
Page 388: ......