GX Works2 (Q-CPU) Acyclic communication example
Reading the response
The length of the expected read response is up to 8 bytes.
Finally modify the ladder block processing the response data. A positive response consists of just
4 bytes of data in the following format:
Byte no.
0
1
2
3
In case of a negative response, the format is as follows:
Byte no.
0
1
2
3
4
5
6-7
After a successful response is received (bit rDone is ON), check the length of the received re-
sponse to determine, whether the parameter write request was processed successfully. If the
length (rDataLengthRead) is equal to 4, set a bit indicating a successful parameter write. If this is
not true, a bit indicating parameter write failure shall be set, and the error code shall be extracted
to variable parameterWriteErrorCode.
40
Description
Request ID
Request reference
No. of parameters
DO-ID
Description
Request ID
Request reference
No. of parameters
DO-ID
No. of values
Format
Error value
Get Started
Value
0x02
0x01-0xFF (same as in request)
0x01
0x01
Value
0x82
0x01-0xFF (same as in request)
0x01
0x01
0x01
0x44 (error)
Byte swapped error value (see
error table)
Doc.Id. HMSI-216-127
Doc.Rev. 1.01
Need help?
Do you have a question about the A8NDPV1 and is the answer not in the manual?