Hello Guest it is May 04, 2024, 01:07:37 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

281
General Mach Discussion / Re: Rotator switch for Jog increments
« on: February 04, 2022, 01:26:40 AM »
if i look to this manual:

https://www.cnc4pc.com/pub/media/productattachments/files/c10r11.3_user_manual_ver.2.pdf

there is one jumper to set pin 2-9 as inputs and if you use 5V for the inputs the jumper need's to
set to Pull down and then the inputs must be Low active.

but if you have used pin 2/3/4/5 for step/dir sinals you can not use 7/8/9 for inputs.

282
General Mach Discussion / Re: Rotator switch for Jog increments
« on: February 04, 2022, 01:15:26 AM »
to use the system hotkey's is an other way to do this, but you should only use one.
the macro version or the system hotkey version.

the rest looks ok for me, but i can nothing say about your input setting's it is depending on your
hardware connection. maybe they have to be low active, but it dont know.

283
General Mach Discussion / Re: Rotator switch for Jog increments
« on: February 03, 2022, 06:26:58 AM »
ok let's make an example

0,01 input is assigned to OEMTrigger(10)
0,10 input is assigned to OEMTrigger(11)
1,00 input is assigned to OEMTrigger(12)

and these three stepp are confgured in Config -> General Config -> Jog Increments

then you create in macros\your profile name a textfile named M300.M1S
then open this file with texteditor and put this code in:

Code: [Select]
SetTRiggerMacro(301)

now go to Config -> General Config -> Initialisazio String and enter M300  at the end of the existing.

then you create in macros\your profile name a textfile named M301.M1S
then open this file with texteditor and put this code in:

Code: [Select]
Sub Main()

  If IsActive (OEMTRIG10) Then
    dooembutton (191)
  End If

  If IsActive (OEMTRIG11) Then
    dooembutton (192)
  End If

  If IsActive (OEMTRIG12) Then
    dooembutton (193)
  End If

End Sub

save the file and restart Mach, and with a little bit of luck it will work.

If M300.M1s and M301.M1s is allready there chose any free number.



284
VB and the development of wizards / Re: error G31 Probing Arrays
« on: February 02, 2022, 07:19:10 AM »
as mentoined earlier: no ideas what it will/should do

285
VB and the development of wizards / Re: error G31 Probing Arrays
« on: February 02, 2022, 02:38:51 AM »
var 121 and 122 are nowhere calculated

286
VB and the development of wizards / Re: error G31 Probing Arrays
« on: February 01, 2022, 12:12:47 PM »
this code has to in M1299.M1s in your macro folder:
Code: [Select]
' G31 Polar Array Calibration Macro V1.00
Xpos= getdro(0)
Ypos= getdro(1)
Pspeed= Question (" Probe Feed Rate")
Rleg= Question ("Input Max Leg Length")
Linc= Question ("Input leg Separation Angle")
SafZ= Question ("Input SafeZ Height")
Phgt= Question ("Input Safe Probe Height")
Spnt= Question ("Input start point in DEG, zero is x axis 3oclock")
Tdeg= Question ("Input Total Arc Width of Array in DEGs")
Nrep= (Tdeg / Linc)

Setvar (100 , Xpos)
Setvar (101 , Ypos)
Setvar (102 , Rleg)
Setvar (104 , Linc)
Setvar (108 , Nrep)
Setvar (109 , Pspeed)
Setvar (110 , SafZ)
Setvar (111 , Phgt)
Setvar (103 , Spnt)
Code " F#109"

End



and this is the GCode you have to run (it will call M1299)
Code: [Select]



o0001 (G31 Interior Polar Array V1.01)

   M1299
   M40
%
  G90   
  #106 = [#100 + #102 * COS[#103]]
  #107 = [#101 + #102 * SIN[#103]]
  g0 Z#110
  g0 X#100 Y#101
  G1 Z#111
  G31 X #106 Y #107
  G4 P1 
  G0 X#100 Y#101

M98 P1 L#122
G1 Z [#111+121]

M41
M30
%

o0001 (SUB1)
  M98 P2 L#108
  G0 Z#110
  m99

o0002 (SUB2)
  #105=[#103+#104]
  #106 = [#100 + #102 * COS[#105]]
 #107 = [#101 + #102 * SIN[#105]]
 G90
 G31 X #106 Y #107
 G4 P1
 G0 X#100 Y#101
 #103 = #105
 m99
%

bbut i have no ideas what it will/should do.

288
have you seen in the manual that the VDF input are in basic setting NPN not PNP.

J1 on the VDF is to change this.

289
VB and the development of wizards / Re: Auto tool zero Help
« on: January 29, 2022, 03:35:17 AM »
this is a very simple/basic z-probe script for metric use:

Code: [Select]

'simple Z-probe
GageH = 20   'enter the gauge height here
FeedCurrent = GetOemDRO(818)  'Get the current settings
ZNew = GetOemDro(802) - 30      'probe down 30mm
Code "G31 Z" &ZNew & " F10"   'do the probing with 10mm/s
While IsMoving()
Wend
Call SetDro (2,GageH)
Code  "G91 G0 Z10"
Code  "G90"
Code "F" &FeedCurrent                 'restore starting

290
have you checke motor wires with ohmmeter

A+/A-  and B+/B- should have the same resistance.