EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R2 - Data Examples of Packet Elements

Mitsubishi Electric MELSEC iQ-RJ71C24-R2
574 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPENDICES APPENDIX
Appendix 5 Operation Image and Data Structure of Predefined Protocol
527
A
Data examples of packet elements
This section explains the processing procedures and practical data examples of elements that can be placed in a packet.
Length
Processing procedure
C24 processes length according to the following procedure.
Data example
The following is an example in the case where the calculated value of length is 258 bytes in decimal (258 is 102H in
hexadecimal).
Data flow is "Forward direction"
*1 Values in '( )' indicate ASCII code.
Data flow is "Reverse direction"
*1 Values in '( )' indicate ASCII code.
Data flow is "Byte swap"
*1 Values in '( )' indicate ASCII code.
Code type Data length
*1
1 byte 2 bytes 3 bytes 4 bytes
ASCII hexadecimal '2' (32H) '02' (30H 32H) '102' (31H 30H 32H) '0102' (30H 31H 30H 32H)
ASCII decimal '8' (38H) '58' (35H 38H) '258' (32H 35H 38H) '0258' (30H 32H 35H 38H)
HEX 02H 0102H 000102H 00000102H
Code type Data length
*1
1 byte 2 bytes 3 bytes 4 bytes
ASCII hexadecimal '20' (32H 30H) '201' (32H 30H 31H) '2010'(32H 30H 31H 30H)
ASCII decimal '85' (38H 35H) '852' (38H 35H 32H) '8520' (38H 35H 32H 30H)
HEX 0201H 020100H 02010000H
Code type Data length
*1
1 byte 2 bytes 3 bytes 4 bytes
ASCII hexadecimal '1020' (31H 30H 32H 30H)
ASCII decimal '2085' (32H 30H 38H 35H)
HEX 00000201H
C24
(Data flow) (Code type) (Data length)
(Calculating range)
Forward direction (upper byte lower → byte)
Reverse direction (lower byte upper → byte)
HEX
BIN → ASCII
conversion of
length value
Calculated
length value
Swapping send data
Byte swap
(by word)
*Only when the data length
specification is 4 bytes
ASCII hexadecimal
ASCII decimal
Data transmission
(Data flow) (Code type) (Data length)
(Calculating range)
Forward direction (upper byte lower → byte)
Reverse direction (lower byte upper → byte)
HEX
BIN → ASCII
conversion of
length value
Received length
value
Swapping receive data
Byte swap
(by word)
*Only when the data length
specification is 4 bytes
Data reception
ASCII hexadecimal
ASCII decimal

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R2

Related product manuals