149
4
4 Instructions 4.5.1 Data Conversion
Other data processing
SWAP Higher and lower byte swap
BON ON bit check
SUM Total number of ON bits
RND Random number generation
XCH Data exchange
ANS Annunciator setting
ANR Annunciator reset
4.5.1 Data Conversion
Data conversion
INT Conversion from binary oating-point number format to
BIN integer format
BCD Conversion from binary to BCD format
BIN Conversion from BCD to binary format
FLT Conversion from binary integer format to binary oating-
point number format
EBCD Conversion from binary to decimal oating-point number
format
EBIN Conversion from decimal to binary oating-point number
format
DABIN Conversion from decimal ASCII format to BIN format
BINDA Conversion from BIN format to decimal ASCII format
WTOB Data separation by byte
BTOW Data combination by byte
UNI 4-bit combination of 16-bit data
DIS 4-bit separation of 16-bit data
ASCI Conversion from HEX to ASCII format
HEX Conversion from ASCII to HEX format
INT: Conversion from binary oating-point number format to BIN integer
format
◆
Overview
The INT instruction performs rounding of binary oating-point numbers to remove the fractional part. The
result is stored in D.
INT S D
Conversion from binary
floating-point number
format to BIN integer
format
Applicable model:
H3U
S
Data
source
Binary oating-point variable to be rounded
16-bit instruction
(5 steps)
INT: Continuous
execution
INTP: Pulse
execution
32-bit instruction
(9 steps)
DINT: Continuous
execution
DINTP: Pulse
execution
D
Operation
result
Unit that stores the resulting BIN integer