Mitsubishi Electric MELSEC iQ-R Series User Manual page 533

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

Advertisement

Conversion variable
■Processing procedure
C24 processes conversion variable according to the following procedure.
• When "Conversion" is 'HEX  ASCII hexadecimal' or 'ASCII hexadecimal  HEX'
C24
(Delimiter)
No delimiter
Data
transmission
Adding
a delimiter
"00001234,"
When "Delimiter" is ' , '
"00001234,"←"00001234"
(Delimiter)
No delimiter
Data
reception
Deleting
a delimiter
Comma,
"00001234,"
space
When "Delimiter" is ' , '
"00001234,"→"00001234"
Blank-padded characters
When transmitting data, upper digits are filled with the data specified in "Blank-padded character" when the number of digits is
less than that specified in "Number of Send Digits of Data".
When receiving data, either '0' or '_(space)' is processed as a blank-padded character regardless of the specification in
"Blank-padded character".
Ex.
Setting of "Number of Send Digits of Data" is '6' ('_' indicates a space character in the table)
Received data
Operation of C24
000120
Considers the first 3 digits as blank-padded characters.
_ _ 0120
Considers the first 3 digits as blank-padded characters.
0 _ 0120
Considers the first 3 digits as blank-padded characters.
_ _ _ 120
Considers the first 3 digits as blank-padded characters.
Considers it to be an ASCII  BIN conversion error (7F20H).
00012 _
Considers it to be an ASCII  BIN conversion error (7F20H).
_ _ _ 12 _
Considers it to be an ASCII  BIN conversion error (7F20H).
0001 _ 0
(Number of digits)
(Blank-padded character)
Digits are filled
Variable number of digits
Adding
blank-padded
Digits are not filled (Blank-padded character : 0)
Comma,
characters
space
Digits are not filled (Blank-padded character : space)
When "Number of digits" is '8' and "Blank-padded character" is '0'
"00001234"←"1234"
(Number of data/Maximum number of data)
(Number of digits)
(Blank-padded character)
No blank-padded character
Variable number of digits
Deleting
blank-padded
Blank-padded
characters
characters are
When "Number of digits" is
included
'8' and "Blank-padded character" is '0'
"00001234"→"1234"
(Number of data/Maximum number of data)
Appendix 5 Operation Image and Data Structure of Predefined Protocol
(Conversion)
(Fixed number of data/
Variable number of data)
(Conversion unit)
CPU device
G device
BIN → ASCII
Transmitted data
conversion of
(numeric data)
transmitted data
When "Conversion unit" is 'Word'
"1234"←1234H
1234H
D0
(Conversion)
(Fixed number of data/
Variable number of data)
(Conversion unit)
CPU device
G device
ASCII → BIN
Received data
conversion of
(numeric data
received data
When "Conversion unit" is 'Word'
"1234"→1234H
1234H
D0
APPENDICES APPENDIX
)
A
531

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents