Hello Guest it is April 23, 2024, 02:56:13 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.


Topics - SteelWolf

Pages: 1 2 »
1
PoKeys / PoKeys57CNC and external sensors?
« on: December 28, 2016, 11:47:49 AM »
The Pokeys57CNC feature list includes the following point:

"support for up to 100 sensors, that can be connected to I2C bus, 1-wire bus or on the general purpose analog inputs,"

I guess most of the people (maybe Im wrong) will use the board in combination with Mach3

Is there really no possibility to access I2C and 1-Wire values from Mach3?

Greetings,
Max

2
Hello,

It seems that all my problems are related to some sort of weird axis movement (normally Z)

But now it should be a basic mach3 thing that i simply dont see.

How can this behaviour be disabled:

In my M6END file:

After probing a tool and retracting from the sensor I make X&Y movement to the workpiece but my Z-Axis moves the difference between the last during that move!

Code: [Select]

...
Tool_Offset = getVar(2002)+GetOEMDRO(49) 'get probe-trip abs
Call setOEMDRO(42, Tool_Offset)


        Code "g0 g53 Z" & GetOEMDRO(54)
While IsMoving()
Wend
Code "g0 g53 Y" & GetOEMDRO(1217) &"g0 g53 X" & GetOEMDRO(1216)  
While IsMoving()
Wend
...

means: on the "Code "g0 g53 Y" & GetOEMDRO(1217) &"g0 g53 X" & GetOEMDRO(1216)  
      While IsMoving()
      Wend" it also starts to moves the Z-Axis simultaneously (this often triggers the Z-Limit switch)

Any ideas what Im missing here?

Thanks!

3
Hello,

I have a "new" problem (I think I had this problem before a few times in other situations):
My M6start and end macro moves the spindle to the toolchange position where i manually change it and press start.
It then measures the height of the new tool and begins with the next job. (Thats what it should do)
The problem is, after measuring the height it exceeds safe-z height and the limit switches trigger.
Normally  "Code "G0G53 Z" & GetOEMDRO(54)" would exactly go to safe-z
In this code example it wont.

And another creepy thing to mention is that it also fails to reference Z afterwards.. It references correctly, but then goes in the positive direction instead of negative while trying to clear the limit-switch. (lucky me has only a relatively weak spindle with a motor that detects overcurrent)

The problematic code part:
        Code "G0G53 Z" & GetOEMDRO(54)
        Code "G0G53 X" & GetOEMDRO(1216) & "G0G53 Y" & GetOEMDRO(1217)

And the full code:
Code: [Select]
If GetOEMDRO (24) <>0 Then

code "g0 g53 x" & GetOEMDRO(1218) & "g0 g53 y" & GetOEMDRO(1219) 'Go to probe Position
While IsMoving()
Wend

SavedZ = GetOEMDRO(49)
SetOEMDRO(49, 0)
'Probing process
code "g0 g53 z" & -GetOEMDRO(1220) 'Eilfahrt bis "Tasterhöhe"
While IsMoving()
Wend
code "g31 z-1000 f700" 
While IsMoving()
Wend
code "M1002"

'Setting Variables
Z_Shift = GetOEMDRO (1221) 'Einstellbares Offset ggf.
Tool_Offset = getVar(2002)'Var method
Call setOEMDRO(42, Tool_Offset)
SetOEMDRO(49, SavedZ)

        Code "G0G53 Z" & GetOEMDRO(54)
        Code "G0G53 X" & GetOEMDRO(1216) & "G0G53 Y" & GetOEMDRO(1217)

'Re-enable coolant
If GetUSERLED(1200)<>1 Then
If GetOEMLED(12) Then
Else
DoOEMButton(114)
End If
SetUSERLED(1200, 1)
End If

Else
MsgBox "Keine Werkzeug-Nummer gewählt",0
End If 

Thanks !

4
Hello,

Im trying to implement some probing features but when probing X or Y,  the probing head also moves in Z direction when I use G31X (no idea what triggers this behaviour)

example Code:

Code: [Select]
If IsOutputActive(Output15) Then

SetOEMDRO(47, 0)
SetOEMDRO(48, 0)
SetOEMDRO(49, 0)

PosX=GetOEMDRO(83)
PosY=GetOEMDRO(84)

'X+ Probing routine

Position = GetOEMDRO(83)
Code "G31 X" & (Position + 20) & "F850"
While IsMoving()
Wend

Position = GetVar(2000) 'real x probing point
Code "G01 G53 X" & (Position - 0.75) & "F500"
While IsMoving()
Wend

Position = GetOEMDRO(83)
Code "G31X" & (Position + 1) & "F40"
While IsMoving()
Wend
Position = GetVar(2000) 'real x probing point
Result= Position-(GetOEMDRO(1325)/(2)) + GetOEMDRO(1310)

It would crash into the table because it moves both axis.

Anybody here who had this problem before :/?

Thanks,
Max

5
Hey,

Im actually implementing all my custom probing scripts. One of them tries to calculate the orientation of a workpiece with two probing points in X and the corresponding Y values.
with tan(alpha)=deltax/deltay

first of all, mach3 has no arcsin or arccos function
so I'm using atn for the arctan function.   atn(abs(deltax/deltay))
But it outputs crap and no correct angle.
Has anybody used atn before or could try a simple piece of code atn? converting this ratio, from lets say a=5 b=3, into an angle?

Thanks (:
Max

6
Mach Screens / Toolpathdisplay Switching? X-Y plane and X-Z plane
« on: September 30, 2014, 06:37:22 PM »
Hello,
for my Interface, I'd need some manual millturn functions but its necessary to switch to X-Z plane
The Problem is that, even when I only use X-Z plane displays it still shows X-Y arrows and I would have to rotate it manually (no option)

Is this a known problem? Do I need to switch some other mode?

Greetings,
Max

7
Hi,
Is there a "easy" possibility to let the mill travel to 0 - 0 - 0 on safe-z and not on clearance height from the CAM? (Because I'd always collide with my 4th axis)
I'd like to have this bounded to mach and not implement it in every PP I use :/
Has anyone an idea?

Thanks!

8
Hello,

Im using a Smoothstepper so this will probably be the reason why it won't work.
The "Verify" (20) Button and even"SingleVerifyReport(Xaxis)" won't function properly.
its a 4 axis machine and 3 axis have ref switches.
I ref XYZ and move to a random location
When running "SingleVerifyReport(Xaxis)" it shows "Position verified successfully" after a couple of seconds.

I guess the "easiest" way would be to write my own ref/verify routine?

Is there a working code for this? My problem is that I don't know if its even possible to deactivate the E-Stop when tripping a limit switch.
There are some custom screensets out there that use more complex referencing routines so I guess it must be possible.

Greetings,
Max

9
Mach Screens / V-basic problem
« on: August 05, 2013, 03:33:40 PM »
Hello,

Im working on some macros for 3D-probing (The probe is on an arm and pivots down to the probing position) and ToolLength compensation
I use the Probe Input and Output 9 to rotate the Probe. (On/Off)

Now after a succesful script for probing Z, X and Y in a row I simply can't deactivate Output9 inside the script.
Im fairly new to vbasic so its probably a obvious problem.

After probing and setting the values I use this to go to Safe-Z:
Code: [Select]
'Goto SafeZ if referenced
If GetOEMLED(809) Then
MsgBox "Z not referenced for safe retract",0
Else
Code "G0G53 Z" & GetOEMDRO(54)
While IsMoving()
Wend
DeActivateSignal(OUTPUT9)
End If

Code "M1019"
It moves to Safe-Z but it simply won't deactivate Signal 9


When creating another button with just the function "DeActivateSignal(Output9)" it works of course.

Any idea what I'm missing here?
Thanks!

10
General Mach Discussion / Mach3 motion controller selection
« on: July 15, 2013, 07:33:41 PM »
Hi,

I have a very.. awkward problem.
I set up the Ethernet Smoothstepper today but need to change back to the old parallel port for some simple milling operations for the smoothstepper case.
But I accidentally clicked "dont ask again" on the pop-up dialog that asks what motion controller to choose from.. So its always set to ESS
(Forgot to clone the profile)
Any tipps how to set this back without loosing all settings?

Thanks a lot!

Pages: 1 2 »