Hardy HI 1746-WS User Manual
Page 42

HI 1746-WS WEIGH SCALE MODULE
4-12
Float Integer to
Integer
Conversion
Command
(FLOAT2INT)
The Float Integer Conversion Command - converts a
floating point number into an integer format. (For use
with the SLC 5/02)
Data Input Values: 6 bytes (a four byte float, and a
two byte integer)
Return Value: 4 byte long integer, equal to the float
multiplied by the integer.
SEQ
NUMBER
0
COMMAND#
(Hex)
1
STATUS
2
OFFSET
3
LENGTH
4
DATA
5-16
From M1 File
0x96
Integer to Float
Integer
Conversion
Command
(INT2FLOAT)
The Integer to Float Integer Conversion Command -
Converts a Float integer to an integer. (For use with
the SLC 5/02)
Data Input Value: A four byte long integer, and a two
byte integer.
Return Value: A four byte float, equal to the long
divided by the two byte integer.
Error Return Value:
•
NOTALLOWED - returned if the two byte inte-
ger is zero.
SEQ
NUMBER
0
COMMAND#
(Hex)
1
STATUS
2
OFFSET
3
LENGTH
4
DATA
5
From M1
File
0x97
Integer
Divi-
dend
DATA
6
DATA
7
DATA
8-16
Integer
Divi-
dend
int2
Divisor