Mitsubishi Electric M800VW Series Programming Manual page 334

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
BINHA, BINHAP, DBINHA, DBINHAP: Conversion from BIN 16-bit data to hexadecimal ASCII, conversion
from BIN 32-bit data to hexadecimal ASCII
Setting
Bit devices
data
X
Y
M
L
F
S
D
[Instruction symbol] [Execution condition]
BINHA, DBINHA
BINHAP, DBINHAP
 Setting data
Setting data
S
BIN data to be converted to ASCII.
D
The first number of the device to store conversion results.
 Functions
BINHA
 Converts each of the individual digit values of the BIN 16-bit data designated by (S) expressed as hexadecimal into ASCII
codes, and stores the result in the area starting from the device number designated by (D).
b15
S
BIN 16-bit data
For example, if "02A6H" is designated at (S), the following will be stored in the area starting from (D).
b15
b0
S
02A6H
 BIN values between 0H to FFFFH can be designated by (S).
 The operation results stored at (D) are processed as 4-digit hexadecimal values. For this reason, leading zeros of signifi-
cant digits are processed as "0". (No zero suppression is performed.)
 The storage of data at devices designated by (D+2) differs depending on the ON/OFF status of SM701 (output number of
characters conversion signal).
- When SM701 is OFF: Stores "00H".
- When SM701 is ON: No data is stored. (The value of the device does not change)
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
b15
ASCII code for the
b0
D
3rd digit
ASCII code for the
D+1
1st digit
D+2
b15
D
32H(2)
D+1
36H(6)
D+2
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
indicates the signs "BINHA"/"DBINHA".
b8b7
ASCII code for the
4th digit
ASCII code for the
2nd digit
0
b8b7
30H(0)
41H(A)
00H
313
Digit
Pointer
designa-
Index
tion
H
P
S
D
P
S
D
Data type
BIN 16/32 bits
Character string
b0
Only when SM701
is OFF
b0
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents