Mitsubishi Electric MELSEC iQ-R Series User Manual page 540

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

Advertisement

■Calculation procedure for sum check
The following show procedures for calculating sum check codes using the following sample data.
STX
"R"
For the data shown above
Sum check value=52H+4AH+37H+31H+43H+32H+34H+03H=1B0H
 Data flow: Forward direction
• "No Complement Calculation" is designated (1B0H in hexadecimal is 432 in decimal)
Code type
ASCII hexadecimal
ASCII decimal
HEX
*1 Values in '( )' indicate ASCII code.
• "One's complement" is designated (One's complement for 0000 01B0H is FFFF FE4FH)
When "Code type" is "ASCII decimal", the lower one word is extracted and converted from hexadecimal to decimal. (FE4FH
in hexadecimal is 65103 in decimal.)
Code type
ASCII hexadecimal
ASCII decimal
HEX
*1 Values in '( )' indicate ASCII code.
• "Two's complement" is designated (Two's complement for 0000 01B0H is FFFF FE50H)
When "Code type" is "ASCII decimal", the lower one word is extracted and converted from hexadecimal to decimal. (FE50H
in hexadecimal is 65104 in decimal.)
Code type
ASCII hexadecimal
ASCII decimal
HEX
*1 Values in '( )' indicate ASCII code.
APPENDICES APPENDIX
538
Appendix 5 Operation Image and Data Structure of Predefined Protocol
"J"
"7"
"1"
Calculating range
*1
Data length
1 byte
"0" (30H)
"2" (32H)
B0H
*1
Data length
1 byte
"F" (46H)
"3" (33H)
4FH
*1
Data length
1 byte
"0" (30H)
"4" (34H)
50H
"C"
"2"
"4"
2 bytes
3 bytes
"B0" (42H 30H)
"1B0" (31H 42H 30H)
"32" (33H 32H)
"432" (34H 33H 32H)
01B0H
0001B0H
2 bytes
3 bytes
"4F" (34H 46H)
"E4F" (45H 34H 46H)
"03" (30H 33H)
"103" (31H 30H 33H)
FE4FH
FFFE4FH
2 bytes
3 bytes
"50" (35H 30H)
"E50" (45H 35H 30H)
"04" (30H 34H)
"104" (31H 30H 34H)
FE50H
FFFE50H
Sum
ETX
check
4 bytes
"01B0" (30H 31H 42H 30H)
"0432" (30H 34H 33H 32H)
000001B0H
4 bytes
"FE4F" (46H 45H 34H 46H)
"5103" (35H 31H 30H 33H)
FFFFFE4FH
4 bytes
"FE50" (46H 45H 35H 30H)
"5104" (35H 31H 30H 34H)
FFFFFE50H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents