![Omron CX-PROGRAMMER V8.1 Скачать руководство пользователя страница 62](http://html1.mh-extra.com/html/omron/cx-programmer-v8-1/cx-programmer-v8-1_operation-manual_744203062.webp)
37
Function Block Specifications
Section 2-1
■
External Variables
External variables are either system-defined variables that have been regis-
tered in CX-Programmer before hand, or variables that externally reference
user-defined variables in the global symbol table.
• For details on system-defined variables, refer to
Appendix A System-
defined external variables supported in function blocks.
• To externally reference user-defined variables in the global symbol table,
the variables of the same name and data type must be registered as an
external variable.
However, it is impossible to externally reference the variables user-
defined as a network symbol.
Variable Properties
Variable Name
The variable name is used to identify the variable in the function block. The
name can be up to 30,000 characters long. The same name can be used in
other function blocks.
Note
A variable name must be input for variables, even ones with AT settings (spec-
ified address).
Data Type
Any of the following types may be used.
Note
(1) The TIMER data type is used to enter variables for timer numbers (0 to
4095) in the operands for TIMER instructions (TIM, TIMH, etc.). When
this variable is used in another instruction, the Timer Completion Flag (1
bit) or the timer present value (16 bits) is specified (depending on the in-
struction operand). The TIMER data type cannot be used in structured
text function blocks.
(2) The COUNTER data type is used to enter variables for counter numbers
(0 to 4095) in the operands for COUNTER instructions (CNT, CNTR,
etc.). When this variable is used in another instruction, the Counter Com-
pletion Flag (1 bit) or the counter present value (16 bits) is specified (de-
pending on the instruction operand). The COUNTER data type cannot be
used in structured text function blocks.
Data type
Content
Size
Inputs
Outputs
In Out
Internals
BOOL
Bit data
1 bit
OK
OK
OK
OK
INT
Integer
16 bits
OK
OK
OK
OK
UNIT
Unsigned integer
16 bits
OK
OK
OK
OK
DINT
Double integer
32 bits
OK
OK
OK
OK
UDINT
Unsigned double integer
32 bits
OK
OK
OK
OK
LINT
Long (4-word) integer
64 bits
OK
OK
OK
OK
ULINT
Unsigned long (4-word) integer
64 bits
OK
OK
OK
OK
WORD
16-bit data
16 bits
OK
OK
OK
OK
DWORD
32-bit data
32 bits
OK
OK
OK
OK
LWORD
64-bit data
64 bits
OK
OK
OK
OK
REAL
Real number
32 bits
OK
OK
OK
OK
LREAL
Long real number
64 bits
OK
OK
OK
OK
TIMER
Timer (See note 1.)
Flag: 1 bit
PV: 16 bits
Not sup-
ported
Not sup-
ported
Not sup-
ported
OK
COUNTER
Counter (See note 2.)
Flag: 1 bit
PV: 16 bits
Not sup-
ported
Not sup-
ported
Not sup-
ported
OK
STRING
Text string data
Variable
Not sup-
ported
Not sup-
ported
Not sup-
ported
OK
Содержание CX-PROGRAMMER V8.1
Страница 3: ...iv...
Страница 5: ...vi...
Страница 7: ......
Страница 15: ...xvi...
Страница 19: ...xx...
Страница 25: ...xxvi Application Precautions 4...
Страница 26: ...Part 1 Function Blocks...
Страница 27: ......
Страница 153: ...128 Procedures Section 3 2...
Страница 154: ...Part 2 Structured Text ST...
Страница 155: ......
Страница 159: ...134 CX Programmer Specifications Section 4 2...
Страница 205: ...180 Procedures Section 6 1...
Страница 207: ...182 System defined external variables supported in function blocks Appendix A...
Страница 229: ...204 Revision History...
Страница 230: ......