Ricoh FV-L200B1 User Manual

Page 1
Small Cubic Type
UXGA CCD
FV-L200B1
User’s Guide
RICOH COMPANY, LTD.
FV-L200B1 User’s Guide Rev. 1.01
1/32
Page 2
Table of Contents
1
Connector Specifications.....................................................................................................................................3
1.1 Camera Link Connector......................................................................................................................................3
1.2 Power-I/O Connector .......................................................................................................................................... 4
2
Camera Output Timing Charts.............................................................................................................................5
2.1 Normal Mode (Setting 10H: 1XX0XXXX).........................................................................................................5
2.1.1 Horizontal Timing.........................................................................................................................................5
2.1.2 Vertical Timing ............................................................................................................................................. 6
2.1.2.1 Normal Full Scanning (Setting 10H: 1XX00XXX, 11H: X000X000)................................................ 6
2.1.2.2 Partial Full Scanning (Settting 10H: 1XX01XXX, 11H: X000X000) ................................................6
2.1.2.3 1/2 Partial Scanning (setting 10H: 1XX01XXX, 11H: X000X001)...................................................7
2.1.2.4 1/4 Partial Scanning (Setting 10H: 1XX01XXX, 11H: X000X010).................................................. 7
2.1.2.5 Variable Partial Scanning (setting 10H: 1XX01XXX, 11H: X000X111) ...........................................8
2.2 Binning Mode (setting 10H: 1XX1XXXX) ...................................................................................................... 9
2.2.1 Horizontal Timing.........................................................................................................................................9
2.2.2 Vertical Timing ...........................................................................................................................................10
2.2.2.1 Binning Full Scanning (setting 10H: 1XX10XXX, 11H: X000X000).............................................. 10
2.2.2.2 Binning Partial Full Scanning (setting 10H: 1XX11XXX, 11H: X000X000)...................................... 10
2.2.2.3 Binning 1/2 Partial Scanning (setting 10H: 1XX11XXX, 11H: X000X001) ...................................... 11
2.2.2.4 Binning 1/4 Partial Scanning (setting 10H: 1XX11XXX, 11H: X000X010) ...................................... 11
2.3 Data Order on the Camera Link Output............................................................................................................12
2.4 1 Taps Transferring Image1X-1Y...............................................................................................................13
2.5 Pixel Transferring Image...................................................................................................................................13
3
Camera Operational Mode ................................................................................................................................. 14
3.1 Normal Mode .................................................................................................................................................... 14
3.1.1 Frame Exposure ........................................................................................................................................ 14
3.1.2 Electric Shutter ..........................................................................................................................................14
3.2 Pulse Width Trigger Mode ................................................................................................................................ 15
3.2.1 Pulse Width Trigger ModeV-Reset.....................................................................................................15
3.2.2 Pulse Width Trigger Mode (Non-Reset) .................................................................................................... 16
3.2.3 Exposure Timing........................................................................................................................................16
3.3 Edge Preset Trigger Mode................................................................................................................................17
3.3.1 Edge Preset Trigger Mode (V-Reset) ........................................................................................................ 17
3.3.2 Edge Preset Trigger Mode (Non-Reset)....................................................................................................18
3.3.3 Exposure Timing........................................................................................................................................18
3.4 H Reset Mode...................................................................................................................................................19
4
Communication Protocol ...................................................................................................................................20
4.1 Communication Method....................................................................................................................................20
4.2 Communication Settings...................................................................................................................................20
4.3 Communication Format .................................................................................................................................... 20
4.4 Camera Control Command...............................................................................................................................23
4.4.1 Camera Command List .............................................................................................................................23
4.4.2 Descriptions of the Camera Control Commands.......................................................................................25
FV-L200B1
2/32
User’s Guide Rev. 1.01
Page 3
1 Connector Specifications
1.1 Camera Link Connector
Power-I/O Connector
SDR (3M) or equivalent
This product is a PoCL type. When a frame grabber board is PoCL compliant, DO NOT SUPPLY POWER FROM THE I/O CONNECTOR. When a frame grabber board 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
Camera Link Connector
FV-L200B1
3/32
User’s Guide Rev. 1.01
Page 4
1.2 Power-I/O Connector
HR10A-7R-6PBHiroseor 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 0V
2 I/O-1 IN/OUT
3 I/O-2 IN/OUT
4 I/O-3 IN/OUT
5 I/O-4 IN/OUT
6 +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 IO
connector through the camera setting communication.
IO Signal Patterns
Voltage
Low Voltage High Voltage
IN 0 to +0.5 +2.5 to +5.0V
OUT 0V +3.3V
IN 0 to +0.5 +2.5 to +5.0V
OUT 0V +3.3V
IN 0 to +0.5 +2.5 to +5.0V
OUT 0V +3.3V
IN 0 to +0.5 +2.5 to +5.0V
OUT 0V +3.3V
Command No. HR10A-7R-6PB (Hirose)
(Initial Setting)
Option 1 1H
Option 2 2H
Option 3 3H
Option 4 4H
Option 5 5H
Option 6 6H
Others 7H-FH
F0H[3..0] 11H[7]
0
0H
(initial setting)
1
-
-
-
-
-
-
-
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 IN/- IN/-
IN/TRG OUT/VD OUT/HD
For Test Use Only
OUT/CC4 OUT/CC3 OUT/CC2 OUT/CC1
OUT/FVAL OUT/XSG OUT/XSUB OUT/CC1
OUT/FVAL OUT/LVAL OUT/DVAL
OUT/XHD
(high-active)
OUT/VD N/A N/A OUT/HD
OUT/EXPDUR
(Exposure)
For Test Use Only
OUT/TRG OUT/CC1
OUT/
STROBE Option 0
OUT/
STROBE
OUT/PIC_D9
(MSB)
FV-L200B1
4/32
User’s Guide Rev. 1.01
Page 5
2 Camera Output Timing Charts
2.1 Normal Mode (Setting 10H: 1XX0XXXX)
Clock
Speed
(MHz)
Frame
Rate
(Hz)
Normal Full Scanning Partial Full Scanning 1/2 Partial Scanning 1/4 Partial Scanning
Normal x1/2 x1/4 Normal x1/2 x1/4 Normal x1/2 x1/4 Normal x1/2 x1/4
15.3 7.6 3.8 15.4 7.7 3.9 30.6 15.3 7.7 61.3 30.6 15.3
Clock Speed: 36.8181 MHz (Normal), 18.40905 MHzx1/2, 9.204525 MHzx1/4
2.1.1 Horizontal Timing
LVAL
1920 CLK
DVAL
FVAL
207 CLK
Video out
300 CLK
Horizontal blanking
One horizontal (1H)
1620 CLK300 CLK
Video output
1 CLK = 108.6422 ns at 3.8fps
1 CLK = 54.3211 ns at 7.6fps
1 CLK = 27.1605 ns at 15.3fps
300 CLK
93
CLK
300 CLK1620 CLK
FV-L200B1
5/32
User’s Guide Rev. 1.01
Page 6
2.1.2 Vertical Timing
2.1.2.1 Normal Full Scanning (Setting 10H: 1XX00XXX, 11H: X000X000)
1 H = 208.5963 μs, 3.8291 Hz at 3.8fps 1 H = 104.2968 μs, 7.6582 Hz at 7.6fps
1 H = 52.1484 μs, 15.3164 Hz at 15.3fps
1252H
One vertical (1V)
FVAL
1
Video out
16H
Vertical blanking
2
LVAL
DVAL
2.1.2.2 Partial Full Scanning (Settting 10H: 1XX01XXX, 11H: X000X000)
1242H
FVAL
Video out
LVAL
DVAL
Vertical
blanking
1236H6H
1
2
1236H6H
Video output
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.
1236H16H
1235
1236
Video output
1 H = 208.5963 μs, 3.8599 Hz at 3.8fps 1 H = 104.2968 μs, 7.7199 Hz at 7.6fps
1 H = 52.1484 μs, 15.4397 Hz at 15.3fps
One vertical (1V)
1235
1236
16H
16H1236H
6H
6H
FV-L200B1
6/32
User’s Guide Rev. 1.01
Page 7
2.1.2.3 1/2 Partial Scanning (setting 10H: 1XX01XXX, 11H: X000X001)
1 H = 208.5963 μs, 7.6582 Hz at 3.8fps 1 H = 104.2968 μs, 15.3164 Hz at 7.6fps 1 H = 52.1484 μs, 30.6328 Hz at 15.3fps
626
H
FVAL
Video out
LVAL
DVAL
Vertical blanking
334
335
One vertical (1V)
570H56H
570H
Video output
56H
902
903
56H56H
2.1.2.4 1/4 Partial Scanning (Setting 10H: 1XX01XXX, 11H: X000X010)
1 H = 208.5963 μs, 15.3164 Hz at 3.8fps 1 H = 104.2968 μs, 30.6328 Hz at 7.6fps 1 H = 52.1484 μs, 61.2656 Hz at 15.3fps
313
FVAL
81H
Video out
81H
Vertical blanking
H
503
504
One vertical (1V)
232H
232H
Video output
81H
733
734
81H
LVAL
DVAL
FV-L200B1 User’s Guide Rev. 1.01
7/32
Page 8
2.1.2.5 Variable Partial Scanning (setting 10H: 1XX01XXX, 11H: X000X111)
EXT_TRIG
FIX_TRIG
Internal VD
Internal HD
Video out
(Common)
FVAL
DVAL
LVAL
V1
V2
Exposure time
High speed
transfer X+a
10 20 30 40 5 0
Number of the
effective lines [Y]
High speed transfer f+g-X-Y
V3
SUB
Optical black
+
Dummy bit
CCD effective
lines
Optical black
Blanking (Front)
[BLK_F]
Number of the effective lines [Y]
Total number of the line at 1 frame [TOTAL_LINE]
Blanking (Back)
[BLK_B)
Blanking (Front)
Effective lines
Blanking (Back)
FV-L200B1
8/32
User’s Guide Rev. 1.01
Page 9
2.2 Binning Mode (setting 10H: 1XX1XXXX)
Clock
Speed
(MHz)
Norm
Binning
Full Scanning
al
x1/2 x1/4
Binning Partial
Full Scanning
Norm
al
x1/2 x1/4
Frame
Rate
30.6 15.3 7.6 30.7 15.4 7.7 56.2 28.1 14.0 97.3 48.7 24.3
(Hz)
Clock Speed: 36.8181 MHz (Normal), 18.40905 MHzx1/2, 9.204525 MHzx1/4
2.2.1 Horizontal Timing
LVAL
DVAL
1920 CLK
FVAL
207 CLK
Video out
300 CLK
Horizontal blanking
Binning 1/2 Partial
Scanning
Norm
al
x1/2 x1/4
1 CLK = 108.6422 ns at 3.8fps
1 CLK = 54.3211 ns at 7.6fps
1 CLK = 27.1605 ns at 15.3fps
One horizontal (1H)
1620 CLK300 CLK
Video output
Binning 1/4 Partial
Scanning
Norm
al
x1/2 x1/4
300 CLK
93
CLK
300 CLK1620 CLK
FV-L200B1
9/32
User’s Guide Rev. 1.01
Page 10
2.2.2 Vertical Timing
2.2.2.1 Binning Full Scanning (setting 10H: 1XX10XXX, 11H: X000X000)
1 H = 208.5963 μs, 7.6582 Hz at 3.8fps 1 H = 104.2968 μs, 15.3164 Hz at 7.6fps 1 H = 52.1484 μs, 30.6328 Hz at 15.3fps
626H
FVAL
8
H
618H
One vertical (1V)
1+2
3+4
Video out
16H
Vertical
blanking
610H
Video output
LVAL
DVAL
2.2.2.2 Binning Partial Full Scanning (setting 10H: 1XX11XXX, 11H: X000X000)
1 H = 208.5963 μs, 7.6828 Hz at 3.8fps 1 H = 104.2968 μs, 15.3655 Hz at 7.6fps 1 H = 52.1484 μs, 30.7310 Hz at 15.3fps
FVAL
6
H
624H
One vertical (1V)
618H
1+2
3+4
Video out
6H
Vertical
blanking
618H
Video output
16H
1233+1234
1235+1236
16H
6
H
1233+1234
1235+1236
6
H
LVAL
DVAL
FV-L200B1 User’s Guide Rev. 1.01
10/32
Page 11
2.2.2.3 Binning 1/2 Partial Scanning (setting 10H: 1XX11XXX, 11H: X000X001)
1 H = 208.5963 μs, 14.0588 Hz at 3.8fps
1 H = 104.2968 μs, 28.1175 Hz at 7.6fps
1 H = 52.1484 μs, 56.2350 Hz at 15.3fps
341
H
FVAL
Video out
LVAL
DVAL
Vertical blanking
334+335
336+337
One vertical (1V)
285H56H
285H
Video output
900+901
902+903
2.2.2.4 Binning 1/4 Partial Scanning (setting 10H: 1XX11XXX, 11H: X000X010)
1 H = 208.5963 μs, 24.3352 Hz at 3.8fps 1 H = 104.2968 μs, 48.6704 Hz at 7.6fps 1 H = 52.1484 μs, 97.3408 Hz at 15.3fps
197
H
FVAL
Video out
81H
81H
Vertical blanking
503+504
505+506
One vertical (1V)
116H
116H
Video output
731+732
733+734
56H
56H56H
81H
81H
LVAL
DVAL
FV-L200B1 User’s Guide Rev. 1.01
11/32
Page 12
2.3 Data Order on the Camera Link Output
1TAP10bit
XCLK
X3
X2
X1
X0
NC
DA1 DA0
DA0DA9: 10 bit data for one pixel
1TAP8bit
XCLK
X3
X2
X1
NC NC
X0
DA1 DA0
DA0DA7: 8bit data for one pixel
SP DA6DA7
DA6DA7
DA9
DA6DA7
NC NC
DA8 DA5 DA4 DA3 DA2 DA1 DA0
SP DA6DA7
NC NC
DA5 DA4 DA3 DA2 DA1 DA0
NC
NC NC
LVALFVALDVAL
NC NC NC NCNC NC
NC NCNC NC
LVALFVALDVAL
NC NCNC NC
NC NC
NC NC
NC NC NC NCNC NC
NC NC
DA9
NC
FV-L200B1
12/32
User’s Guide Rev. 1.01
Page 13
2.4 1 Taps Transferring Image1X-1Y
Tap1
Sep Y = 1
2.5 Pixel Transferring Image
Y
Pixel1 of
Data
X
1
X
2
Y
1
Y
1
X
1
X
Pixel2 of
Data
2
Y
2
X
2
Y
H-1
X
2
Y
H
Y
2
X
1
H-1
X
1
Y
H
Pixeln of Data: nth pixel being transferred
Sep X = 1
X
W-1
Y
X
W-1
Y
X
W-1
Y
H-1
X
W-1
Y
X
W
1
Y
1
X
2
H
W
Y
2
X
W
Y
H-1
X
W
Y
H
FV-L200B1
13/32
User’s Guide Rev. 1.01
Page 14
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
CCD
ex p o s u r e
Vi deo out
3.1.2 Electric Shutter
I nt er na l VD
CC D
e x po su r e
Vi de o ou t
Ex pos u r e ti me
Ex po s u r e
t i me
FV-L200B1
14/32
User’s Guide Rev. 1.01
Page 15
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 Pulse Width Trigger Mode(V-Reset
Camera mode
Trigger signal
(Positive
Internal VD
CCD exposure
Video out
FVAL
Normal mode Trigger mode Normal mode
*Note. 2
Max. 1H
Sweep charges
*Note. 3
Exposure
time
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
*Note. 1
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-L200B1
15/32
User’s Guide Rev. 1.01
Page 16
3.2.2 Pulse Width Trigger Mode (Non-Reset)
Camera mode
Trigger signal
Positive
Internal VD
CCD exposure
Video out
FVAL
Normal mode Normal modeTrigger mode
Next VD
Sweep charges
*Note. 3
Exposure
time
Next VD
*Note. 2
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
*Note. 4
*Note. 1
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
Exposure time
Filtering *Note.1
30 CLK
T1
T1'
SUB
Exposure time: T1' = T1 + 127 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 101 CLK after the rising edge of the trigger signal.
(127 CLK)
FV-L200B1
16/32
User’s Guide Rev. 1.01
Page 17
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 Edge Preset Trigger Mode (V-Reset)
Camera mode
Trigger signal (Rising edge)
Internal VD
CCD exposure
Video out
FVAL
Normal mode Normal modeTrigger mode
*Note. 3
Exposure
time
Max. 1H
*Note. 2
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
*Note. 1
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-L200B1
17/32
User’s Guide Rev. 1.01
Page 18
3.3.2 Edge Preset Trigger Mode (Non-Reset)
Camera mode
Normal mode Trigger mode Normal mode
Trigger signal (Rising edge)
Internal VD
Next VD Next VD
CCD exposure
*Note. 3
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 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
Exposure time
30CLK
Filtering *Note.1
SUB
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 starts101 CLK after the rising edge of the trigger signal.
*Note. 1
Automatically switch to the normal
mode if the pulse width of the
trigger signal is more than
500 mseconds.
*Note. 2
Next VD
*Note. 4
T1'
Exposure time: T1' = Preset electronic shutter
FV-L200B1
18/32
User’s Guide Rev. 1.01
Page 19
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.
Note: Due to the principal of this operation, there can be maximum “1 H” of delay of actual trigger signal.
Trigger signal (Rising edge
Internal HD
Normal SUB pulse timing
Next HD
SUB pulse
CCD exposure
Noise
Noise
NoiseNoise
Video out
FV-L200B1
19/32
User’s Guide Rev. 1.01
Page 20
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-CLinkCtrl” communication software, or the following communication protocol to communicate
to the camera:
4.1 Communication Method
UARTRS232C, binary communication
4.2 Communication Settings
4.3 Communication Format
The Sending data format from the PC to the camera is as follows:
The Receiving Data format from the camera is as follows:
After sending the Read Command:
After sending the Write Command:
Settings
Baud Rate 9,600 bps / 38,400 bps / 57,600 bps / 115,200 bps
Data Bit 8 bit
Parity None
Stop Bit 1 bit
Flow Control None
SOF
(8bit) (6bit) (1bit) (1bit) (8bit) (8bit)
SOF Data Length
(8bit)
SOF Data Length
(8bit)
Device
Code
(8bit) (n bytes) (8bit)
(8bit) “00” (1 byte) (8bit)
Read/Write
Page
Selection
Data EOF
Receiving Code EOF
Command
Code
Data
Length
Data EOF
(R: 1 byte)
(W: n bytes)
(8bit)
FV-L200B1
20/32
User’s Guide Rev. 1.01
Page 21
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
Command
Code
Data Length This indicates the data length (unit: byte).
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 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. This indicates the contents of the data sent or received. Refer to the following page for the details.
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.
This indicates results of the command sent
01H: OK (ACK), 10H: NG (NAC), 11H: Connection error with peripheral device 12H: Command number error (Not matching), 13H: Communication frame error, 14H: Time out error, 17H: EEPROM write error
FV-L200B1
21/32
User’s Guide Rev. 1.01
Page 22
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)
02H 00H 00H 01H 00H 03H
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 17H: EEPROM write error
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-L200B1
22/32
User’s Guide Rev. 1.01
Page 23
4.4 Camera Control Command
4.4.1 Camera Command List
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.
Command
No.
00 to 0FH
10H R/W
11H R/W
12H R/W
13H
14H R/W X
15 to 1BH
1CH R/W X
1DH R/W X
1EH R/W X
20H R/W
21H R/W
22H R/W
23H R/W
24H R/W
25H R/W
26H R/W
27H R/W
28H R/W
29H R/W
2A-2FH
30H R/W X
31H R/W X
32H R/W X
33 to 37H
38H R/W X
39 to 3DH
3EH R/W X
3FH R/W X
40 to 53H R/W X
54H R/W X
55H R/W X
56H R/W X
57H X
58H R/W X
59 to 77H
R/W
Save to
EEPROM
X
Reserved
X
X
X
X
X
X
X
X
X
X
X
X
X
Camera function mode 1 (8bit: D[70])
Camera function mode 2 (8bit: D[70])
Camera function mode 3 (8bit: D[70])
Reserved
Communication mode (8bit: D[70])
Reserved
AGC max (8bit: D[70])
ALC luminance target level (8bit: D[70])
ALC mode (8bit: D[70])
Exposure time (H) of the electronic shutter (16bit: D[70])
Exposure time (H) of the electronic shutter (16bit: D[158])
Exposure time (CLK) of the electronic shutter (16bit: D[70])
Exposure time (CLK) of the electronic shutter (16bit: D[158])
Start line of the variable partial scanning (16bit: D[70])
Start line of the variable partial scanning (16bit: D[158])
Effective lines of the variable partial scanning (16bit: D[70])
Effective lines of the variable partial scanning (16bit: D[158])
Delay time for the trigger (16bit: D[70])
Delay time for the trigger (16bit: D[158])
Reserved
CDS gain (8bit: D[70])
Digital gain
Gain offset (8bit: D[70])
Reserved
Clamp level (8bit: D[70])
Reserved
Test pattern level (10bit: D[70])
Test pattern level (10bit: D[98])
Reserved
Strobe Delay (us) (24bit: D[7..0])
Strobe Delay (us) (24bit: D[15..8])
Strobe Delay (us) (24bit: D[23..16])
Reserved
Strobe polarity (8bit: D[70])
Reserved
Function Initial Data Data Range
- -
9 0 to 255
0 0 to 255
0 0 to 255
- -
1 0 to 3
- -
255 (FFH) 0 to 255
128 (80H) 0 to 255
0 0 to 3
0 0 to 4095
0 0 to 1919
0 0 to 1235
1236 (4D4H)
0 0 to 65535
- -
0 0 to 255
The Factory
Adjusted
Value
- -
0 0 to 31
- -
768 (300H) 0 to 1023
- -
0
- -
0 0 to 1
- -
0 to 1236
0 to 255
0 to 255
0 to
2000000
FV-L200B1
23/32
User’s Guide Rev. 1.01
Page 24
Command
No.
78H R/W X
79H R/W X
7A to 7FH
80H R/W
81 to 8FH
94H R/W X
95H R/W X
96H R/W X
97 to 9FH
A0H W X
A1H W X
A2H W X
A3H W X
A4H W X
A5H W X
A6H R X
A7H R X
A8H R X
A9H R X
AA –BFH
C0H R/W X
C1H R/W X
C2H R/W X
C3H R/W X
C4H
C5H R/W X
C6H R/W X
C7 to EFH
F0H R/W
F1 to FFH
R/W
Save to
EEPROM
Function Initial Data Data Range
Test pattern selection (8bit: D[7..0])
Image effect selection (8bit: D[7..0])
Reserved
EEPROM control (8bit: D[70])
Reserved
Strobe active period (us) (24bit: D[7..0])
Strobe active period (us) (24bit: D[15..8])
Strobe active period (us) (24bit: D[23..16])
Reserved
Pixel defect correction mode (8bit: D[7..0])
Pixel defect correction index (8bit: D[7..0])
PDC X coordinate (Write) (16bit: D[7..0])
PDC X coordinate (Write) (16bit: D[15..8])
PDC Y coordinate (Write) (16bit: D[7..0])
PDC Y coordinate (Write) (16bit: D[15..8])
PDC X coordinate (Read) (16bit: D[7..0])
PDC X coordinate (Read) (16bit: D[15..8])
PDC Y coordinate (Read) (16bit: D[7..0])
PDC Y coordinate (Read) (16bit: D[15..8])
Reserved
Auto exposure min (16bit: D[7..0])
Auto exposure min (16bit: D[15..8])
Auto exposure max (16bit: D[7..0])
Auto exposure max (16bit: D[15..8])
Reserved
Look-up table (Gamma) (8bit: D[7..0])
ALC Speed (8bit: D[7..0])
Reserved
IO connector signals1 (8bit: D[70])
Reserved
0 0 to 31
0 0 to 255
0 0 to 1
- -
0
- -
0 0 to 7
0 0 to 15
0 0 to 65535
0 0 to 65535
0 -
0 -
- -
1 0 to 4095
4095 (FFFH)
- -
0 0 to 6
0 0 to 255
- -
0 0 to 15
- -
0 to
2000000
0 to 4095
FV-L200B1
24/32
User’s Guide Rev. 1.01
Page 25
4.4.2 Descriptions of the Camera Control Commands
(The underline settings are the factory default settings)
Command No. Command Descriptions
10H:
MOD1[70]
11H:
MOD2[70]
[Camera function mode setting 1] Initial data: 09H
This sets the following camera function mode.
D[70]
D7 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 to 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[70]
D7 D6 D5 D4 D3 D2 D1 D0
D7 HD / VD direction 00H: SP2 and SP3 as inputs 01H: SP2 and SP3 as outputs
10 to 11H: (Prohibited setting. Do not set these values)
D6 to D5 Frame rate 00H: 15.3 fps 01H:7.6 fps
10H: 3.8 fps 11H: No function
D4 Smear Half Reduction 0: OFF 1: ON
D3 Function Mode 0: Trigger Mode 1: Continuous Mode
D2 to D0: Partial Scanning 000: Full scanning 001: 1/2 partial scanning
010: 1/4 partial scanning 111: Variable partial scanning
011~110: No function (Prohibited setting. Do not set these values)
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.
FV-L200B1
25/32
User’s Guide Rev. 1.01
Page 26
Command No.
12H:
MOD3[70]
14H:
UART[70]
1CH:
AGCMAX[7..0]
1DH:
ALCTRGT [7..0]
1EH:
ALCMODE[7..0]
[Camera function mode setting 3] Initial data: 0
This sets the following camera function modes.
D[70]
D7 D6 D5 D4 D3 D2 D1 D0
D7~D6: Video Out 00: 10bit 01: 8bit
10: 12bit
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
10 ~11: H reset
D2~D1: No Function Set always “000”
D0 Look-up table (Gamma) 00: OFF 01: ON
[Communication mode] Initial Data: 01H
This sets the communication modes.
D[70]
D7 D6 D5 D4 D3 D2 D1 D0
D7~D2: No Function Set always “000000”
D1~D0: Communication Mode 00: 38,400 bps 01: 9,600 bps
10: 57,600 bps 11: 115,200 bps
[AGC maximum limit] Initial data: 255, data range: 0 to 255
Sets the maximum limit for the AGC.
[Target Brightness for ALC] Initial data: 128, data range: 0 to 255
Sets the target brightness for the ALC function (Auto Luminance Control).
[ALC mode] Initial data: 0
This sets the ALC modes.
D[70]
D7 D6 D5 D4 D3 D2 D1 D0
D7: Long exposure 0: OFF 1: ON
D6 to D2 No Function Set always “00000”
D1 AGC (Auto Gain Control) 0: OFF 1: ON
D0 AE (Auto Exposure) 0: OFF 1: ON
When using AE combined with the long exposure, exposure time is controlled regardless of the frame rate.
Therefore, the frame rate varies depending on the exposure time.
Command Descriptions
11: No function (Prohibited setting. Do not set these values)
FV-L200B1
26/32
User’s Guide Rev. 1.01
Page 27
Command No.
20H:
SVR[70]
21H:
SVR[158]
22H:
SHR[70]
23H:
SHR[158]
24H:
PSR[7..0]
25H:
PSR[158]
26H:
PWR[70]
27H:
PWR[158]
Command Descriptions
[Exposure time (H) of the electronic shutter] Initial Data: SVR[150] = 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.
Exposure time (shutter speed) = SVR[150] x (1H cycle time) + SHR[150] x (1CLK cycle time)
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 306.
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[150] = 0, Data Range: 0 to 1919
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:
Preset shutter speed = SVR[150] x (1H cycle time) + SHR[150] x (1CLK cycle time)
Note 1: The camera works with the shutter off position (maximum frame exposure time) when both SVR and SHR
are set at “0”.
Note 2: The camera works with the minimum shutter speed when SVR is set to 0 and this value is set between 1
and 306.
Note 3: The value replaces by 1919 automatically when the value set greater than 1919
[Start line of the variable partial scanning] Initial Data: PSR[150] = 0, Data Range: 0 to 1235
This sets the start line number of the variable partial scanning area.
Actual start line of the partial scanning = this value + 1
Note 1: The camera works with full scanning mode when the value of (PSR[ ] + PWR[ ]) is greater than 494.
Note 2: The value replaces by 1235 automatically when the value set greater than 1235
[Effective line numbers in the variable partial scanning] Initial Data: PWR[150] = 494, Data Range: 0 to 1236
This sets the number of the total effective lines (image height) in the variable partial scanning mode.
Notes:
1. The value replaces by 1236 automatically when the value set greater than 1236.
2. The camera works with full scanning mode when the value of (PSR[ ] + PWR[ ]) is greater than 2058.
FV-L200B1
27/32
User’s Guide Rev. 1.01
Page 28
Command No. Command Descriptions
28H:
DLY[70]
29H
DLY[15...8]
30H
PGA[70]
31H
DGB[70]
32H
GOFS[70]
38H:
CLAMP[70]
3EH: TP0[70]
3FH:TP0[98]
54H:
STRBDLY[7..0]
55H:
STRBDLY[15..8]
56H:
STRBDLY[23..16]
58H:
STRBPOL[7..0]
[Delay time for the trigger] Initial Data: DLY[70] = 0, Data Range: 0 to 65,535
Sets the delay time from the trigger input signal to the start of the exposure.
At 15.3 fps: Delay time (us) = 74 x 0.0271606 * DLY[70] = 2.0099 (us) * DLY[70],
At 7.6 fps: Delay time (us) = 74 x 0.0407408 * DLY[70] = 4.0198 (us) * DLY[70],
At 3.8 fps: Delay time (us) = 74 x 0.0814816 * DLY[70] = 8.03952 (us) * DLY[70],
where CLK = pixel clock.
[CDS gain] Initial Data: PGA[70] = 0, data range: 0 to 255
Sets the CDS gain (programmable analog gain).
CDS gain (dB) = ( (PGA[7..0] + GOFS[7..0] ) * 2 * 0.0351) + 6
*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
Output level = (input level - CLAMP[70]) * (1 + DGB[7..0] / 128) + clamp level
*CLAMP[7...0]: clamp level (The value of the address 38H)
[Gain offset] Initial Data: The factory adjusted value, data range: 0 to 255
[Clamp level] Initial Data: CLAMP[70] = 9, Data Range: 0 to 255
This sets the clamp level value of the black level.
At 12-bit output: Clamp level = CLAMP[70] x 8 + 56
At 10 bit output: Clamp level = (CLAMP[7...0] x 8 + 56) / 4
At 8-bit output: Clamp level = (CLAMP[7...0] x 8 + 56) / 16
[Test pattern level] Initial data: 768 (300H), data range: 0 to 1023
Sets the output level of the test pattern 4: Raster (variable level) in 10-bit output format.
[Delay time (us) for the strobe signal]
Initial data: STRBDLY[23..0] = 0, data range: 0 to 2,000,000
[Strobe signal polarity] Initial data: IOSIGNAL_POL[7..0] = 00H,
Sets the strobe signal polarity.
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7 to D1 No Function Always set as “0000000”
D0: Strobe signal polarity 0: Non-invert
1: Invert
FV-L200B1
28/32
User’s Guide Rev. 1.01
Page 29
Command No. Command Descriptions
78H:
TESTP[70]
[Test pattern selection] Initial data: TESTP[7..0] = 00H
Sets the test pattern output from the camera.
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7 to D5 No Function Always set as “000”
D4 to D0 Test pattern 00H: Video output 01H: Gray scale
06H: Vertical ramp wave Others: Black
02H: Horizontal ramp wave 03H: Uniform gray level
04H: Uniform gray level
(variable level)
(100% white)
05H: Color bar
79H:
EFFCT[7..0]
80H:
E2P[70]
94H:
STRB[7..0]
95H:
STRB[15..8]
96H:
STRB[23..16]
[Image effect selection] Initial data: EFFCT[7..0] = 00H
Sets the image effect.
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7: Negative / Positive video selection 0: Positive image 1: Negative image
D6 No function Always set as “0”
D5 to D0: Image effect 00H: No effect (Original) 01H: 11bit gradation
02H: 10bit gradation 03H: 9bit gradation
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 3FH: No function
[EEPROM control] Initial data: E2P[70] = 0
Sets the image effect.
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7 to 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
Note: This bit is cleared to “0” automatically by the internal processes after the execution of the command.
[Active time (us) for the strobe signal]
Initial data: STRB[23..0] =0, data range: 0 to 2,000,000
Sets active time for the strobe signal .
(Prohibited settings. Do not set these values)
FV-L200B1
29/32
User’s Guide Rev. 1.01
Page 30
Command No.
A0H:
PDC0[70]
Command Descriptions
[Pixel defect correction mode] Initial data: PDC0[7..0] = 0
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7: Write the correction index 0 1
*Writes the coordinates of the command, A2 to A5, to the index number specified by the
command A1.
*This bit is cleared to “0” automatically after the execution of the command.
D6 Read the correction index 0 1
*Reads the coordinates of the index number specified by A1 and loads them to the command,
A6 to A9.
*This bit is cleared to “0” automatically after the execution of the command.
D5: Save to the EEPROM 0 1
*Writes the coordinates of all 16 index numbers to the EEPROM.
*This bit is cleared to “0” automatically after the execution of the command.
D4 to D2 No function Always set as “000”
D1 Correction indices display 0: OFF 1: ON
D0 Pixel defect correction 0: OFF 1: ON
A1H:
PDC0[70]
A2H:
PDC_WX[70]
A3H
PDC_WX[158]
A4H:
PDC_WY[70]
A5H
PDC_WY[158]
A6H:
PDC_RX[70]
A7H
PDC_RX[158]
A8H:
PDC_RY[70]
A9H
PDC_RY[158]
C0H: [70]
C1H: [70]
[Pixel defect correction index number]Initial data: PDC1[7..0] = 0, data range: 0 to 15
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7 to D4: No function Always set as “0000”
D3 to D0: Index number
[PDC X coordinate (Write)]
Initial data: PDC_WX[15..0] =0, data range: 0 to the number of horizontal pixels of the effective area
Set the X coordinate of pixel defect.
[PDC Y coordinate (Write)]
Initial data: PDC_WY[15..0] = 0, data rage: 0 to the number of vertical pixels of the effective area
Sets the Y coordinate of pixel defect.
[PDC X coordinate (Read)]
Initial data: PDC_RX[15..0] = 0, data rage: 0 to the number of vertical pixels of the effective area
The X coordinate of pixel defect will be loaded when reading.
[PDC Y coordinate (Read)]
Initial data: PDC_RY[15..0] = 0, data rage: 0 to the number of vertical pixels of the effective area
The Y coordinate of pixel defect will be loaded when reading.
[Lower limit of the electronic shutter] Initial data: 1; data range: 0 to 4,095
Sets the upper limit of the electronic shutter in horizontal lines when using AE (auto exposure).
C2H: [70]
C3H: [70]
[Upper limit of the electronic shutter] Initial data: 4,095; data range: 0 to 4,095
Sets the upper limit of the electronic shutter in horizontal lines when using AE (auto exposure).
FV-L200B1
30/32
User’s Guide Rev. 1.01
Page 31
Command No. Command Descriptions
C5H: [70] [Look-up table (Gamma)] Initial data: [7..0] = 00H
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7 to D3: No function Always set as “00000”
D2: Look-up table (RAM) 0: OFF 1: Load
D1: Look-up table upload 0: RAM only 1: RAM and ROM
D0: No function Always set as “0”
F0H:[70] [Signal selection for the I/O connector] Initial data: [70] = the value of 00H, data range: 0 to 15
Sets the signals of the I/O connector.
D[7..0]
D7 D6 D5 D4 D3 D2 D1 D0
D7 to D4: No function Always set as “0000”
D3~D0: The signals of the /IO connector selection 0H: Option 0 1H: Option 1
2H: Option 2 3H: Option 3
4H: Option 4 5H: Option 5
6H: Option 6
7H to FH: No function
(Prohibited settings. Do not set these values)
Please refer to the table 3 I/O Connector Settings for the details.
FV-L200B1
31/32
User’s Guide Rev. 1.01
Page 32
Revision History
Rev
1.00
1.01
Date Changes Note
2012/06/20 Initial Release
2012//07/13 Updated
Document Title Communication Protocol 20-21H SVR
28-29H DLY 78H Test pattern, 79H Pasteurization Deleted F1H command due to test use only
RICOH COMPANY, LTD.
URL http://www.ricoh.com/fa_security/
FV-L200B1 User’s Guide Rev. 1.01
32/32
Loading...