VA Motion Controller Programming Manual
213
output
0~2,147,483,647
, input and
increase output
is
2,147,483,647;
input
-1~-2,147,483,648
,
output
4,294,967,295~2,147,483,648
,
input and then reduce output is
still
2,147,483,648;
accuracy will decrease
Input equals output, accuracy is
reduced
usage (take LREAL_TO_BYTE as an example)
LD, FBD
programming language
Note : IL, ST language programming needs to insert variables IN and OUT or use
constants in the current POU variable worksheet
Funtion and Action examples
Long floating point
number
10.0
rpm
BYTE
When the contact
C095
is
ON
, the execution of
the instruction, the address
of
V182
in the long floating-point number
10.0
revolut
ions of
BYTE
, stored in the
V183
in ;
Execution of results :
10.0
(
the LREAL
)
switch
16 # 0A
(
BYTE
)
10.3.17 TRUNC decimal rounding
The TRUNC
fraction has
four
instructions, which can convert
floating-point data to
SINT
,
INT
,
DINT,
and so on.
RUNC
decimal rounding instruction