9. Fieldbus interface | 9.2 - Scale protocol | 113
9.2.2.2 Writing data
Procedure:
1. Wait until
Write_Active
= 0 in the read window (slave is ready to receive
new data).
2. Write value in bytes 0-3 of the write window.
3. Write the function number as
Write_Value_Select
in byte 5 of the write
window.
4. Wait until
Write_Active
= 1 in the read window.
5. Write 0 in byte 5 (
Write_Value_Select
).
Write_Active
is reset.
Action of the master
Slave reaction
Write value in
Write_Data
(bytes 0-3).
Write function number to
Write_Value_S
elect
.
Read data from
Write_Data
(bytes 0-3).
Set the
Write_Active
bit.
Wait until
Write_Active
has been set.
Write 0 in
Write_Value_Select
.
Reset the
Write_Active
bit.
9.2.2.3 Writing bits
In addition to the control bits in bytes 6/7, further bits can be set and, if nec
essary, reset directly with
Write_Value_Select
.
To set bits 80 to 127, the corresponding function number is written to
Write_
Value_Select
(see Chapter
To reset bits 80 to 89, the corresponding function 128 (208 to 217) is
written to
Write_Value_Select
.