EasyManuals Logo

Omron CX-PROGRAMMER V8.1 User Manual

Omron CX-PROGRAMMER V8.1
231 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #62 background imageLoading...
Page #62 background image
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-PROGRAMMER V8.1 and is the answer not in the manual?

Omron CX-PROGRAMMER V8.1 Specifications

General IconGeneral
BrandOmron
ModelCX-PROGRAMMER V8.1
CategorySoftware
LanguageEnglish

Related product manuals