Hello Guest it is March 28, 2024, 05:48:26 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 - Alexi

Pages: 1
1
VB and the development of wizards / Help to finish a button
« on: January 31, 2021, 06:28:10 PM »
Hi there to all,


this is not my comfort area and is far from it, but in this crazy times found something that can improve my knowledge and simplify my work, so i am trying to create a button that does the starting routine that i always need to make when i start my machine

My manual routine is:
First press RESET button
Second press REF ALL HOME
Third press GO TO ZERO
fourth press zero x, zero y, and zero z (machine coordinates and work coordinates equal to zero )
Five press SOFT LIMITS
After this my machine is ready to safely work.

This is the script that i create:
Code: [Select]


Code   "(     STARTING MACHINE    )"   


DoOEMButton(119) 

Dobutton( 24 ) ' ZeroZ

While IsMoving()

Wend


Sleep 300


ZDRO = 85 'var dro machine


ZWDRO = 2 'var dro work


Z = GetOEMDRO( ZDRO ) 'passa o valor do dro maquina

Call SetDro (ZWDRO, Z) 'passa o valor do dro maquina


Sleep 500



Dobutton( 22 ) ' Zerox

While IsMoving()

Wend


Sleep 500

XDRO = 83 'variavel dro maquina

XWDRO = 0 'variavel dro trabalho



X = GetOEMDRO( XDRO ) 'passa o valor do dro maquina


Call SetDro (XWDRO, X) 'passa o valor do dro maquina


Sleep 500


Dobutton( 23 ) ' ZeroY

While IsMoving()

Wend



Sleep 500


YDRO = 84 'variavel dro maquina

YWDRO = 1 'variavel dro trabalho

Y = GetOEMDRO( YDRO ) 'passa o valor do dro maquina

Call SetDro (YWDRO, Y) 'passa o valor do dro maquina


Sleep 500


Code "G28"


While IsMoving()

Wend


Sleep 500


DoOEMButton(119) 



Code   "(          ZEROS DONE )"     



So my questions are:

Is it safe to use?
Sometimes it doesn't work and it gives me error "limit switch triggered", and stops script. In this case i have to
manually remove axis from switch that triggers.What can it be?
Any tips to improve this are more then welcome.

Thanks to all
Alex

 

2
General Mach Discussion / NEED HELP Mach3 and 2HSS86H problem on AXBB-E
« on: September 21, 2020, 06:09:46 AM »

Hello,

Can anyone help i wonder?

I am trying to connect drivers to mach 3 to test them for first move but i harder then i thought.
Motor and encoder are wired according to label that is in motor.
This is the kit that i have: https://www.aliexpress.com/item/32802045718.html?spm=a2g0s.issue_5ptha.0.0.33334c4dEAMGhH

Configs that i am using are:
Pul+ Pin9
Pul- 5V0
DIR+ Pin19
DIR- 5V0

Switch in driver are config to default (400 steps)

Mach3 is config to 100 steps to mm velocity to 2000 and accel to 200. Step pulse and Dir pulse are both set to 5.
I believe AXBB-E is properly config because i have home induction switch and are working as supposed. I can activate them and mach3 is recognizing them

The problem is when i try to rotate motor in arrow keys i get driver error alarm and it blinks 7 times.
I tried several configs and kernel speeds but no success.

Any help is welcome.

Thanks
Alex

EDIT: Link corrected.

Pages: 1