FG_D6_PROFIBUS_EN_01 / 2020-06-17
Writing of the function bits
—
Select the program number on which the functions
bits have to be read.
—
Write the functions bits at the address 20(h)
—
Activate the “Write functions bits” command:
Write at the address 00(h), the value 1000(h)
Byte 0 = 00(h)
Byte 1 = 10(h) (Bit 4 = 1)
Acknowledgement
Command echo:
—
Byte 0 = 00(h)
—
Byte 1 = 10(h) (Bit 4 = 1)
Command error code:
—
Byte 2 = FF(h)
—
Byte 3 = FF(h)
(if command error code = FFFF(h), command is in
progress)
Running “Write functions bits” command
Command finished
Command echo:
—
Byte 0 = 00(h)
—
Byte 1 = 10(h) (Bit 4 = 1)
Command error code if the command is correctly
carried out:
—
Byte 2 = 00(h)
—
Byte 3 = 00(h)
OR if an error occurred during the command:
—
Byte 2 = 00(h)
—
Byte 3 = 10(h) (Bit 4 = 1)
—
Wait the end of the command:
command echo = 1000(h)
command error code ≠ FFFF(h) (end of command)
—
Deactivate the “Write functions bits” command:
Write at the address 00(h) the value 0000(h)
Byte 0 = 00(h)
Byte 1 = 00(h) (Bit 4 = 0)
The functions bits are dependents of the program number.
A program selection has to be realised before executing command.
The master instrument must always set to zero the command bit. If it is not done, the slave instrument
will not detect the following command on this bit. It has detection on the rising edge (when the bit
state goes from 0 to 1).