Operation
19
Request:
0x10, 0x08, 0x5B, 0x01, 0x..., 0x..., 0x..., 0x...
(Variable index in bytes , "0x..." means any value for the four data
bytes)
Then the value 65.0 must be entered in the data bytes:
0x10, 0x8B, 0x5B, 0x01, 0x00, 0x00, 0x82, 0x42
(Variable index in bytes)
When all bytes have been entered (except for the second byte),
the polling number can be incremented:
0x10,
0x09
, 0x5B, 0x01, 0x00, 0x00, 0x82, 0x42
(Variable index in bytes)
Response (provided that no errors have occurred):
0x10, 0x08, 0x5B, 0x01, 0x01, 0x00
(Variable index in bytes)
The modified polling number is returned only when the acyclic
write job has been fully processed by the DP slave. --
0x10,
0x09
, 0x5B, 0x01, 0x010, 0x00
(Variable index in bytes)
Since the polling number (2nd byte) is then identical with the
transmitted polling number, the result can be evaluated. -
If the status (5th byte) is correct, the value 0x01 (as indicated
here) and the value 0x00 (6th. byte, error) are returned. - Then the
next variable index can be written, or a new value can be entered
for the same variable index.
If the index is wrong (e.g. if the connected controller does not yet
know the index), a static diagnostic information is additionally
transmitted to the DP master. ---The DP master then has to poll
the diagnostic function until the DP slave does no longer transmit
this diagnostic data. ---