App. - 38 App. - 38
APPENDIXES
Appendix 5.3 Data examples of packet elements
This section describes the processing procedures and practical data examples of
elements that can be placed in a packet.
Appendix 5.3.1 Length
(1) Processing procedure
The C24 processes Length according to the following procedure.
Received
length value
(Data flow)
(Data flow)
Sending data
Receiving data
Swapping
send data
Bin ASCII
conversion of
length value
Calculated
length value
Swapping
receive data
ASCII Bin
conversion of
length value
Byte swap (by word)
*Only when
the data length
specification is 4 bytes
Byte swap (by word)
*Only when the data length
specification is 4 bytes
ASCII hexadecimal
ASCII decimal
ASCII hexadecimal
ASCII decimal
Forward direction (upper byte lower byte)
Reverse direction (lower byte upper byte)
Forward direction (upper byte lower byte)
Reverse direction(lower byte upper byte)
C24
(Code type)
(Data length)
(Calculating range)
(Code type)
(Data length)
(Complement calculation)
HEX
HEX
(2) Data example
The following shows examples in the case where the calculated value of length is
258 bytes in decimal (258 is 102
H
).
(a) Data flow is 'Forward direction'
Data length
Code type
1 byte
2 bytes
3 bytes
4 bytes
ASCII hexadecimal
"2"
(32
H
)
"02"
(30
H
32
H
)
"102"
(31
H
30
H
32
H
)
"0102"
(30
H
31
H
30
H
32
H
)
ASCII decimal
"8"
(38
H
)
"58"
(35
H
38
H
)
"258"
(32
H
35
H
38
H
)
"0258"
(30
H
32
H
35
H
38
H
)
HEX
02
H
0102
H
000102
H
00000102
H
Summary of Contents for MELSEC LJ71C24
Page 1: ......
Page 2: ......
Page 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Page 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Page 23: ...A 21 A 21 MEMO...
Page 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Page 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Page 425: ......
Page 426: ......
Page 427: ......