Line Scan Camera Debugging Instructions
Line Scan Camera Debugging Instructions
Instructions
MV-CL042-91GC 1
24V AC Adapter 1
5V AC Adapter (For
1
encoder)
Lens 1
Incremental
1
Encoder
MV-LELS-300-1K-
1
PY(Light controller)
24V AC Adapter
(For light controller 2
and revolving stage)
Network Cable
12-pin P10
1
connector
Revolving Stage 1
Bar Light 1
2. Hardware configuration
1) Begin with two 24V adapters, which are the power supplies for the
revolving stage and the light controller.
2) Then use the cable to connect the light source with the light controller.
3) Connect the line scan camera with the internet cable and the 12-pin P10
connector.
4) Connect the other end of the internet cable with the vision controller.
5) For the other end of the P10 connector, please check the pin definitions in
the user manual of the line scan camera.
6) Connect the power and ground to the 24V adapter according to the pin
definitions. Here, because our model is MV-CL042-91GM, we would link
cable2 (Red) and cable11 (Purple) to positive side of 24V adapter. Then,
link cable 1 (Black) and 5 (Gray) to the negative side of 24V adapter.
7) Then select 2 lines to connect with the encoder. Here, what we use is
Omron CWZ1X E6B2 5V differential encoder. It has 8 cables for this kind of
encoder.
E6B2-CWZ1X
Cable Terminal name
Brown 5V positive
Black Output A phase
White Output B phase
Orange Output Z phase
Black/Red Output A phase
White/Red Output B phase
Orange/Red Output Z phase
Blue 5V negative
8) As for the wiring of input, please check the user manual for more details.
Please noted that it is possible to use only one lines to connect with one
source of the encoder. And when connecting 2 phases with the camera, since
the principle of the encoder is to trigger according to the difference between
two phases, the input line rate is four times of the single-phase input
frequency.
Here is a wiring example with MV-CL042-91GM:
9)Then connect the power (Brown) and ground (Blue) of the encoder to the
5V adapter according to the pin definitions on the encoder.
10)Make sure all cables connect correctly and then, turn on the power.
Turn on the light controller, adjust the light intensity according to the
operation environment. When you found lighting produce, it means power
OK.
Turn on the revolving stage to test if the poster can rotate under uniform
speed, set the poster to the lowest speed. When you found it rotated, it
means power Ok
Turn on the camera and encoder power.
3. Software Configuration
1) Make sure that your MVS version is over 4.0.0. Here we use:
2) Adjust the camera IP to let it in LAN, make sure there is no any ! sign
generated:
5) Check with the spec to know the maximum line rate of the machine. Here,
MV-CL042-91GM/GC at Mono8/Bayer8 can reach 19kHz.
6) Click run continuously and ensure the parameters looks like here. Set pixel
format to Mono8 or Bayer8. Bayer is color format. And then, test if it can
reach 19 kHz. The resulting line rate is the current line rate, which is
19047Hz. If you find image numbers increase, it means machine is running
continuously.
Click run again and check whether image numbers increase. When, there
is no trigger, the image numbers would not increase. When there is a
trigger, if it does not increase, it means camera did not receive the signal,
please check.
Click run again and check whether image numbers increase. When the
conveyor with encoder inside is not moving, the image numbers would not
increase. When the conveyor with encoder inside is moving, it would
increase as expected.
4. Result
The camera can output correct images even when the speed of conveyor
changed overtime.
Without changing the height in Basic Features, the default screen is too
narrow that the poster image is distorted. To get the appropriate image, first
adjust the height, then adjust exposure time and gain to set the brightness
and clarity of the image. The image can be manually focused by adjusting the
lens set on the revolving stage. Finally, you can adjust the frequency
converter to generate a suitable input line rate.
After all the setup, increase the speed of the revolving stage to check if the
image acquisition is steady still.
Note: It’s important to note that the encoder signal frequency should be
always kept under the max line rate. When changing speed, this one should
be checked every time.
For image height adjustment, please check FAQ-How to obtain 1:1 ratio
images?
For max line rate, please check FAQ-Does the actual line frequency
corresponding to the current line rate exceed the limit?
For frequency converter adjustment, please check FAQ-How to ensure that
the image does not stretch or compress, or move up and down when the
speed changes?
For example, if your camera lens focus is 25mm, and working distance is
600mm. You can use our Lens selector on the website to figure out the target
physical width, which is 659mm.
Then, the rotator we used is 100mm, we can figure out one cycle is about
2*pi*100 = 628mm length.
We use this formula to figure out the height, which is about 4096/659*628=
3903.3 pixel.
Thus, we can set this height in camera feature tree to obtain 1:1 size image.
Because this is a rough calculation, you may need to adjust a little bit to get a
perfect image.
FAQ-How to check frame trigger normal or not?
If it still do not trigger, please try to do cross test with 12Pin cable and
camera itself to verify whether it is the problem from hardware.
1) Trigger Line rate (not all Line scan have this parameters): It can directly
know what is the trigger Line rate currently, which is a calculated value
from the previously results. It is not the instantaneous value.
3) Line status (It can reflect whether this Line is at high or low level.
However, this value has delay, cannot indicator the instantaneous value )
Then, checking the encoder PPR value by its spec. We can try filling in
multiples of this value. Our encoder is 1024 resolution, thus we enter 1024
here. Make sure at this time, resulting trigger line rate is not over the
maximum frequency of camera.
At this point, when the conveyor belt is working, the camera image should be
in a stationary state and there should be no upward or downward movement if
encoder output the correct number of signal.
If you find the image go upward, it means you obtain more signal from
encoder. If you find the image goes downward, it means you obtain less
signal. When you find this phenomenon, the reason may be uneven operating
speed of the mechanism, hardware issues with the encoder, or unstable
triggering.
FAQ-Does the actual line frequency corresponding to the
current line rate exceed the limit?
Resulting line rate is the theoretical maximum line rate of this camera, which
is 7609Hz. Please make sure you are not enable the line rate control.
For some types of Hikrobot Line scan camera, it can directly see the resulting
trigger Line under frequency converter control. Make sure this value is smaller
than the resulting Line rate.
After you change the speed, or the frequency converter, this value would be
frequently changed.
FAQ-How to ensure that the image does not stretch or
compress, or move up and down when the speed changes?
After ensuring the correct wiring, normal line and frame signals, and normal
encoder signal reception without exceeding the maximum line frequency,
then, you can try this operation-adjusting frequency converter.
Method 1:
If you do not know every parameters. Like FOV, Lens focus, speed, encoder
info. You can try this method.
Take a circular pattern and adjust the image roughly to a circular shape by
stretching and increasing the predivider and compressing and increasing
the multiplier. If the requirement for line frequency accuracy is not high,
this step can be repeated until the pattern is rounded without subsequent
calculation.
If accuracy is considered not enough, Save the picture and open it by
drawing. After the picture is enlarged, make a lion line through the center
of the circle. Take the cross line to the four vertices of the outer circle of
the pattern, and record the horizontal and vertical coordinates of the four
vertices respectively.
Fill the calculated multiplier value into the camera parameters, take the
picture as a circle, and complete the multiplier setting. Predivder function
is nearly the same as Postdivider, it is also OK if you set as 1, 7, 100
Method 2:
If you know every parameters. Like FOV, Lens focus, speed, encoder info. You
can try this method.
If you want to obtain the target line rate, you can use this formula.
For example:
If you know the following parameters:
Width of FOV =12 mm
Conveyor Speed =60 mm/ s
Width of Resolution=8192 pixels
Encoder resolution=1024 PPR
Encoder speed =1000 RP M
We combine with encoder info and the rotation speed to figure out current
Line rate:
In order to obtain target Line rate by current encoder trigger Line rate:
We cannot directly adjust to this data. We need to obtain the closest data
through frequency converter multiplication and division.
Currently, when the Predivider is adjusted to 5, Multiplier is adjusted to 12 and
PostDivider to 1, it can achieve 2.4 times of the original signal.