48
Instance Specifications
Section 2-3
(2) The size of function block input variables and output variables must
match the size of program symbols (global and local), as shown in the fol-
lowing table.
Note The program symbol NUMBER can be set only in the input param-
eters. The value that is input must be within the size range for the
function block variable data type.
INT Integer 16 bits Positive value: & or + followed
by integer
Negative value: − followed by
integer
−32,768 to 32,767
DINT Double integer 32 bits −2,147,483,648 to 2,147,483,647
LINT Long (8-byte) integer 64 bits −9,223,372,036,854,775,808 to
9,223,372,036,854,775,807
UINT Unsigned integer 16 bits Positive value: & or + followed
by integer
&0 to 65,535
UDINT Unsigned double integer 32 bits &0 to 4,294,967,295
ULINT Unsigned long (8-byte)
integer
64 bits &0 to 18,446,744,073,709,551,615
REAL Real number 32 bits Positive value: & or + followed
by real number (with decimal
point)
Negative value:
− followed by
real number (with decimal
point)
−3.402823 × 10
38
to −1.175494 ×
10
−38
, 0, 1.175494 × 10
−38
to
3.402823 × 10
38
LREAL Long real number 64 bits
−1.79769313486232 × 10
308
to
−2.22507385850720 × 10
−308
, 0,
2.22507385850720 × 10
−308
,
1.79769313486232 × 10
308
WORD 16-bit data 16 bits # followed by hexadecimal
number (4 digits max.)
& or + followed by decimal
number
#0000 to FFFF or &0 to 65,535
DWORD 32-bit data 32 bits # followed by hexadecimal
number (8 digits max.)
& or + followed by decimal
number
#00000000 to FFFFFFFF or &0 to
4,294,967,295
LWORD 64-bit data 64 bits # followed by hexadecimal
number (16 digits max.)
& or + followed by decimal
number
#0000000000000000 to
FFFFFFFFFFFFFFFF or &0 to
18,446,744,073,709,551,615
Input
variable
data type
Contents Size Parameter value input
method
Setting range
Size Function block variable data
type
Program symbol (global, local)
data type
1 bit BOOL BOOL
16 bits INT, UINT, WORD INT, UINT, UINT BCD, WORD
32 bits DINT, UDINT, REAL, DWORD DINT, UDINT, UDINT BCD, REAL,
DWORD
64 bits LINT, ULINT, LREAL, LWORD LINT, ULINT, ULINT BCD, LREAL,
LWORD
More than 1
bit
Non-boolean CHANNEL, NUMBER (see note)