28 Fieldbus interface
3 Basics IL•1F CANopen DS301
0198441113586, V2.01, 11.2008
3.3.4 Reading and writing data
Writing data The client starts a write request by sending index, subindex, data length
and value.
The server sends a confirmation indicating whether the data was cor-
rectly processed. The confirmation contains the same index and
subindex, but no data.
Figure 3.13 Writing parameter values
Unused bytes in the data field are shown with a slash in the graphic. The
content of these data fields is not defined.
ccd coding The table below shows the command code for writing parameter values.
It depends on the message type and the transmitted data length.
Table 3.5 Command code for writing parameter values
Client
Server
1
2 3 4 5 6 70
COB-ID
ccd
Idx
2
Idx
1
Sidx
data
1
2 3 4 5 6 70
COB-ID
ccd
Idx
2
Idx
1
Sidx
data
write request
write response
23h
27h
2Bh
2Fh
60h
ccd=
ccd=
ccd=
ccd=
ccd=
data
data
data
data
Message type Data length used
4 bytes 3 bytes 2 bytes 1 byte
Write request 23
h
27
h
2B
h
2F
h
Transmitting param-
eters
Write response 60
h
60
h
60
h
60
h
Confirmation
Error response 80
h
80
h
80
h
80
h
Error