
colorCONTROL C4
48
Example 20: DATA FRAME with ORDER NUMBER = 20:
ORDER NUMBER (second word = 20): SEND LINE OK from the sensor to PC! Cf. example 1:
Send the same DATA FRAME but with ORDER NUMBER 20 to the sensor.
The sensor will reply with the same18 words but with SYNC-WORD=0x00AA which tell that there is a connection.
Example 30: DATA FRAME with ORDER NUMBER = 30:
ORDER NUMBER (second word = 30): Write calibration factors RED, GREEN, BLUE from PC into EEPROM!
The completely data frame = 18 words must be sent to the sensor hardware in binary form
(sync-word / order-word / 16 parameter words).
DATA FRAME PC Æ Sensor (18 WORDS)
0x0055 SYNC.-WORD
30 ORDER-WORD
VALUE CF RED
VALUE CF GREEN
VALUE CF BLUE
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
DATA FRAME Sensor Æ PC (18 WORDS)
0x00AA SYNC.-WORD
30 ORDER-WORD
VALUE CF RED
VALUE CF GREEN
VALUE CF BLUE
VALUE OFFSET RED
VALUE OFFSET GREEN
VALUE OFFSET BLUE
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
0 DUMMY
Comentarios a estos manuales