Hello Guest it is March 19, 2024, 12:16:37 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.


Messages - TPS

2151
G-Code, CAD, and CAM discussions / A-Axis TC
« on: December 13, 2017, 01:46:04 AM »
Hello together,

for the moment i am working on a retrofit of  a TongIL TNV40 Mill.
CS-Lab Controller, new servo motor's for axis , Mach3 aso.

now i have a little "fight" with the TC turn axis (A).
i configured in General config:

-A-Axis is angular
-Rot 360 rollover

positioning of A-Axis is as expected with the rollover at 360°

i have wiritten a small script witch calculates the nearest angle to the next expected tool (not an new idea).

so i get out a relative +/- angle to do the move to the TC Position.

so far so good.

G-code would look like this for example:

Situation:
TC P1 = 0
TC P2 = 30

A-Axis is at 0 (P1) and i want to move to P2(30)


'move incremental to P2
"G91 G1 A30 F800"

'do a absolute move to inviod angle Errors
"G90 G1 A30 F800"

ok this sample makes not much sense in this case, but if you have to go ccw for two ore thre positions, or at the rollpver it makes sense.
it is only to discribe the principal.


so now the real Problem:

'move incremental to P2
"G91 G1 A30 F800"
is working like expected, axis is moving +30deg, and axis dro is 30  at the end

'do a absolute move to inviod angle Errors
"G90 G1 A30 F800"
it does a complete turn in CW direction, an can not understand why.


i am not sure wether this is a Mach3 Problem, or CS-Lab Controller issue.

so i would prechiate if someone could do this simple test on a different Controller,
to figure out on witch side the Problem is.

Thank You in advance, and excuse my bad english.

Thomas
 












2152
VB and the development of wizards / Re: global script file Mach3
« on: November 26, 2017, 06:09:29 AM »
Hello Gerry,

"played" a little bit around with the #Expand.

Looks like that is exactly what i am looking for.

Thank You Thomas

2153
VB and the development of wizards / global script file Mach3
« on: November 25, 2017, 03:10:57 AM »
Hi guys,

is there a possibiltiy to declare/create a global script file,
where i can put all my functions witch are needed from
different scripts ?

Thank You Thomas

2154
VB and the development of wizards / Re: Macro does stop
« on: October 30, 2017, 02:55:21 PM »
Hi,

why should your Probepos be equal -ZMove when the probe was never hit ??

--> Probepos = GetVar(2002)
--> If Probepos = - ZMove Then

something like this should work:

While IsMoving()
        z = GetOEMDRO(802) 'Z-actpos
        If z <=  - ZMove _In Then
            DoOEMButton(1003) 'Stop
            MsgBox ("Probe **ERROR**" )
        End If
 Wend

Thomas         

2155
VB and the development of wizards / Re: Auto tool zero script problems
« on: October 28, 2017, 04:32:20 AM »
have you checked your probe Input in diagnostic Screen ?

try to hit the probe Signal long before you reach the -278,5 to see that your Motion controller is working ok.

in dont know this Motion controller, and i don't know wether your Motion controller is doing the
handling for G31 maybe probing needsto be Setup somewhere else , plugin ?

could no find a Manual on their Homepage.

goog workinh G31 is very Controller specivic.


2156
VB and the development of wizards / Re: Control micro servo with Macro
« on: October 28, 2017, 04:16:14 AM »
if you need such a precise timing  (1,5/18,5ms) the only way is a extrenal Signal Generator. 

2157
VB and the development of wizards / Re: Auto tool zero script problems
« on: October 27, 2017, 02:49:25 PM »
preset_feed = 4000  -->mm/s ?? what ever

in witch dream are you living??

what acc/dcc ??

what Motion Controller ??

try to learn a Little bit about lineare movement's

2158
VB and the development of wizards / Re: Control micro servo with Macro
« on: October 27, 2017, 02:40:37 PM »
activate and deactiate outpult will allways create a square Signal (what else !!?)

1.5ms on a Windows System where the macro scripting is running in a 10ms Task,
no way.

---Is this the motion controller, or macro's just can't create a nice waveform ?

what Hardware are you using on the Controller side ?



Thomas

2159
VB and the development of wizards / Re: STOP command
« on: October 16, 2017, 01:08:22 PM »
hi,
if you have a look to the Mach Script Language Referenceit says:

Sleep  Sub
Sleep(Time As Integer)

so a 100000 is more than an integer can take.

Thomas

2160
Hi,
as i have written, i don't know the english Translation for this thing.

if you Google for "cnc tool presetter" i think you will get into the wright direction.

Thomas