14.
VisualBasic
®
macros
On our website:
www.cs-lab.eu
you can download standard scripts for automatic tool-length
measurement and for automatic tool change. These are usually the most desirable functions and
make work easier. We encourage advanced users to learn more about macros, which provide great
opportunities for self-expanding functionality of Mach3 program.
14.1
Automatic tool-length measurement
Automatic tool-length measurement is one of the most implemented function, e.g. because mechan-
ically it is very easy to do. If high measurement accuracy is required, the
sensor must be good quality. In CSMIO/IP-S controller – specialy for G31
command (used during the measurement) – we implemented completely
autonomous movement operation and ultra-fast logic to assure
measurement precision at the highest level.
The measurement is made through the following stages:
•
Raising Z axis at the maximum high (absolute zero)
•
Going in a fast mode (G0) at XY sensor position.
•
Quick exit (G0) by Z-axis to so-called - safe Z
•
Going down in the measurement mode (G31) at "1" speed until signal receiving from the
sensor.
•
Raising Z-axis with small value (preparing to measurement that is more accurate).
•
Going down in the measurement mode (G31) at "2"speed, until signal receiving from the
sensor.
•
After measurement is finished– raising Z-axis maximally.
14.1.1
Configuration
Before we start the script configuration, you should follow these steps:
1.
Check the sensor and inputs signals settings – go to Diagnostics tab and while pushing the
sensor with hand observe the
light indicators on the screen. The light should light
up at the moment of pushing the sensor and light should go out after releasing it. In case of
any problems go to 10.4 chapter (input signals). The sensor signal in the configuration win-
dow is called “Probe”.
2.
Make reference move of all axes.
3.
On the main screen switch the coordinates display mode for machine display (absolute) –
icon
.
4.
Secure the tool in the spindle holder (for the firsts test – the cheapest is the best).
C S - L a b s . c . – C S M I O / I P - S - C N C C o n t r o l l e r
Page 89