Mitsubishi Electric M800VW Series Programming Manual page 346

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
 Functions
HABIN
 Converts hexadecimal ASCII data stored in the area starting from the device number designated by (S) to BIN 16-bit data,
and stores the result at the device number designated by (D).
b15
ASCII code for the 3rd digit
S
ASCII code for the 1st digit
S+1
For example, if the ASCII code "5A8DH" is designated in the area starting from (S), the following will be stored at (D).
b15
S
41H (A)
S+1
44H (D)
 ASCII data between 0000H to FFFFH can be designated by (S) to (S+1).
 ASCII code between "30H" to "39H" and "41H" to "46H" can be set to each digit.
DHABIN
 Converts hexadecimal ASCII data stored in the area starting from the device number designated by (S) to BIN 32-bit data,
and stores the result at the device number designated by (D).
b15
ASCII code for the 7th digit
S
ASCII code for the 5th digit
S+1
ASCII code for the 3rd digit
S+2
ASCII code for the 1st digit
S+3
For example, if the ASCII code "5CB807E1H" is designated in the area starting from (S), the following will be stored at
(D+1) and (D).
b15
S
43H (C)
S+1
38H (8)
S+2
37H (7)
S+3
31H (1)
 ASCII data between 00000000H to FFFFFFFFH can be designated by (S) to (S+3).
 ASCII code between "30H" to "39H" and "41H" to "46H" can be set to each digit.
b8b7
b0
ASCII code for the 4th digit
ASCII code for the 2nd digit
b8b7
b0
35H (5)
38H (8)
b8b7
b0
ASCII code for the 8th digit
ASCII code for the 6th digit
ASCII code for the 4th digit
ASCII code for the 2nd
digit
b8b7
b0
35H (5)
42H (B)
30H (0)
45H (E)
b15
D
BIN 16-bit data
b15
D
5A8DH
D+1
b31
b16
b15
Upper 16 bits
Lower 16 bits
BIN 32-bit data
D+1
b31
b16
b15
5CBBH
325
b0
b0
D
b0
D
b0
07E1H
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents