Hello folks!
First, let me introduce myself.
I am a 20 year old norwegian cnc operator by trade and I am always interested in learning new technology. (well, new to me anyway
)
I am trying to learn how to program custom macros for the Renishaw probe in the Mori Seiki HMC that I run at work, and have searched the net for information, but haven´t really found anything useful.
I understand that you have to use G31 skip feed command, but I´m not sure exactly how to use it..
I just wrote this sample program for leveling the B-axis in a HMC by probing the tombstone, vise or workpiece, the way I assume/think that the G31 command is being used.
The machine it is for is a 2004 Mori Seiki NH4000 DCG with a Fanuc MSG-501 control.
If anyone could take a look at my code and see if I am completely off the track or not, that would be much appreciated.
This is how I intend it to be used:
Jog the machine to aproximately 15mm over the workpiece with the probe in the spindle and MDI the following line:
G65P6500 X30. (X = incremental distance to the 2. probing point)
O6500
M19
G91 G31 G01 Z-18. F200.
G91 G01 Z15. F1000.
#100=#5061 (1. SKIP READ POSITION X)
#102=#5063 (1. SKIP READ POSITION Z)
G91 G31 G0 Z50.
G91 G31 G0 X#24
G91 G31 G0 Z-50.
G91 G31 G01 Z-18. F200.
G91 G01 Z15. F1000.
#101=#5061 (2. SKIP READ POSITION X)
#103=#5063 (2. SKIP READ POSITION Z)
#104=ATAN[[#102 - #103]/[#101 - #100]] (calculate the measured angle)
G91 G0 Z200.
M0
M11
G91 G0 B#104
M10
M99
Is it correct that the probed Z position will be stored in #5063 and the X in #5061 when the probe contacts the workpiece in the Z- direction, or will only the position of the traveling axis be stored? (only z position stored if Z is moving)
Thanx!
First, let me introduce myself.
I am a 20 year old norwegian cnc operator by trade and I am always interested in learning new technology. (well, new to me anyway

I am trying to learn how to program custom macros for the Renishaw probe in the Mori Seiki HMC that I run at work, and have searched the net for information, but haven´t really found anything useful.
I understand that you have to use G31 skip feed command, but I´m not sure exactly how to use it..

I just wrote this sample program for leveling the B-axis in a HMC by probing the tombstone, vise or workpiece, the way I assume/think that the G31 command is being used.
The machine it is for is a 2004 Mori Seiki NH4000 DCG with a Fanuc MSG-501 control.
If anyone could take a look at my code and see if I am completely off the track or not, that would be much appreciated.

This is how I intend it to be used:
Jog the machine to aproximately 15mm over the workpiece with the probe in the spindle and MDI the following line:
G65P6500 X30. (X = incremental distance to the 2. probing point)
O6500
M19
G91 G31 G01 Z-18. F200.
G91 G01 Z15. F1000.
#100=#5061 (1. SKIP READ POSITION X)
#102=#5063 (1. SKIP READ POSITION Z)
G91 G31 G0 Z50.
G91 G31 G0 X#24
G91 G31 G0 Z-50.
G91 G31 G01 Z-18. F200.
G91 G01 Z15. F1000.
#101=#5061 (2. SKIP READ POSITION X)
#103=#5063 (2. SKIP READ POSITION Z)
#104=ATAN[[#102 - #103]/[#101 - #100]] (calculate the measured angle)
G91 G0 Z200.
M0
M11
G91 G0 B#104
M10
M99
Is it correct that the probed Z position will be stored in #5063 and the X in #5061 when the probe contacts the workpiece in the Z- direction, or will only the position of the traveling axis be stored? (only z position stored if Z is moving)

Thanx!
