Omron CX-PROGRAMMER V8.1 Operation Manual page 62

Function blocks/ structured text
Table of Contents

Advertisement

Function Block Specifications
Variable Properties
Note
Data type
BOOL
Bit data
INT
Integer
UNIT
Unsigned integer
DINT
Double integer
UDINT
Unsigned double integer
LINT
Long (4-word) integer
ULINT
Unsigned long (4-word) integer
WORD
16-bit data
DWORD
32-bit data
LWORD
64-bit data
REAL
Real number
LREAL
Long real number
TIMER
Timer (See note 1.)
COUNTER
Counter (See note 2.)
STRING
Text string data
Note
■ 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 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.
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.
Content
1 bit
16 bits
16 bits
32 bits
32 bits
64 bits
64 bits
16 bits
32 bits
64 bits
32 bits
64 bits
Flag: 1 bit
PV: 16 bits
Flag: 1 bit
PV: 16 bits
Variable
(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.
Size
Inputs
Outputs
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Not sup-
Not sup-
ported
ported
Not sup-
Not sup-
ported
ported
Not sup-
Not sup-
ported
ported
Section 2-1
In Out
Internals
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Not sup-
OK
ported
Not sup-
OK
ported
Not sup-
OK
ported
37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents