DTI600
25
Command
value
Data
0 to 27
Block
counter
Error
value
Status bit
"Cmd
End"
Status bit
"Cmd
Start"
Controller sets
command (read
35 bytes from
address 0x12)
0x03
UID
0x00
0x00
0
0
Device acknowl-
edges com-
mand
0x03
0x00
0x00
0x00
0
1
Device sets first
byte of the data
0x03
Data
0x00
0x00
0
1
Controller ac-
knowledges re-
ceipt of the data
0x03
Data
0x01
0x00
0
1
Unit sets error
value
0x03
Data
0x01
0x11
1
1
(ID tag not
available)
0x03
0x00
0x01
0x11
1
1
Controller with-
draws com-
mand value
0x00
UID
0x00
0x00
0
0
Tab. 6: Process data input
10.6 Operating mode Write data
In the operating mode "Write data" more than 29 bytes can be written with one write operation. The
data is sequentially transferred from the controller to the device.
Transferring data from the controller to the device:
u
Use the control to set the following values in the process data output: the command value "0x04",
the address (16 bits) and the data length (16 bits).
u
With the control, start the write operation with the status bit "Cmd Start”.
w
The device acknowledges the start of the write operation by setting the status bit "Cmd Start
Acknowledge" in the process data input.
u
With the control, fill the data in the process data output (data 0 to 27) and increase the block
counter by “1". The block counter is reset to “0” when the value exceeds “255”.
w
The device acknowledges receipt of the data by increasing the block counter in the process data
output by “1”.
u
The last two steps are repeated until all data has been transferred.
w
The device sets the status bit "Cmd End" with the last transfer to the ID tag.
The write operation is terminated.
If writing was unsuccessful, the device sets the error value and the status bit "Cmd End" in the
process image. The data transmission is interrupted.
Byte
Process data output when
starting the write operation
Process data output during
data transfer
Process data input
0
Command value=0x04
Command value=0x04
Command value=0x04
1
Status
Status
Status
2
ignored
Data 0
0x00
3
ignored
Data 1
0x00