No.14S056-01
38
STC-CMC120APCL, STC-CMB120APCL
Specifications and Users guide
6.3 Communication Format
A. The format for sending data from the PC to the camera is as follows:
a. Send the read command
b. Send the write command
B. The format for receiving the data from the camera is as follows:
a. After the read command has been sent:
b. After the write command has been sent:
C. Descriptions of the format
SOF
Data length
Data
EOF
(8bit)
(8bit)
(Data length byte)
(8bit)
SOF
Device code
Read
Page selection
Command code
Data length
Data
EOF
(8bit)
(6bit)
(1bit)
(1bit)
(8bit)
(8bit)
(1byte)
(8bit)
Name
SOF
Device code
Read / Write
Page selection
Command
code
Data length
Data
The value of the data is depending on the command
Sets (or gets) the value is as “03H” always
E
nd
o
f the
f
rame
Result of the sending command
Sending data
The data length is 1 byte when send read command.
The data length is depending on the command when send write command.
EOF
Receiving code
The camera rejects other commands while the data of the EEPROM is being replaced
Please refer from the following page.
(approximately 5 msec. / byte).
Data length (Unit: byte)
The data length is depending on the command after sent read command.
Receiving data
The data length is “00H” after sent write command.
The data of the EEPROM is replaced by sent data when sent write command.
The camera sends the receiving coce as "01H" to the PC after the data of the EEPROM is replaced.
Sets (or gets) the value is as “02H” always.
Sets (or gets) “1” when send write command.
Sets “0” when access to the command register of the camera
The data of the command register is replaced by the sent data when sent write command.
The data of the EEPROM is not replaced.
Sets “1” when access to the EEPROM of the camera
The camera works with the data of the EEPROM when the power on the camera.
Gets the data from the EEPROM when sent read.
S
tart
o
f the
f
rame
Descriptions
Sets the device code of the camera is as “000000”.
Sets (or gets) “0” when send read command.
Gets current data from the command register when sent read command.
SOF
Device code
Write
Page selection
Command code
Data length
Data
EOF
(8bit)
(6bit)
(1bit)
(1bit)
(8bit)
(8bit)
(Data length byte)
(8bit)
SOF
Data length
Receiving code
EOF
(8bit)
(8bit) "00"
(8bit)
(8bit)
01H: OK (ACK),
10H: Receiving problem (NAC),
11H: Communication problem
14H: TimeOut
Содержание CL Series
Страница 1: ......