Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 452

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

Advertisement

■Setting method of (s) for when SM705 (Number of conversion digits selection) is on
Set hexadecimal ASCII data with a desired number of digits (including 00H (NULL code)) in (s). Note that 00H (NULL code) is
not required to be set for the maximum number of digits (8 digits).
The following table lists the setting method of (s).
Value to be set
Data of (s) to (s)+3
in (s)
• 0H to FH
• Set 00H in the upper byte of (s).
• The data of (s)+1 or later is ignored.
(s)
(s)+1
(s)+2
(s)+3
• 1000000H to
• Set 00H in the upper byte of (s)+3.
FFFFFFFH
• The data of (s)+4 or later is ignored.
(s)
(s)+1
(s)+2
(s)+3
ASCII : ASCII code (th digit)
• 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.
• If a value 00H is set in each place of ASCII code, the value will be processed as the end of the hexadecimal ASCII data.
Operation error
Error code
Description
(SD0)
3401H
Invalid data that cannot be converted are input in (s) to (s)+3.
• A value in each place of ASCII code is other than "30H" to "39H" and "41H" to "46H".
6 BASIC INSTRUCTIONS
450
6.6 Data Conversion Instructions
b15
∙∙∙
b8
b7
00H
ASCII 1
b15
∙∙∙
b8
b7
ASCII 6
ASCII 7
ASCII 4
ASCII 5
ASCII 2
ASCII 3
00H
ASCII 1
Value to be set
in (s)
• 10H to FFH
∙∙∙
b0
• 10000000H to
FFFFFFFFH
∙∙∙
b0
Data of (s) to (s)+3
• Set 00H in the lower byte of (s)+1.
• The data of the upper byte of (s)+1 or later is
ignored.
b15
∙∙∙
b8
b7
(s)
ASCII 1
(s)+1
(s)+2
(s)+3
• The data of (s)+4 or later is ignored.
b15
∙∙∙
b8
b7
(s)
ASCII 7
(s)+1
ASCII 5
(s)+2
ASCII 3
(s)+3
ASCII 1
∙∙∙
b0
ASCII 2
00H
∙∙∙
b0
ASCII 8
ASCII 6
ASCII 4
ASCII 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents