beautypg.com

Ricoh Gig# Vision VGA Monochrome CCD Camera FV-G030B1 User Manual

Page 19

background image



19/38

FV-G030B1
User’s Guide Rev. 1.02

The description of the format is as follows.

Name

Descriptions

SOF

Start of Frame. Always set or receive the value as “02H”

Device Code

This indicates the destination of communication.

Set “000000” when accessing the camera’s function settings
Set “100000” when accessing the camera’s extended function settings.
Please refer to the “Camera Command List” and “Description of the Camera Control
Commands”.

Read / Write

This specifies “Read” or “Write” to command numbers.

Set (or receive) “0” to send the read command.
Set (or receive) “1” to send the write command.

Page

Selection

This specifies page selection (access selection to registers or EEPROM) of command.

Set “0” to access the command register of the camera.
Read command: To obtain the current data from the command register.
Write command: To set a data into the command register.
The previously stored data is replaced by this data. However, the data in the EEPROM is not
replaced.

Set ”1” to access the EEPROM of the camera.
Read command: To read stored data from the EEPROM.
Write command: To store data into the EEPROM as default value.
The camera returns the receiving code “01H” to the PC after storing data in the EEPROM.

Command

Code

This indicates the contents of the data sent or received. Refer to the following page for the
details.

Data Length

This indicates the data length (unit: byte).

Receiving Frame:

The data length is dependent on each read command sent.
The data length is defined as “00H” when sending the write command.
The data length of error response is defined as “00H”.


Sending frame:

The data length is 1 byte dummy data when sending the read command, and that data is
not referenced.
The data length is dependent on each “write command” sent.

Data

This indicates write data or read data according to command type.

EOF

End of Frame. Always set or receive the value as “03H”

Receiving

Code

This indicates results of the command sent

01H: OK (ACK), 10H: NG (NAC), 12H: Command number error (Not matching),
13H: Communication frame error (only for Gamma data upload),
14H: Time out error (Two seconds),
15H: Check sum error (only for Gamma data upload),
16H: Data length error (Not matching), 17H: EEPROM write error