Appendix 5.3 Data Examples Of Packet Elements; Appendix 5.3.1 Length - Mitsubishi Melsec-L Series User Manual

Communication module
Hide thumbs Also See for Melsec-L Series:
Table of Contents

Advertisement

Appendix 5.3 Data examples of packet elements

Appendix 5.3.1 Length

C24
Sending data
Byte swap (by word)
Receiving data
*Only when the data length
specification is 4 bytes
Data length
Code type
ASCII hexadecimal
ASCII decimal
HEX
App. - 38
This section describes the processing procedures and practical data examples of
elements that can be placed in a packet.
(1) Processing procedure
The C24 processes Length according to the following procedure.
(Data flow)
Forward direction (upper byte
Reverse direction (lower byte
Swapping
send data
(Data flow)
Forward direction (upper byte
Reverse direction(lower byte
Swapping
receive data
(2) Data example
The following shows examples in the case where the calculated value of length is
258 bytes in decimal (258 is 102
(a) Data flow is 'Forward direction'
1 byte
"2"
(32
)
H
"8"
(38
)
H
02
H
lower byte)
upper byte)
Bin
conversion of
length value
Byte swap (by word)
*Only when
the data length
specification is 4 bytes
lower byte)
HEX
upper byte)
ASCII
conversion of
ASCII hexadecimal
length value
ASCII decimal
).
H
2 bytes
"02"
(30
32
)
H
H
"58"
(35
38
)
H
H
0102
H
(Code type)
HEX
ASCII
ASCII hexadecimal
ASCII decimal
(Code type)
Bin
3 bytes
"102"
(31
30
32
)
H
H
H
"258"
(32
35
38
)
H
H
H
000102
H
APPENDIXES
(Data length)
(Calculating range)
Calculated
length value
(Data length)
(Complement calculation)
Received
length value
4 bytes
"0102"
(30
31
30
32
)
H
H
H
H
"0258"
(30
32
35
38
)
H
H
H
H
00000102
H
App. - 38

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lj71c24Lj71c24-r2

Table of Contents