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
Содержание MELSEC LJ71C24
Страница 1: ......
Страница 2: ......
Страница 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Страница 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Страница 23: ...A 21 A 21 MEMO...
Страница 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Страница 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Страница 391: ...App 62 App 62 APPENDIXES 3 Refresh parameter setting In Refresh Parameter set the following network parameters...
Страница 425: ......
Страница 426: ......
Страница 427: ......