Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 451

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions convert the hexadecimal ASCII data stored in the device specified by (s) and later to 32-bit binary data,
and store the converted data in the device specified by (d).
• The setting method of the hexadecimal ASCII data to be set in (s) depends on the status of SM705 (Number of conversion
digits selection).
*1
Status of SM705
Setting method of (s)
OFF
Set (s) with a fixed number of digits (8 digits).
ON
Set (s) with a desired number of digits (maximum: 8
digits).
*1 For the firmware version of the CPU module supporting SM705, refer to the following.
 MELSEC iQ-R CPU Module User's Manual (Application)
A CPU module which does not support SM705 operates in the same way as SM705 is off even if it is turned on.
■Setting method of (s) for when SM705 (Number of conversion digits selection) is off
• Set hexadecimal ASCII data with 8 digits (fixed) in (s) to (s)+3.
b15
∙∙∙
b8
b7
(s)
ASCII 7
(s)+1
ASCII 5
(s)+2
ASCII 3
(s)+3
ASCII 1
ASCII : ASCII code (th digit)
(1) Upper 16 bits
(2) Lower 16 bits
• The ASCII data in the device specified by (s) to (s)+3 is within the range from 00000000H to FFFFFFFFH.
• The data of (s)+4 or later is ignored.
• A value from 30H to 39H and 41H to 46H can be set in each place of ASCII code.
Ex.
When 5CB807E1H is specified in (s)
b15
∙∙∙
b8
b7
(s)
43H (C)
(s)+1
38H (8)
(s)+2
37H (7)
(s)+3
31H (1)
∙∙∙
b0
ASCII 8
b31
ASCII 6
ASCII 4
ASCII 2
∙∙∙
b0
35H (5)
b31
42H (B)
30H (0)
45H (E)
Reference
Page 449 Setting method of (s) for when SM705 (Number of conversion
digits selection) is off
Page 450 Setting method of (s) for when SM705 (Number of conversion
digits selection) is on
(d)+1
(d)
∙∙∙
b16 b15
∙∙∙
(1)
(2)
BIN32
(d)+1
(d)
∙∙∙
b16 b15
∙∙∙
5CB8H
07E1H
b0
b0
6 BASIC INSTRUCTIONS
6.6 Data Conversion Instructions
6
449

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents