FG_D6_CCLINK_EN_02 / 2020-06-17
Last results reading
For using this function, it is important to:
—
Having done a start on the instrument before (“End of cycle” bit on in the relay status)
—
Not having done a reset of the FIFO
—
Activate the “Read Last result” command:
Write at the address 00(h), the value 8000(h)
Byte 0 = 00(h)
Byte 1 = 80(h) (Y00F(h) = 1)
Acknowledgement
Command echo:
—
Byte 0 = 00(h)
—
Byte 1 = 80(h) (X00F(h) = 1)
Command error code:
—
Byte 2 = FF(h)
—
Byte 3 = FF(h)
(if command error code = FFFF(h), command is in
progress)
Running “Read Last result” command
Command finished
Command echo:
—
Byte 0 = 00(h)
—
Byte 1 = 80(h) (X00F(h) = 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 = 80(h) (X01F(h) = 1)
—
Wait the end of the command:
command echo = 8000(h) (X00F(h) = 1)
command error code ≠ FFFF(h) (end of command)
—
Deactivate the “Read Last result” command:
Write at the address 00(h) the value 0000(h)
Byte 0 = 00(h)
Byte 1 = 00(h) (Y00F(h) = 0)
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).