Omron CX-PROGRAMMER V8.1 Operation Manual page 126

Function blocks/ structured text
Table of Contents

Advertisement

Procedures
Input variable data
type
REAL
Real number
LREAL
Long real number
WORD
16-bit data
DWORD
32-bit data
LWORD
64-bit data
Note
Content
Size
32 bits
64 bits
16 bits
32 bits
64 bits
If a non-boolean data type is used for the input variable and only a numerical
value (e.g., 20) is input, the value for the CIO Area address (e.g, CIO 0020)
will be passed, and not the numerical value. To set a numerical value, always
insert an &, #, + or
Example Programs:
Instance for function block definition A
( INT )
10
DATA_1
If the data format for DATA_1 is INT, and "10" is input,
the value for CIO 0010 will be passed.
Instance for function block definition A
( INT )
&10
DATA_1
If the data format for DATA_1 is INT, and the prefix &
is added so that "&10" is input, the numerical value
will be passed.
If the input variable data type is boolean and a numerical value only (e.g.,
0 or 1) is input in the parameter, the value for CIO 000000 (0.00) or
CIO 000001 (0.01) will be passed. Always input P_Off for 0 (OFF) and
P_On for 1 (ON).
Input method
Positive value: & or + followed
by real number (with decimal
point)
Negative value:
followed by
real number (with decimal
point)
# followed by hexadecimal
number (4 digits max.)
& or + followed by decimal
number
# followed by hexadecimal
number (8 digits max.)
& or + followed by decimal
number
# followed by hexadecimal
number (16 digits max.)
& or + followed by decimal
number
prefix before inputting the numerical value.
Section 3-2
Setting range
×
38
3.402823
10
to
1.175494
×
×
38
10
, 0, +1.175494
10
×
38
to +3.402823
10
×
308
1.79769313486232
10
×
2.22507385850720
10
×
0, +2.22507385850720
10
×
to +1.79769313486232
10
#0000 to FFFF or &0 to 65535
#00000000 to FFFFFFFF or &0
to 4294967295
#0000000000000000 to
FFFFFFFFFFFFFFFF or &0 to
18446744073709551615
38
to
308
,
308
308
101

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