Hello Guest it is April 18, 2024, 07:52:38 AM

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.


Topics - slovenec

Pages: 1
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 / 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

3
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
 

4
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







5
Greetings altogether. My problem is so simple and yet I tried everything and no solution.

My linear scales are from ISKRA and they are 5um and this is 0.005mm (the seller told me that they are 0.5Um and now I found out they are 5um)
Anyhow, I have to set two parameters one is in the section Mach3-Config-Motortunning-Steps per unit.

Ok I contacted the Support after a month of trying different calculations and numbers and the answer was:

If you use a scale then you take neither ratio nor screw pitch into account.
Your task is to indicate pulses number per 1mm and the scale will help you with it.
 
>>> The resolution of linear scales is: 5µm this is 0.005mm
 
It's very easy:
 
1mm / 0.005mm =  200 steps per

Ok and now what is the Encoder Pulses/Rev: ( mach3-config-config plugins-CSMIO motion controller configuration)


Does anybody know please help. ???

Best regards



6
CS-Lab / CSMIO MPG hadn wheel need help
« on: August 15, 2016, 03:48:33 AM »
Greetings,

I have a question regarding the hand MPG. On eBay i found a MPG and now the seller has asked me which type do i need.
Type of the controller : HEDSS ISMM2080, you want 5V,12V or 24V, for the output circuit---it has 4 different modes:open collector NPN, Push PUll, Line driver, Voltage

It has to be : 5V TTL rotary encoder and power supply 24V  is there anything else that i must look for?

Best regards
 And thanks for any help!

7
General Mach Discussion / Auto tool zero and offsets
« on: April 30, 2016, 01:36:27 PM »
Hey everyone.


Need some help using the offsets. I touch a surface movable senzor for setting the Z0. After the first cutting is finished i manual change the tool and click at the auto tool zero. The machine moves to the senzor and measures the tool.
But when i push the cycle start the Z level is not the correct height.  I would like that when i change the second tool the machine after measurement starts working at the right level.

What im doing wrong?


Best regards

8
CS-Lab / CSMIO_IPM more then one probe input
« on: April 15, 2016, 12:17:47 PM »
Here is my new problem. I have one probe input and more applications for probe. I˘m using a fixed tool length senzor a movable tool senzor and a 3D touching probe.
I have searched the forum and found the function brains. I made a function when input 1  or input 2 is triggered than input probe is active. The function works in diagnostic.
But when i try to auto tool zero, the machine moves to the fixed senzor and trys to crash into the senzor. In outputs i have enabled input 1 and input 2  and disabled the
function prone. Now i would like to know what i m doing wrong ? Is somebody using more then one probe input ????

Best regards


9
CS-Lab / Motor tunning with CSMIO/IP-A (PID) Trouble with encoders
« on: April 09, 2016, 09:03:52 AM »
Greetings,


i would need some help regarding the CSMIO/IP-A. The problem is in the PID regulation. When i try to regulate the axis i do not recive any signal from the linear encoder on the graph . Is this normal? Linear encoders are Heidenhaim ls 903. I have checked the connection and every thing is connected right. Attached you will find  data sheet of the encoders and my screen of the problem. The encoders worked with the old controller without problems.



Thank you in advance.


https://www.dropbox.com/sh/5zyu75x5e756ku1/AADZO8KOkRyX_a6qm7OCSv-pa?dl=0

10
Show"N"Tell ( Your Machines) / MIKRON WF3 retrofit HICON or CSMIO
« on: January 02, 2016, 10:43:27 AM »
Greetings to y'all

I decided to retrofit my MIKRON WF3 and now I am searching for the best options.
For the mach3 motion card I am deciding between these two:
HICON INTEGRA and CSMIO/IP-S – 6 ( pleas comment if you have some experience with this two controllers)
There is still an issue to choose the right servo system for my application. At the attachment you can see the parameters of the old motors. How strong servomotors do i need for such a machine? What is the quality of the motors that are offered at the CSMIO site?
If someone is reading this topic and has experience about servo systems what do you recommend? Do I need a servo break on the Z axis?

Happy new year and best regards

Slovenc ;D

Pages: 1