Hello Guest it is May 05, 2024, 06:55:08 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 - TPS

2351
Modbus / Re: My experiments with Mach3 ModBus and Arduino, Part I
« on: April 13, 2015, 02:29:25 AM »
Hi, aluplastvz

quote from the first post:
Equipment:
1. Arduino board (I using Arduino Duemilanove but you can use any other Arduino board)
2. PC with Windows XP and Mach3 because software who I using for monitoring ModBus communication no support new versions Windows.
3. Software's
  - Arduino IDE

i do not have any code, and i am not a Arduino guy.

Thomas

2352
Modbus / Re: My experiments with Mach3 ModBus and Arduino, Part I
« on: April 12, 2015, 05:39:24 AM »
how to increase the number of inputs

just use an other Arduino for example Mega2560 has 54 digital input/output pins .

2353
General Mach Discussion / Re: ative low or active high??
« on: April 12, 2015, 05:34:18 AM »

2354
General Mach Discussion / Re: Help Please
« on: April 09, 2015, 02:44:23 AM »
Hi,

to keep the spindle and dust collector on remove:

N720M09

and in config -> general config -> program End, M30 deselect turn spindle off
(hope it is in the english version there)

Thomas

2355
General Mach Discussion / Re: new guy with problems
« on: April 06, 2015, 05:13:26 AM »
Hi,

one simple thing to test for loose spindle is:
-chouse slow jog speed
-hold the spindle with one hand
-jog with the other had backward and foreward and try to block the spindle
there you can feel if there is any loose part.

an other test is to do G1 moves in the MDI, allways the same distance forward
and backward, mark your startpoint and endpoint and check that it goes allways to the same
points.

 Thomas

2356
Hi,

this macros worked here.

M6Start
Code: [Select]
 
'Save coolant
SetUSERLED(1200, 1)
If GetOEMLED(12) Then
DoOEMButton(114)
SetUSERLED(1200, 0)
End If


SetOEMDRO(1216,GetOEMDRO(83))  'Save x
SetOEMDRO(1217,GetOEMDRO(84))  'save y

'Code "M1001"
message "Fahre Save-Z"
Code "G0G53 Z" & GetOEMDRO(54)
While IsMoving()
Wend
message "Fahre zur Ref-Switch Pos."
code "g0 g53 x" & GetOEMDRO(33) & "g0 g53 y" & GetOEMDRO(34)
While IsMoving()
Wend



tool = GetSelectedTool()
SetCurrentTool( tool )


M6End:
Code: [Select]
'code "M1002"

 DeActivateSignal(Output14)
 DeActivateSignal(Output16)
 DeActivateSignal(Output17)

If GetOEMDRO (24) <>0 Then

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

'Probing process
   message "Z-Vorpos"
     code "g0 g53 z" & -GetOEMDRO(1220)
While IsMoving()
Wend
        message "Z-Probe schnell"
code "g31 z-1000 f700"  
While IsMoving()
Wend
' code "M1002"
' code "M1010"
        message "Z-Probe Rückzug"
code "g53 g0 z" & GetOEMDRO(85)+3
While IsMoving()
Wend
        message "Z-Probe langsam"
code "g31 z-1000 f50"
While IsMoving()
Wend
' code "M1002"





Axis_Pos = GetOEMDRO(85)
Tool_Offset = Axis_Pos
Call setOEMDRO(42, Tool_Offset)

        message "Z Save Pos."
        Code "G0G53 Z" & GetOEMDRO(54) 'safe-Z
While IsMoving()
Wend
        message "X/Y zurück"
        Code "G0G53 X" & GetOEMDRO(1216) & "G0G53 Y" & GetOEMDRO(1217)
While IsMoving()
Wend


'Restart 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  


    



Thomas

2357
ich kann den deutschen Text schon lesen, kein Problem.

ok let's carry on in english to keep al the others in the race.

maybe one of the ethernet SS guy's can test this code, because as said
it is running here fine.

Thomas

2358
found it,

The only restriction is that you are advised not to call another script from within a script


from:

http://www.machsupport.com/Mach3Wiki/index.php?title=Mach_specific_Subroutines/Functions_grouped_by_purpose

Thomas

2359
Hello Max,

i have seen you do macro calls inside the macro.
i had also unexpected courious things when i did this.
somewhere is written not to call macros in a macro.

yust a idea.

Thomas

Was macht der deutsche Text bei der Msgbox ?

2360
Hello Max,

i tested this:

      Call setOEMDRO(42, 100)

      Call setOEMDRO(1216, 40)
         Call setOEMDRO(1217, 60)

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

on my testmachine (parallel port)

an it worked well.
so for the moment i am out off ideas.

Thomas