Hello Guest it is March 28, 2024, 04:16:05 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 - Roberto Ramírez

Pages: 1
1
General Mach Discussion / Touch adjustment problem auto tool zero
« on: July 28, 2018, 12:59:49 AM »
Good evening, I wanted to automatically adjust the z-axis with a plate that I read that served to have more precision when working, then I got one.
I made the connection as it comes in the manual for a controller board, This board is called RNR Universal USB Card Motion Control Mach3 Special Ed. V2.0. Which I show in an attachment in figure 1.

The connection is shown in figure 2, which comes as an attachment.

Then I did the configuration in Ports and Pins as it comes in the manual in figure 3

Then enter in Auto Tool Zero this code that also came in the manual:

PlateOffset = 10
Zup = 25
MaxZPlus = 250
Sleep 100
CurrentFeed = GetOemDro(818)
Code "F300"
ZNew = GetDro(2) - MaxZPlus
Code "G31Z" &ZNew
While IsMoving()
Wend
ZNew = GetVar(2002)
Code "G0 Z" &ZNew + 3
While IsMoving()
Wend
Code "F50"
ZNew = GetDro(2) - 6
Code "G31Z" &ZNew
While IsMoving()
Wend
If PlateOffset <> 0 Then
Call SetDro (2,PlateOffset)
Code "G4 P0.25"
ZNew = PlateOffset + Zup
Code "G0 Z" &ZNew
While IsMoving
Wend
Code "(Z axis is now zero !)"
End If
Code "F" &CurrentFeed
Sleep 100

But nothing happens, when I enter this code in the VBScript the tool goes down and when touching the plate does not stop if it keeps going down, the Mach3 does not detect the board to automatically adjust the tool of a Dremmel 3000.

But the power source that I am using if it shows a difference when the tool touches the automatic adjustment plate and when it does not touch it.

When there is no contact between the tool and the plate, the power source dials 0 Ampere, when there is contact between the tool and the plate, the power source dials 0.01 Ampere as shown in figure 4.

I would be very grateful if someone has an idea of why this happens, because it is because the power source detects something and in Mach3 it does not detect anything. I have even seen in some videos already when they place the plate to calibrate the Z axis and configure the ports and pins in the diagnostics screen the Digitize box is lit.






2
General Mach Discussion / doubt Macros VBScript
« on: July 25, 2018, 02:28:00 AM »
Hello goodnight. I am writing to you because I want to learn to do macros in VBScript mainly to be able to do AutoToolZero.

I've been reading and researching programming using Cypress Basic (CB). What I've been reading about is that it has Dros functions, Button Commands and Leds functions. I was also reading the manual of Macro Programmers Reference Manual 2010 but I do not understand it very well.

Noce how to use this type of commands to program, I would greatly appreciate if someone could explain how it works, or put an example explained, a manual or book explaining all this.

This is an example that comes in the manual Mach3 Version 3.x Macro Programmers Reference Manual :

‘ Define the axes C
Const XaxisMultiFunctionOEMDRONum = 800
Const YaxisMultiFunctionOEMDRONum = 801
Const ZaxisMultiFunctionOEMDRONum = 802
‘ Write 1.2345 to Z axis DRO using SetOEMDRO
SetOEMDRO(ZaxisMultiFunctionDRONum, 1.2345) 
‘ Show the user the Z Axis DRO value, using
GetOEMDRO()
MsgBox “After using SetOEMDRO() the Z Axis DRO reads: “ & GetOEMDRO(ZaxisMultiFunctionDRONum)

I have no idea that it is stating with the constants and that it is equal to 800,801 and 802. I hope that someone can help me to understand how these commands work.

I attach the manual that I am using to learn

Pages: 1