
111
Structure of Communication Frames
The function code is explained with the example of Query and
Response frame based on the 2-step communication.
Query (Q) and Response (R) frame
Query Acknowledge (QA) frame
Response Request (RR) frame
Response (R) frame for an error
DA
SA
Function code
Length
Information
CRC L
CRC H
Length of information area
(byte)
1 to 255: 1 to 255 bytes
0: 256 bytes
Function code
Sender ID
Receiver ID
DA
SA
$80
01
00
CRC L
CRC H
DA
SA
$00
01
00
CRC L
CRC H
DA
SA
$8X
01
Error No
CRC L
CRC H
CRC-16 code
(2 bytes)
Constant
Error #1. Wrong communication function code
Error #2. Out of range
Error #3. Wrong frame structure
Error #4. CPU did not perform
Error #5. Frame is too long
The frame is sent from SA
to DA. After Q or RR is sent,
DA and SA for the QA and
R from the CPU are
replaced each other,
because the CPU becomes
the sender and the
peripheral device becomes
the receiver of the
message.
Constant
Summary of Contents for Samsung NX-CPU700p
Page 1: ...NX700 Series Controller NX CPU700p User Manual ...
Page 78: ...78 Power check flow chart ...
Page 79: ...79 Run check flow chart ...
Page 80: ...80 Error check flow chart ...
Page 82: ...82 External environment check flow chart ...
Page 86: ...86 ...
Page 98: ...98 ...
Page 102: ...102 Decimal Bin Hex BCD Gray Code Cross reference Table ...
Page 104: ...104 ...
Page 121: ......