Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual page 42

Function blocks
Table of Contents

Advertisement

Function Block Specifications
Variable Properties
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.)
• For details on system-defined variables, refer to Appendix C External
Variables.
• To reference user-defined variables in the global symbol table, the vari-
ables must be registered in the global symbol table using the same vari-
able name and data type as the external variable.
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.
Content
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.
AT Settings (Allocation to Actual Addresses)
With internal variables, it is possible to set the variable to a particular I/O
memory address rather than having it allocated automatically by the system.
To specify a particular address, the user can input the desired I/O memory
address in this property. It is still necessary to use variable name in program-
ming even if a particular address is specified.
Note
(1) The AT property can be set for internal variables only.
Size
Inputs
1 bit
OK
16 bits
OK
16 bits
OK
32 bits
OK
32 bits
OK
64 bits
OK
64 bits
OK
16 bits
OK
32 bits
OK
64 bits
OK
32 bits
OK
64 bits
OK
Flag: 1 bit
Not supported Not supported OK
PV: 16 bits
Flag: 1 bit
Not supported Not supported OK
PV: 16 bits
Section 2-1
Outputs
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
27

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?

This manual is also suitable for:

Cx-programmer 5.0Sysmac ws02-cxpc1-e-v50Cs1-hCj1-hCj1m

Table of Contents

Save PDF