User's Guide(PDF:657KB)

Small Cubic Type
5.0 Mega Pixel CCD
Monochrome PoCL Camera Link Camera
FV-L500B1
User’s Guide
RICOH COMPANY, LTD.
FV-L500B1
User’s Guide Rev. 1.02
1/31
Table of Contents
1
Connector Specifications..................................................................................................................................... 3
1.1
1.2
1.3
2
Camera Link Connector...................................................................................................................................... 3
Power-I/O Connector .......................................................................................................................................... 4
Equivalent Circuit for the Input Pin of the I/O Connector.................................................................................... 5
Camera Output Timing Charts............................................................................................................................. 6
2.1
Normal Mode (Setting 10H: 1XX0XXXX)......................................................................................................... 6
2.1.1
Horizontal Timing......................................................................................................................................... 6
2.1.2
Vertical Timing ............................................................................................................................................. 7
2.1.2.1
Normal Full Scanning (Setting 10H: 1XX00XXX, 11H: XXX0X000).................................................. 7
2.1.2.2
Partial Full Scanning (Setting 10H: 1XX01XXX, 11H: XXX0X000) ................................................... 7
2.1.2.3
1/2 Partial Scanning (Setting 10H: 1XX01XXX, 11H: XXX0X001).................................................... 8
2.1.2.4
1/4 Partial Scanning (Setting 10H: 1XX01XXX, 11H: XXX0X010).................................................... 8
2.1.2.5
Variable Partial Scanning (Setting 10H: 1XX01XXX, 11H: XXX0X111).......................................... 9
2.2
Binning Mode (Setting 10H: 1XX1XXXX).................................................................................................... 10
2.2.1
Horizontal Timing....................................................................................................................................... 10
2.2.2
Vertical Timing ........................................................................................................................................... 11
2.2.2.1
Binning Full Scanning (Setting 10H: 1XX10XXX, 11H: XXX0X000) ............................................... 11
2.2.2.2
Binning Partial Full Scanning (Setting 10H: 1XX11XXX, 11H: XXX0X000) .................................... 11
2.2.2.3
Binning 1/2 Partial Scanning (Setting 10H: 1XX11XXX, 11H: XXX0X001) ..................................... 12
2.2.2.4
Binning 1/4 Partial Scanning (Setting 10H: 1XX11XXX, 11H: XXX0X010) ..................................... 12
2.3
Data Order on the Camera Link Output............................................................................................................ 13
2.4
2 Taps Transferring Image (2XE-1Y).............................................................................................................. 14
2.5
Pixel Transferring Image................................................................................................................................... 14
3
Camera Operational Mode ................................................................................................................................. 15
3.1
Normal Mode .................................................................................................................................................... 15
3.1.1
Frame Exposure ........................................................................................................................................ 15
3.1.2
Electric Shutter .......................................................................................................................................... 15
3.2
Pulse Width Trigger Mode ................................................................................................................................ 16
3.2.1
Pulse Width Trigger Mode(V-Reset) ..................................................................................................... 16
3.2.2
Pulse Width Trigger Mode (Non-Reset) .................................................................................................... 17
3.2.3
Exposure Timing........................................................................................................................................ 17
3.3
Edge Preset Trigger Mode................................................................................................................................ 18
3.3.1
Edge Preset Trigger Mode (V-Reset) ........................................................................................................ 18
3.3.2
Edge Preset Trigger Mode (Non-Reset).................................................................................................... 19
3.3.3
Exposure Timing........................................................................................................................................ 19
3.4
H Reset Mode................................................................................................................................................... 20
4
Communication Protocol ................................................................................................................................... 21
4.1
Communication Method.................................................................................................................................... 21
4.2
Communication Settings................................................................................................................................... 21
4.3
Communication Format .................................................................................................................................... 21
4.4
Camera Control Command............................................................................................................................... 24
4.4.1
Camera Command List ............................................................................................................................. 24
4.4.2
Descriptions of the Camera Control Commands....................................................................................... 26
5
Revision History.................................................................................................................................................. 31
FV-L500B1
User’s Guide Rev. 1.02
2/31
1
Connector Specifications
Power-I/O Connector
Camera Link Connector
1.1
Camera Link Connector
SDR (3M) or equivalent
This product is a PoCL type.
When a frame grabber is PoCL compliant, DO NOT SUPPLY POWER FROM THE I/O CONNECTOR.
When a frame grabber is NOT PoCL compliant, supply power from the I/O connector.
Pin Assignment
Pin No.
Signal Name
Pin No.
Signal Name
1
+12V
14
GND
2
X0-
15
X0+
3
X1-
16
X1+
4
X2-
17
X2+
5
Xclk-
18
Xclk+
6
X3-
19
X3+
7
SerTC+
20
SerTC-
8
SerTFG-
21
SerTFG+
9
CC1-(TRG)
22
CC1+(TRG)
10
CC2+
23
CC2-
11
CC3-
24
CC3+
12
CC4+
25
CC4-
13
GND
26
+12V
FV-L500B1
User’s Guide Rev. 1.02
3/31
1.2
Power-I/O Connector
HR10A-7R-6PB(Hirose)or equivalent
This connector is for the power supply (12Vdc) and input /output signals.
Use HR10A-7P-6S (Hirose) or equivalent for the cable side.
Pin Assignment
Pin No.
Signal Name
IN / OUT
1
GND
IN
2
I/O-1
IN/OUT
3
I/O-2
4
I/O-3
5
6
Voltage
Low Voltage
High Voltage
0V
IN
0 to +0.99V
+2.3 to +3.3V
OUT
0V
+3.3V
OUT
OUT
0V
+3.3V
OUT
OUT
0V
+3.3V
I/O-4
OUT
OUT
0V
+3.3V
+12Vdc
IN
+12Vdc
Input/output signals can be assigned through the camera setting communication (see table 4).
Trigger input signal can be assigned either on Camera Link connector (CC1) or on the No. 2 pin of the
power-I/O connector through the camera setting communication.
IO Signal Patterns
Command No.
F0H[3..0]
Option 0
(Initial Setting)
0H
HR10A-7R-6PB (Hirose)
No.2 Pin
No.3 Pin
No.4 Pin
No.5 Pin
I/O-1 (SP4)
I/O-2 (SP3)
I/O-3 (SP2)
I/O-4 (SP1)
IN/TRG
N/A
N/A
OUT/TRG
Option 1
1H
Option 2
2H
OUT/CC4
OUT/CC3
OUT/CC”2
OUT/CC1
Option 3
3H
OUT/FVAL
OUT/XSG
OUT/XSUB
OUT/CC1
Option 4
4H
OUT/
OUT/
OUT/FVAL
OUT/LVAL
Right Image Data
Left Image Data
(MSB)
(MSB)
OUT/XHD
OUT/EXPDUR
(high-active)
(Exposure)
OUT/TRG
OUT/CC1
OUT/VD
N/A
N/A
OUT/HD
Option 5
5H
Option 6
6H
Others
7H-FH
For Test Use Only
For Test Use Only
Note 1: Output trigger signal has a latency of 30CLK (Approximately 470 nseconds) from input trigger signal.
Note 2: To input trigger signal from the I/O connector, change the setting of 12H.5.
Note 3: EXPDUR becomes high during exposure.
FV-L500B1
User’s Guide Rev. 1.02
4/31
1.3
Equivalent Circuit for the Input Pin of the I/O Connector
+3.3V
+3.3V
On resister Max. = 30ohm
100ohm
10kohm
TRIGGER IN
TC7WH241FK
TOSHIBA
FV-L500B1
User’s Guide Rev. 1.02
5/31
2
Camera Output Timing Charts
2.1
Normal Mode
2.1.1
(Setting 10H: 1XX0XXXX)
Horizontal Timing
1 CLK = 15.625 ns
1924 CLK
LVAL
DVAL
700 CLK
One horizontal (1H)
1224 CLK
700 CLK
FVAL
93
CLK
607 CLK
Video out
700 CLK
Horizontal blanking
FV-L500B1
User’s Guide Rev. 1.02
1224 CLK
Video output active term
700 CLK
Horizontal
blanking
6/31
2.1.2
Vertical Timing
2.1.2.1
Normal Full Scanning
(Setting 10H: 1XX00XXX, 11H: XXX0X000)
1 H = 30.063 μs, 16.000 Hz
2079H
One vertical (1V)
FVAL
21H
2057
2058
2058H
1
2
21H
Video out
21H
2058H
Vertical
blanking
Video output active term
21H
Vertical
blanking
LVAL
DVAL
2.1.2.2
Partial Full Scanning
(Setting 10H: 1XX01XXX, 11H: XXX0X000)
1 H = 30.063 μs, 16.100 Hz
2066H
One vertical (1V)
FVAL
8H
2057
2058
2058H
1
2
8H
Video out
8H
Vertical
blanking
2058H
Video output active term
8H
Vertical
blanking
LVAL
DVAL
※ By transferring the blanking period pixels at a high rate, the frame rate of the partial full scanning can
be increased compared to that of the normal full scanning.
FV-L500B1
User’s Guide Rev. 1.02
7/31
2.1.2.3
1/2 Partial Scanning
(Setting 10H: 1XX01XXX, 11H: XXX0X001)
1 H = 30.063 μs, 32.015 Hz
1039H
One vertical (1V)
FVAL
856H
1447
1448
183H
593
594
183H
Video out
183H
Vertical blanking
856H
Video output active term
183H
Vertical blanking
LVAL
DVAL
2.1.2.4
1/4 Partial Scanning
(Setting 10H: 1XX01XXX, 11H: XXX0X010)
1 H = 30.063 μs, 63.968 Hz
520H
One vertical (1V)
FVAL
256H
264H
1143
1144
889
890
264H
Video out
264H
Vertical blanking
256H
Video output active term
264H
Vertical blanking
LVAL
DVAL
FV-L500B1
User’s Guide Rev. 1.02
8/31
2.1.2.5
Variable Partial Scanning
EXT_TRIG
(Common)
FIX_TRIG
(Setting 10H: 1XX01XXX, 11H: XXX0X111)
Exposure time
Internal VD
10
20
30
40
50
Internal HD
Video out
Number of the
effective lines [Y]
FVAL
DVAL
LVAL
V1
High speed
transfer [X+a]
High speed transfer [f+g-X-Y]
V2
V3
SUB
Blanking (Front)
[BLK_F]
Number of the effective lines [Y]
Blanking (Back)
[BLK_B)
Total number of the line at 1 frame [TOTAL_LINE]
Optical black
+
Dummy bit
Blanking
(Front)
CCD effective
lines
Effective
lines
Blanking
(Back)
Optical black
FV-L500B1
User’s Guide Rev. 1.02
9/31
2.2
Binning Mode
2.2.1
(Setting 10H: 1XX1XXXX)
Horizontal Timing
1 CLK = 15.625 ns
1924 CLK
LVAL
DVAL
700 CLK
One horizontal (1H)
1224 CLK
700 CLK
FVAL
93
CLK
607 CLK
Video out
700 CLK
Horizontal blanking
FV-L500B1
User’s Guide Rev. 1.02
1224 CLK
Video output active term
700 CLK
Horizontal
blanking
10/31
2.2.2
Vertical Timing
2.2.2.1
Binning Full Scanning
(Setting 10H: 1XX10XXX, 11H: XXX0X000)
1 H = 30.063 μs, 32.015 Hz
1039H
One vertical (1V)
FVAL
10+11
12+13
2042+2043
2044+2045
1018H
21H
21H
Video out
1018H
21H
Vertical
blanking
21H
Vertical
blanking
Video output active term
LVAL
DVAL
2.2.2.2
Binning Partial Full Scanning
(Setting 10H: 1XX11XXX, 11H: XXX0X000)
1 H = 30.063 μs, 32.077 Hz
1037H
One vertical (1V)
1029H
1+2
3+4
8H
2055+2056
2057+2058
FVAL
8H
Video out
8H
Vertical
blanking
1029H
Video output active term
8H
Vertical
blanking
LVAL
DVAL
FV-L500B1
User’s Guide Rev. 1.02
11/31
2.2.2.3
Binning 1/2 Partial Scanning
(Setting 10H: 1XX11XXX, 11H: XXX0X001)
1 H = 30.063 μs, 54.890 Hz
606H
One vertical (1V)
428H
1445+1446
1447+1448
178H
593+594
595+596
FVAL
178H
Video out
178H
Vertical blanking
428H
Video output active term
178H
Vertical blanking
LVAL
DVAL
2.2.2.4
Binning 1/4 Partial Scanning
(Setting 10H: 1XX11XXX, 11H: XXX0X010)
1 H = 30.063 μs, 63.968 Hz
520H
One vertical (1V)
128H
1141+1142
1143+1144
392H
889+890
891+892
FVAL
392H
Video out
392H
Vertical blanking
128H
Video output active term
392H
Vertical blanking
LVAL
DVAL
FV-L500B1
User’s Guide Rev. 1.02
12/31
2.3
Data Order on the Camera Link Output
2TAP12bit
XCLK
X3
DA7 DA6
X2
DB3 DB2 DVAL FVAL LVAL DB5 DB4 DB3 DB2
X1
DA10 DA9 DB1 DB0 DB9 DB8 DA11 DA10 DA9
X0
DA1 DA0 DA8 DA5 DA4 DA3 DA2 DA1 DA0
SP
DB7 DB6 DB11 DB10 DA7 DA6
DA0 to DA11: 12bit data for one pixel from the first tap
DB0 to DB11: 12bit data for one pixel from the second tap
2TAP10bit
XCLK
X3
DA7 DA6
X2
DB3 DB2 DVAL FVAL LVAL DB5 DB4 DB3 DB2
X1
NC
X0
DA1 DA0 DA8 DA5 DA4 DA3 DA2 DA1 DA0
SP
DB7 DB6
NC
DA9 DB1 DB0 DB9 DB8
NC
NC
DA7 DA6
NC
DA9
DA0 to DA9: 10bit data for one pixel from the first tap
DB0 to DB9: 10bit data for one pixel from the second tap
2TAP8bit
XCLK
X3
DA7 DA6
X2
NC
X1
DB2 DB1
X0
DA1 DA0 DB0 DA5 DA4 DA3 DA2 DA1 DA0
SP
NC
NC
DB7 DB6 DA7 DA6
NC DVAL FVAL LVAL NC
NC
NC
NC
NC
NC
DB5 DB4 DB3 DB2 DB1
DA0 to DA7: 8bit data for one pixel from the first tap
DB0 to DB7: 8bit data for one pixel from the second tap
FV-L500B1
User’s Guide Rev. 1.02
13/31
2.4
2 Taps Transferring Image (2XE-1Y)
Sep X = 1
Sep X = 1
Tap1
Tap2
X2
Y1
XW/2
Y1
XW/2+1
Y1
XW-1
Y1
XW
Y1
X1
Y2
X2
Y2
XW/2
Y2
XW/2+1
Y2
XW-1
Y2
XW
Y2
X1
YH-1
X2
YH-1
XW/2
YH-1
XW/2+1
YH-1
XW-1
YH-1
XW
YH-1
X1
YH
X2
YH
XW/2
YH
XW/2+1
YH
XW-1
YH
XW
YH
Sep Y = 1
X1
Y1
2.5
Pixel Transferring Image
Pixel1 of
DataA
Pixel2 of
DataA
Pixel2 of
DataB
Pixel1 of
DataB
Pixeln of DataA: nth pixel being transferred from the TAP1
Pixeln of DataB: nth pixel being transferred from the TAP2
FV-L500B1
User’s Guide Rev. 1.02
14/31
3
Camera Operational Mode
3.1
Normal Mode
In this mode, the images are output continuously.
3.1.1
Frame Exposure
I nt er nal VD
Ex posur e t i me
CCD
ex posur e
Vi deo out
3.1.2
Electric Shutter
I n t e r n a l VD
Ex p o s u r e
t i me
CCD
ex posur e
Vi d e o o u t
FV-L500B1
User’s Guide Rev. 1.02
15/31
3.2
Pulse Width Trigger Mode
In this “pulse width trigger mode” with positive polarity, the camera exposure starts at the rising edge of the
trigger signal and stops at the falling edge of the trigger signal. Therefore, in the case that the exposure positive
polarity is selected, the actual exposure occurs when the trigger signal is at high state.
3.2.1
Camera mode
Pulse Width Trigger Mode(V-Reset)
Normal mode
Trigger mode
*Note. 2
Max. 1H
*Note. 1
Normal mode
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
Trigger signal
(Positive)
Internal VD
Sweep charges
*Note. 3
CCD exposure
Exposure
time
Video out
FVAL
Note 1: The camera does NOT switch to normal mode when the long exposure mode is selected.
This timing chart shows when the long exposure mode selected.
Note 2: The internal VD signal is reset immediately after the exposure is finished as depicted, and the video output
original is sent out according to that reset VD timing.
Note 3: The exposure time is controlled by the pulse width of the trigger signal as depicted.
FV-L500B1
User’s Guide Rev. 1.02
16/31
3.2.2
Pulse Width Trigger Mode (Non-Reset)
Normal mode
Camera mode
Trigger mode
*Note. 1
Normal mode
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
Trigger signal
(Positive)
*Note. 2
Next VD
Next VD
Internal VD
Sweep charges
*Note. 3
Exposure
time
CCD exposure
Video out
FVAL
*Note. 4
Note 1: The camera does NOT switch to normal mode when the long exposure mode is selected.
This timing chart shows with the long exposure mode selected.
Note 2: The internal VD signal does not reset by the trigger signal.
The video output signal is sent out at the next internal VD timing.
Note 3: The exposure time is controlled by the pulse width of the trigger signal as depicted.
Note 4: The FVAL signal does not output when the exposure by the trigger signal does not exists.
3.2.3
Exposure Timing
Trigger signal
(741 CLK)
T1
Filtering *Note.1
30 CLK
T1'
Exposure time
SUB
Exposure time: T1' = T1 + 741 CLK
SG
Notes: The trigger signal equal to or shorter than 30 CLK is removed by the filtering system.
Input trigger signal has to be more than 31 CLK pulse width.
The exposure starts 198 CLK after the rising edge of the trigger signal.
FV-L500B1
User’s Guide Rev. 1.02
17/31
3.3
Edge Preset Trigger Mode
In this “edge preset trigger mode”, the camera exposure starts at the rising edge of the trigger signal like the
“pulse width trigger mode” in the previous sections. However, in this mode, the exposure duration time is based on the
preset value stored by the by the camera setting communication.
3.3.1
Camera mode
Edge Preset Trigger Mode (V-Reset)
Normal mode
Trigger mode
*Note. 2
Max. 1H
Trigger signal
(Rising edge)
*Note. 1
Normal mode
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
Internal VD
*Note. 3
CCD exposure
Exposure
time
Video out
FVAL
Note 1: The camera does NOT switch to the normal mode when the long exposure mode is selected.
This timing chart shows when the long exposure mode is selected.
Note 2: The internal VD signal is reset immediately after the exposure is finished as depicted and the video output
signal is sent out according to the reset VD timing.
Note 3: The exposure time is preset by the camera setting communication as “shutter speed”.
FV-L500B1
User’s Guide Rev. 1.02
18/31
3.3.2
Camera mode
Edge Preset Trigger Mode (Non-Reset)
Normal mode
Trigger mode
*Note. 1
Normal mode
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
Trigger signal
(Rising edge)
*Note. 2
Next VD
Next VD
Next VD
Internal VD
*Note. 3
Exposure
time
CCD exposure
Video out
FVAL
*Note. 4
Note 1: The camera does NOT switch to normal mode when the long exposure mode is selected.
This timing chart shows when the long exposure mode selected.
Note 2: The internal VD signal does not reset by the trigger signal.
The video output signal is sent out at the next internal VD timing.
Note 3: The exposure time is preset by the camera setting communication as “shutter speed”.
Note 4: The FVAL signal does not output when the exposure by the trigger signal does not exists.
3.3.3
Exposure Timing
Trigger signal
Filtering *Note.1
30CLK
T1'
Exposure time
SUB
Exposure time: T1' = Preset electronic shutter
SG
Notes: The trigger signal equal to or shorter than 30 CLK is removed by the filtering system.
Input trigger signal has to be more than 31 CLK pulse width.
The exposure starts198 CLK after the rising edge of the trigger signal.
FV-L500B1
User’s Guide Rev. 1.02
19/31
3.4
H Reset Mode
Normally, video noise appears when the beginning of trigger signal is applied before finishing the video read-out
of the previous frame. This noise is caused by the SUB pulse, which is activated to clear all residual charges on the
CCD prior to a new exposure. By selecting this “H. Reset Mode”, the camera automatically holds the actual activation of
trigger until the next horizontal blanking period. By doing this, the SUB pulse is activated during the horizontal blanking
period and the noise in image can be avoided.
Due to the principal of this operation, there can be maximum “1 H” of delay of actual trigger signal.
Trigger signal
(Rising edge)
Next HD
Internal HD
Normal SUB pulse timing
SUB pulse
CCD exposure
Noise
Video out
FV-L500B1
User’s Guide Rev. 1.02
20/31
4
Communication Protocol
This camera has a communication function that enables external devises, such as a PC, to control the camera’s
functions.
Please use the “R-GigE-Software” communication software, or the following communication protocol to
communicate to the camera:
4.1
Communication Method
UART(RS232C), binary communication
4.2
Communication Settings
Settings
Baud Rate
4.3
9,600 bps / 38,400 bps
Data Bit
8 bit
Parity
None
Stop Bit
1 bit
Flow Control
None
Communication Format
The Sending data format from the PC to the camera is as follows:
SOF
(8bit)
Device
Code
Read/Write
(6bit)
Page
Command
Data
Selection
Code
Length
(1bit)
(8bit)
(8bit)
(1bit)
Data
(R: 1 byte)
(W: n bytes)
EOF
(8bit)
The Receiving Data format from the camera is as follows:
After sending the Read Command:
SOF
Data Length
Data
EOF
(8bit)
(8bit)
(n bytes)
(8bit)
After sending the Write Command:
SOF
Data Length
Receiving Code
EOF
(8bit)
(8bit) “00”
(1 byte)
(8bit)
FV-L500B1
User’s Guide Rev. 1.02
21/31
The description of the format is as follows.
Name
SOF
Device Code
Descriptions
Start of Frame. Always set or receive the value as “02H”
This indicates the destination of communication.
Read / Write
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”.
This specifies “Read” or “Write” to command numbers.
Page
Selection
Set (or receive) “0” to send the read command.
Set (or receive) “1” to send the write command.
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.
Command
Code
Data Length
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.
This indicates the contents of the data sent or received. Refer to the following page for the
details.
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”.
Data
EOF
Receiving
Code
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.
This indicates write data or read data according to command type.
End of Frame. Always set or receive the value as “03H”
This indicates results of the command sent
01H: OK (ACK), 10H: NG (NAC),
11H: Connection error with peripheral device
FV-L500B1
User’s Guide Rev. 1.02
22/31
【Example Code】Reading the data from the command 00H
Command to send: 02H, 00H, 00H, 01H, 00H, 03H
SOF
Device Code
Read/Write
Page Selection
Command Code
Data Length
Data
EOF
(8bit)
(6bit)
(1bit)
(1bit)
(8bit)
(8bit)
(1byte)
(8bit)
00H
01H
00H
03H
02H
00H
Command to receive upon a successful communication: 02H, 01H, 00H, 03H (assuming the data is 00H)
SOF
Data Length
Data
EOF
(8bit)
(8bit)
(n bytes)
(8bit)
02H
01H
00H
03H
【Sequence for the saving commands to the EEPROM】
Please use the following sequence for saving the commands to the EEPROM.
1) Set “1” to the 80H.0 to enable writing to the EEPROM.
2) Send the save data with the page selection “1”.
3) The camera sends back one of the following receiving codes after writing the EEPROM.
01H: OK
10H: NG
4) 80.0H is cleared to “0” automatically after writing the EEPROM.
Note1: The data cannot be saved to the EEPROM when 80H.0 is “0”.
Note2: When saving the consecutive sequence of commands, the above steps, 1) to 4), are necessary only once.
i.e.) saving the commands “10H, 11H, 12H, 13H”, or “22H, 23H, 24H”, etc.
Note3: When saving the non-consecutive sequence of commands, the above steps, 1) to 4), are necessary for the
same number of times.
i.e.) saving the commands “10H, 13H, 19H, 1BH” or “20H, 23H, 25H”, etc.
FV-L500B1
User’s Guide Rev. 1.02
23/31
4.4
Camera Control Command
4.4.1
Camera Command List
Command
No.
R/W
The data unit of the each command is 1 byte (8bit).
The data can be saved to the EEPROM if there is an “X” in the “Save to EEPROM” column in the
following list.
The camera initializes based on the stored data in the EEPROM when the power is applied.
Save to
Function
Initial Data
Data Range
Reserved
-
-
EEPROM
00 to 0FH
10H
R/W
X
Camera function mode 1 (8bit: D[70])
9
11H
R/W
X
Camera function mode 2 (8bit: D[70])
0
12H
R/W
X
Camera function mode 3 (8bit: D[70])
0
Reserved
-
Communication mode (8bit: D[70])
1
Reserved
-
-
0
0 to 4095
0
0 to 1923
0
0 to 2057
2058
0 to 2058
0
0 to 31
13H
14H
R/W
X
15 to 1FH
-
20H
R/W
X
Exposure time (H) of the electronic shutter (16bit: D[70])
21H
R/W
X
Exposure time (H) of the electronic shutter (16bit: D[158])
22H
R/W
X
Exposure time (CLK) of the electronic shutter (16bit: D[70])
23H
R/W
X
Exposure time (CLK) of the electronic shutter (16bit: D[158])
24H
R/W
X
Start line of the variable partial scanning (16bit: D[70])
25H
R/W
X
Start line of the variable partial scanning (16bit: D[158])
26H
R/W
X
Effective lines of the variable partial scanning (16bit: D[70])
27H
R/W
X
Effective lines of the variable partial scanning (16bit: D[158])
28H
R/W
X
Delay time for the trigger (8bit: D[70])
Reserved
-
-
R/W
X
CDS gain (8bit: D[70])
0
0 to 255
X
Digital gain
The Factory
0 to 255
29-2FH
30H
31H
32H
R/W
X
33 to 37H
38H
R/W
X
39 to 3DH
Gain offset (6bit: D[50])
Adjusted
Value
0 to 255
Reserved
-
-
Clamp level (8bit: D[70])
0
0 to 255
Reserved
-
-
4095
0 to 4095
-
3EH
R/W
X
Test pattern level (10bit: D[70])
3FH
R/W
X
Test pattern level (10bit: D[98])
40 to 53H
R/W
X
Reserved
-
68H
R/W
X
Digital clamp (8bit: D[7..0])
0
Reserved
-
-
6AH
R/W
X
Manual digital clamp (Left) (16bit D[7..0])
6BH
R/W
X
Manual digital clamp (Left) (16bit D[15..8])
0
0 to 1023
6CH
R/W
X
Manual digital clamp (Right) (16bit D[7..0])
6DH
R/W
X
Manual digital clamp (Right) (16bit D[15..8])
0
0 to 1023
Reserved
-
-
69H
6E to 77H
78H
R/W
X
Test pattern selection (8bit: D[7..0])
0
-
79H
R/W
X
Image effect selection (8bit: D[7..0])
0
-
Reserved
-
-
7A to FFH
80H
R/W
FV-L500B1
User’s Guide Rev. 1.02
EEPROM control (8bit: D[70])
24/31
81 to EFH
Command
No.
F0H
Reserved
R/W
Save to
Function
EEPROM
R/W
F1 to FFH
FV-L500B1
User’s Guide Rev. 1.02
-
-
Initial Data
Data Range
-
-
IO connector signals(8bit: D[70])
Reserved
25/31
4.4.2
Descriptions of the Camera Control Commands
(The underline settings are the factory default settings)
Command No.
Command Descriptions
[Camera function mode setting 1] Initial data: 09H
This sets the following camera function mode.
D[7N0]
D7
10H:
MOD1[7N0]
D6
D5
D4
D3
D2
D1
D0
D7:
Continuous / Trigger Mode
0: Auto
1: Manual
D6:
Trigger Polarity
0: Positive
1: Negative
D5:
Trigger Mode
0: Edge Preset
1: Pulse Width
D4:
Binning Mode
0: OFF (Normal)
1: ON (Binning)
D3:
Scanning Mode
0: Full scanning
1: Partial scanning
D2~D0:
Reset Mode
000: Non-Reset
001: V-Reset
010~111: No function
(Prohibited setting. Please do not use these)
When D7 is set to “0: Auto”, a camera will detect its operational mode based on the input trigger signal.
If the input trigger signal is kept at high, the camera operates in the continuous mode, assuming the trigger polarity
is set to positive.
[Camera function mode setting 2] Initial data: 0
This sets the following camera function modes.
D[7N0]
D7
D6
D7~D4:
11H:
MOD2[7N0]
D5
D4
D3
D2
No Function
D1
D0
Set always “0000”
D3
Function Mode
0: Trigger
1: Normal
D2~D0:
Partial Scanning
000: Full scanning
001: 1/2 partial scanning
010: 1/4 partial scanning
011~110: No function
(Prohibited setting. Do not set these values)
111: Variable partial scanning
Function mode is enabled when the “Continuous/Trigger” mode selection (MOD[7] is manual (set as 1).
No video output without the trigger signal input while the camera works with the trigger mode.
[Camera function mode setting 3] Initial data: 0
This sets the following camera function modes.
D[7N0]
D7
12H:
D6
D7~D6:
D5
D4
D3
D2
Video Out
D1
D0
00: 10bit
01: 8bit
10: 12bit
MOD3[7N0]
11: No function (Prohibited setting. Do not set these values)
D5:
Trigger-in connector selection
0: Camera Link (CC1)
1: /IO connector (No.2 Pin)
D4~D3:
Exposure Start Mode
00: Normal
01: Reserved trigger
D2~D0:
No Function
Set always “000”
10 ~11: H reset
FV-L500B1
User’s Guide Rev. 1.02
26/31
Command No.
Command Descriptions
[Communication mode] Initial Data: 01H
This sets the communication modes.
D[7N0]
D7
D6
D5
D4
D3
D2
D1
D0
14H:
UART[7N0]
D7~D2:
No Function
Set always “000000”
D1~D0:
Communication Mode
00: 38,400 bps
01: 9,600 bps
10 to 11: No function (Prohibited setting. Do not set these
values)
[Exposure time (H) of the electronic shutter]
Initial Data: SVR[15N0] = 0, Data Range: 0 to 4095
Sets the preset shutter speed (or CCD exposure time) for electronic shutter.
The preset shutter speed is defined by the following formula.
20H:
Exposure time (shutter speed) = SVR[15N0] x (1H cycle time) + SHR[15N0] x (1CLK cycle time)
SVR[7N0]
21H:
SVR[15N8]
Notes:
1.
The camera works with the shutter off position (maximum frame exposure time) when both SVR and
SHR are set at “0”.
2.
The camera works with the minimum shutter speed when this value is set to 0 and the value of SHR is
set between 1 and 600.
3.
The value is replaced with 4095 automatically when the value set greater than 4095.
[Exposure time (CLK) of the electronic shutter]
Initial Data: SHR[15N0] = 0, Data Range: 0 to 1923
Sets the preset shutter speed (or CCD exposure time) for electronic shutter.
The previous section, the preset shutter speed is defined by the following formula:
22H:
Preset shutter speed = SVR[15N0] x (1H cycle time) + SHR[15N0] x (1CLK cycle time)
SHR[7N0]
23H:
SHR[15N8]
Notes:
1.
The camera works with the shutter off position (maximum frame exposure time) when both SVR and
SHR are set at “0”.
2.
The camera works with the minimum shutter speed when SVR is set to 0 and this value is set
between 1 and 600.
3.
The value replaces by 1923 automatically when the value set greater than 1923.
[Start line of the variable partial scanning]
Initial Data: PSR[15N0] = 0, Data Range: 0 to 2057
This sets the start line number of the variable partial scanning area.
24H:
PSR[7..0]
Actual start line of the partial scanning = this value + 1
25H:
PSR[15N8]
Notes:
1.
The value replaces by 2057 automatically when the value set greater than 2057.
2.
The camera works with full scanning mode when the value of (PSR[ ] + PWR[ ]) is greater than 2058.
FV-L500B1
User’s Guide Rev. 1.02
27/31
Command No.
Command Descriptions
[Effective line numbers in the variable partial scanning]
Initial Data: PWR[15N0] = 2058, Data Range: 0 to 2058
26H:
This sets the number of the total effective lines (image height) in the variable partial scanning mode.
PWR[7N0]
27H:
PWR[15N8]
Notes:
1.
The value replaces by 2058 automatically when the value set greater than 2058.
2.
The camera works with full scanning mode when the value of (PSR[ ] + PWR[ ]) is greater than 2058.
[Delay time for the trigger] Initial Data: DLY[7N0] = 0, Data Range: 0 to255
28H:
DLY[7N0]
Sets the delay time from the trigger input signal to the start of the exposure.
Delay time (us) = 128 x CLK x DLY[7N0] = 2.000 (us) x DLY[7N0], where CLK = pixel clock
[CDS gain] Initial Data: PGA[7N0] = 0, data range: 0 to 255
Sets the CDS gain (programmable analog gain).
30H
PGA[7N0]
CDS gain = 11.1 + 0.0359 x (PGA[7..0] x 2 + GOFS[7..0]) (dB)
*GOFS[7...0]: The gain offset (The value of the address 32H)
[Digital gain] Initial Data: The factory adjusted value, Data Range: 0 to 255
Sets the digital gain.
Output level = (input level – CLAMP[7N0] x 16 – (CDS_CLAMP_L[9..0] + CDS_CLAMP_R[9..0]) / 2) x
(1 + (DGB[7..0] + GOFS[7..0]) / 128) + CLAMP[7..0] X 16 +
31H
(CDS_CLAMP_L[9..0] + CDS_CLAMP_R[9..0]) / 2
DGB[7N0]
*CLAMP[7...0]: clamp level (command no. 38H)
*GOFS[7...0]: gain offset (command no. 32H)
*CDS_CLAMP_L[9...0]: CDS clamp left (command no. CC-CDH)
*CDS_CLAMP_R[9...0] CDS clamp right (command no. CE~CFH)
32H
[Gain offset] Initial Data: The factory adjusted value, Data Range: 0 to 255
GOFS[7N0]
[Clamp level] Initial Data: CLAMP[7N0] = 0, Data Range: 0 to 31
This sets the clamp level value of the black level.
38H:
CLAMP[7N0]
Clamp level (Left) = CLAMP[7..0] x 16 + CDS Clamp (Left)
Clamp level (Right) = CLMAP[7N0] x 16 + CDS Clamp (Right)
The value replaces by 31 automatically when the value set greater than 31.
3EH: TP0[7N0]
3FH:TP0[9N8]
[Test pattern level] Initial data: 4095, data range: 0 to 4095
Sets the output level of the test pattern 4: Raster (variable level) in 10-bit output format.
FV-L500B1
User’s Guide Rev. 1.02
28/31
Command No.
Command Descriptions
[Digital clamp] Initial data: DIGITAL_CLAMP[7..0] = 0
Sets the digital clamp.
D[7..0]
D7
D6
D5
D4
D3
D7 to D5:
No function
D2
D1
D0
Always set as “000”
68H:
D4:
Mirror image
0: Normal image
DIGITAL_
D3:
No function
Always set as “0”
CLAMP[7N0]
D2:
Clamp mode
0: Auto adjust
D1 to D0:
No function
Always set as “00”
1: Mirror image
1: Manual adjust
The following two settings have to be set when the “manual adjust” is selected at the clamp mode:
Manual digital clamp (Left): MD-CLAMP_L[15..0] (6A & 6BH)
Manual digital clamp (Right): MD_CLAMP_R[15..0] (6C & 6DH)
6AH:
MD_CLAMP_L
[Manual digital clamp (Left)]
Initial data: MD_CLAMP_L[15..0] = The factory adjusted value, data range: 0 to 1023
[7N0]
6BH:
MD_CLAMP_L
Sets the manual digital clamp for the left side of the image when the manual adjust is selected at the digital
clamp (68H).
[15N8]
6CH:
MD_CLAMP_R
[Manual digital clamp (Right)]
Initial data: MD_CLAMP_R[15..0] = The factory adjusted value, data range: 0 to 1023
[7N0]
6CH:
MD_CLAMP_R
Sets the manual digital clamp for the right side of the image when the manual adjust is selected at the digital
clamp (68H).
[15N8]
[Test pattern selection] Initial data: TESTP[7..0] = 0
Sets the test pattern output from the camera.
D[7..0]
78H:
D7
D6
D5
D4
D3
D2
D1
D0
TESTP[7N0]
00H:
Video output
02H:
Ramp wave
03H:
Uniform gray level (100% white)
04H:
Uniform gray level (variable level)
05H:
Color bar (RGB bayer)
Others:
Black
FV-L500B1
User’s Guide Rev. 1.02
01H:
Gray scale
29/31
Command No.
Command Descriptions
[Image effect selection] Initial data: EFFCT[7..0] = 0
Sets the image effect.
D[7..0]
D7
D6
D5
D4
D3
D2
D1
D0
00H:
No effect (Original video)
01H:
11bit gradation
79H:
02H:
10bit gradation
03H:
9bit gradation
EFFCT[7N0]
04H:
8bit gradation
05H:
7bit gradation
06H:
6bit gradation
07H:
5bit gradation
08H:
4bit gradation
09H:
3bit gradation
0AH:
2bit gradation
0BH:
1bit gradation
0C to FEH:
No function
FFH:
MSB-LSB reverse
[EEPROM control] Initial data: E2P[7N0] = 0
Sets the image effect.
D[7..0]
80H:
D7
D6
D5
D4
D3
D2
D1
D0
E2P[7N0]
D7~D2:
No function
Always set as “000000”
D1:
Register synchronous update with the EEPROM data
0: Prohibited
1: Accept
D0:
Write control to the EEPROM
0: Prohibited
1: Accept
[EEPROM control] Initial data: OUTSEL[7N0] = the value of C0H
Sets the image effect.
D[7..0]
F0H:
D7
D6
D5
D4
D3
D2
D1
D0
of
the
power/IO
OUTSEL[7N0]
D7~D4:
No function
D3~D0:
The
signals
Always set as “000000”
Please refer to “The Signals of the Power/IO Connector”
connector selection
Initial data: 0000,
FV-L500B1
User’s Guide Rev. 1.02
data range: 0000~0111
30/31
5
Revision History
Rev
Date
1.00
1.01
2012/06/15
2012/07/13
1.02
2012/09/27
Changes
Note
Initial Release
Updated
Document Title
Communication Protocol
78H Test pattern
79H Pasteurization
Added 3E-3FH Test pattern variable level
Updated
Power-I/O Connector
Power supply through No.6 pin of the power-I/O connector became available.
RICOH COMPANY, LTD.
URL http://www.ricoh.com/fa_security/
FV-L500B1
User’s Guide Rev. 1.02
31/31