Hello Guest it is March 28, 2024, 09:35:04 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - slovenec

Pages: 1 2 3 4 5 6 »
1
CS-Lab / CSMIO IP/M and tool lenght problem
« on: January 29, 2023, 05:05:25 AM »
Greetings,

I am running 3 machines in my shop with csmio products. And I would like to implement auto tool zero on my machines.
Currently, I am using win10, the most stable Mach3 version recommended on the CSLAB website.

Yesterday I tried to implement the tool length sensor on one of them. But as soon as the tool touches the probe I get this error:
Error on line 107 - Internal error <WaitForMove>

If i rune the HiddenScript.m1s-mach3  VB script editor and set the run command I get the hit probe ok and the value. But as soon as I close the window and push the button auto tool zero I get the error above. Can somebody tell me what I'm doing wrong?

here is the code that I'm using from cs lab website.

Code: [Select]
' Auto tool length - CS-Lab s.c.
' v1.2

Dim ZOFFSET, ZTOP, ZBOTTOM, ZGODOWN, ZABS, ZUPFINE, Z_SAFE
Dim ToolLen
Dim Tool
Dim SENS_Z, SENS_X, SENS_Y, Z_LIFT, Z_PARK, MAX_DTRAVEL
Dim SPD_FAST, SPD_FINE

' -----------------------------------------------------
' Configuration parameters
' -----------------------------------------------------
SENS_Z = 40 ' Sensor/Table offset
Z_SAFE = -65 ' Safe Z above sensor (for rapid move)
SENS_X = -0.900 ' Sensor X position
SENS_Y = 37.500  ' Sensor Y position
MAX_DTRAVEL = 140 ' Max down travel
SPD_FAST = 800
SPD_FINE = 100 ' Fast and fine speeds
Z_LIFT = 1.5 ' Z lift for fine probing
Z_PARK = 0 ' Park after probe (absolute Z position)
' -----------------------------------------------------

Message( "Tool length probing started." )

' turn off machine coordinates (mach bug)
If GetOEMLed(16) Then
DoOEMButton(256)
End If

' check axes for reference
If GetOEMLed(807) Then
Message( "TC ERROR: X Axis not referenced!" )
' End
End If
If GetOEMLed(808) Then
Message( "TC ERROR: Y Axis not referenced!" )
' End
End If
If GetOEMLed(809) Then
Message( "TC ERROR: Z Axis not referenced!" )
' End
End If
' Probe signal should be inactive before starting probing
If GetOEMLed(825) Then
Message( "TC ERROR: Probe input is active! Probing failed." )
End
End If
' Check spindle
If GetOEMLed(11) Then
Message( "TC ERROR: Turn off spindle for probing. Probing failed." )
End
End If

Tool = GetDRO(24) ' Get current tool index
' Tool 0 can't be probed
If(Tool = 0) Then
Message( "TC INFO: Tool '0' can't be probed." )
End
End If

WaitForMove
Code("G43T0")
Code("G43H0") ' turn off tool lenght compensation
WaitForMove

' Move to PARK
Code("G0G53 Z" & Z_PARK)
WaitForMove
' Move to XY position of tool correction sensor
Code("G0G53 X" & SENS_X & " Y" & SENS_Y)
WaitForMove
' Get actual Z offset
ZOFFSET = GetOEMDRO(49)
' Rapid go down to safe distance above sensor
Code("G0G53 Z" & Z_SAFE)
WaitForMove

' Probe
ZTOP = GetDRO(2) ' actual Z position
ZGODOWN = ZTOP - MAX_DTRAVEL ' max down travel
Code("G31 Z" & ZGODOWN & "f" & SPD_FAST)
WaitForMove
  ZUPFINE = GetOEMDRO(85) + Z_LIFT
  Code("G1G53 Z" & ZUPFINE & "f" & SPD_FAST) ' go up Z_LIFT
WaitForMove
' fine probe
Code("G31 Z" & ZGODOWN & "f" & SPD_FINE)
WaitForMove
  ZBOTTOM = GetVar(2002) 'get probe activation point

  ' Lift Z to abs park position
  Code("G0G53 Z" & Z_PARK)
WaitForMove

  ZABS = ZBOTTOM + ZOFFSET
  ToolLen = ZABS - SENS_Z
WaitForMove
  SetOEMDRO(42, ToolLen)
Code("G43T" & Tool) ' G43 to sync value in system
Code("G43H" & Tool) ' G43 to sync value in system
WaitForMove
Message ("Z Value : " & ToolLen)
' -----------------------------------------------------------------------------
Sub WaitForMove ()
While IsMoving()
Sleep(15)
Wend
End Sub         
                   



Thanks in advance.

best regards  :)

2
Mach4 General Discussion / Re: need help with mach4 programs
« on: March 27, 2020, 05:38:37 AM »
Yes. I just need to tell the siemens which tool to pass and when its safe to move. Sorry for such bad explanation :)

3
Mach4 General Discussion / Re: need help with mach4 programs
« on: March 27, 2020, 05:19:46 AM »
Thanks for the answer. I will describe to you how my tool changer works or how should it work.
I have 2 stepper motors for rotating the 12 tools.  And one stepper motor for moving the arm that passes the mill tool holder.
The machine must tell me that it's safe for siemens to move and which tool does it need.
I am also using a CSMIO controller for the machine motion.

4
Mach4 General Discussion / need help with mach4 programs
« on: March 26, 2020, 04:53:18 AM »
Greetings, 
would anybody be interested to write some program for mach4 against payment?
I have made a machine with servos, and tool changer 12 tools.
What would I need:

-start stop buttons (with lights)
-tool length script
-tool change (communication with siemens logo also if skilled you can also write the siemens logo script)
-light tower
-some pop-up windows (pump running, tray closed)
-manual tool change (an on-screen button for manual tool change )

I don't know if such posts are allowed. If not it can be removed.
Anybody interested please let me know.

Best regards

5
General Mach Discussion / Re: Pulse per turn
« on: June 28, 2018, 07:32:05 AM »
Thank you. I think I understand what are you saying.

Another question, regarding the pulse per turn for mach.

If I have a servo motor with encoder 2500PPR how do I calculate the pulse per for mach3. I now that with one turn of the spindle the machine moves 4,73 mm
Between servo motor and ball screw is gear transmission and I don't have a clue what is the gear ratio and I cant count the gears because I would have to disassemble half of the machine.

Any suggestion how could i determine that?


I have a mikron wf3 dcm and cslab csmioipa  controller, and i cant get right the pulse per...  ???


Thank you!!!

6
General Mach Discussion / Re: Pulse per turn
« on: June 13, 2018, 01:05:28 PM »
Thank you for the answer. But I still cannot figure this out.

If I set the micro-stepping to 1600 pulse/rev on my leadshine driver DM422

Then I calculate the 4200 per rev. Now I multiply 1600 with the 4200 and divide everything with 360 to get puls per turn?

Is this right?

7
General Mach Discussion / Pulse per turn
« on: June 06, 2018, 08:31:14 AM »
Greetings,

i have a 4th axis and i would like to determine the pulse per turn.

I have a 1/8 degree stepper motor and harmonic Drive gear head reducer 1:21.
So if i correcty understand  for one turn must the motor make 21 rotations.


What is then the pulse per turn?

Best regards
 
STEPER MOTOR SPECS : http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0ahUKEwimtoWshb_bAhXJD8AKHTiQDdAQFggnMAA&url=http%3A%2F%2Fwww.sorotec.de%2Fwebshop%2FDatenblaetter%2FSchrittmotoren%2FESM.86114.56MD%2Fesm8611456md.pdf&usg=AOvVaw2nym_QQ8xlCZQU58GZ_DBx
 

8
General Mach Discussion / mach3 tool table and CAM program
« on: April 20, 2018, 04:11:08 PM »
Greetings,


I have read a lot of posts on this forum and I cannot understand the tool table of mach3. Can anybody explain this to me like to a dumb person?

Let's say I have a square part with a hole in the middle through the part the hole is a 20mm H7.
In the cam program, I have 2 tools.
The first tool is a face mill 50mm
The second tool is a 6mm end mill.

And I make a g code with these two tools. The first question appears, does the g-code writes the parameters of the tools into the mach3 program (tool table)
 or do I have to manually put the tools in mach3 and when I make the g code I have to consider which tools are set up in mach3 on which position?

The second question is if I set up the 6mm tool and i want to make the hole exactly 20mm with tolerances H7 I set the second tool diam. Wear a slight +?
So I can then measure the hole and lower the diam. Wear for the difference that I measured?

 ??? ??? ???
Best regards and thank to all of you







10
Show"N"Tell ( Your Machines) / Re: MIKRON WF3 RETROFIT
« on: March 16, 2018, 04:13:52 PM »
Greetings,

can you help me some more? I have trouble with oil in the upper side in the motor spindle.
I filed some oil in the second hole, and the level raised in the first (oil level checker) in the second it looks like oil is in.
I don't have a clue how much oil t put in and are the two holes in the same oil tank?

I searched the whole internet for manuals Mikron wf3  and all I found are manuals for wf2 and some *********....

Do you know something about this?

Here are some pictures

https://ibb.co/dMgr4c
https://ibb.co/kZKNAH
https://ibb.co/j9WPPc

Pages: 1 2 3 4 5 6 »