Mitsubishi Electric FX5 User Manual page 229

Melsec iq-f series
Hide thumbs Also See for FX5:
Table of Contents

Advertisement

Two's complement is designated (Two's complement for 0000 0015H: FFFF FFEBH)
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(hexadecimal: FFEBH, decimal: 65515)
Code type
Data length (Values in ( ) indicate ASCII code.)
1 byte
ASCII hexadecimal
ASCII decimal
HEX
Calculation procedure for sum check
The following show procedures for calculating sum check codes using the following sample data.
STX
"Q"
For the data shown above
Sum check value = 51H + 4AH + 37H + 31H + 43H + 32H + 34H + 4EH + 03H = 1FDH
■Data Flow: Forward Direction (Data Length: 1)
No complement calculation is designated
(Reference) Hexadecimal: 1FDH, Decimal: 509
Code type
Data length (Values in ( ) indicate ASCII code.)
1 byte
ASCII hexadecimal
D (44H)
ASCII decimal
9 (39H)
HEX
FDH
One's complement is designated (One's complement for 0000 01FDH: FFFF FE02H)
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(hexadecimal: FE02H, decimal: 65026)
Code type
Data length (Values in ( ) indicate ASCII code.)
1 byte
ASCII hexadecimal
2 (32H)
ASCII decimal
6 (36H)
HEX
02H
Two's complement is designated (Two's complement for 0000 01FDH: FFFF FE03H)
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(hexadecimal: FE03H, decimal: 65027)
Code type
Data length (Values in ( ) indicate ASCII code.)
1 byte
ASCII hexadecimal
3 (33H)
ASCII decimal
7 (37H)
HEX
03H
2 byte
"J"
"7"
"1"
Calculating range
2 byte
FD (46H 44H)
09 (30H 39H)
01FDH
2 byte
02 (30H 32H)
26 (32H 36)
FE02H
2 byte
03 (30H 33H)
27 (32H 37H)
FE03H
Appendix 2 Operation Image and Data Structure of Predefined Protocol
3 byte
"C"
"2"
"4"
3 byte
1FD (31H 46H 44H)
509 (35H 30H 39H)
0001FDH
3 byte
E02 (45H 30H 32H)
026 (30H 32H 36H)
FFFE02H
3 byte
E03 (45H 30H 33H)
027 (30H 32H 37H)
FFFE03H
4 byte
FFBE (46H 46H 42H 45H)
5551 (35H 35H 35H 31H)
FFFFEBFFH
Sum
"N"
ETX
check
4 byte
01FD (30H 31H 46H 44H)
0509 (30H 35H 30H 39H)
000001FDH
4 byte
FE02 (46H 45H 30H 32H)
5026 (35H 30H 32H 36H)
FFFFFE02H
4 byte
FE03 (46H 45H 30H 33H)
5027 (35H 30H 32H 37H)
FFFFFE03H
APPENDIX
A
227

Advertisement

Table of Contents
loading

Table of Contents