VB Program Instructions

advertisement
Reset Laser
Steps 1 – Open ILR1181 tool and change language to English (default language is in German).
Steps 2 – Click Configuration mode
Steps 3 – Set Interface to RS232, port/channel to correct COM#, and Baud rate to 38400 and
then Connect.
After successfully connected to laser, you can change the unit (inch, meter, feet, etc.) It can also
run laser with different mode (Distance Tracking (DT), Distance Measurement (DM), etc. ) by
clicking Switch to Measurement Program. Last, remember to save the changed by clicking Write
configuration at right bottom.
Visual Basic Code
Since the calculations are base on the data feedback from the lasers. The Lasers setup must be
connect to the correct serial ports. You can check your COMs at Start -> Devices and Printers
Serial port 2 is corresponding to Laser WEST
Serial port 3 is corresponding to Laser EAST
Serial port 4 is corresponding to Laser SOUTH
Serial port 5 is corresponding to Laser NORTH
Serial port 6 is corresponding to Laser ROTATION
You can change the COM number in the VB code (see figure below)
Run Visual Basic Code
After everything is setup correctly, run the VB program and open the project.
To run the code, just simply click on the START button as show above.
Then the following display GUI will pop out.
Buttons Functionality
Step 1:
Turn All on – Turn on all the lasers. Use to help you setup the system. The values will display
under East, West, South, North, and Rotation
Parameter – Allow you to enter known values. Include Mirror offset, Ideal X, Ideal Y, NESW
tolerance, and rotation tolerance.
Calibrate – Will calculate the distance from East (mirror) to West and South to North. Notice, do
not put anything in between while calibrating. Will display the values under Distance X and Y (X
is the distance from EAST to WEST and Y is the distance from SOUTH and NORTH)
Step 2:
Continues Measure – Will turn on all the lasers and continue measure until hit the STOP button.
Also calculate the length and width of the Mult, Rotation, Error X and Error Y. In this step, you
will have the mult in between. You will need to move the mult to the appropriate directions
according to display on the right side. When the RED color is turn on, that means move the mult
to that direction until the RED color turn off. The PRESS will turn green if the mult is at the right
position.
Stop – Stop and turn off the lasers
Save – Save the data as excel file. Data included Length and Width of Mult, Error X and Error Y.
Download