Hello Guest it is April 19, 2024, 07:05:00 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 - Mortenx

Pages: 1 2 3 »
1
General Mach Discussion / Re: Mach3 macro homing
« on: February 23, 2022, 01:36:07 PM »
Hi,

just a followup, I have been frustrated that my macro with homing is working with other motions controllers, and more or less gave up and accepted that I had to press cyclestart when enabling my c-axis with homing macro, but yesterday evening I tried different things again, and the solution was quite easy, I put a sleep command before the homing command, and it also only worked with the refcombination command, not dooembutton. I could use the sleep down to around 100 and it still worked most of the time, so 500 was on the safe side, tested it around 30 times, so think it's working as it should.

Link to my questions at warp9 forum:
https://warp9td.com/index.php/kunena/8-requests-and-suggestions/8921-mach3-smoothstepper-homing-bug?limitstart=0

snip from my code:

ActivateSignal(OUTPUT4)
Sleep(300)
If GetOEMLED(845) Then
Code "G91 G0 C35"
While isMoving()
Wend
End If

sleep(500)

refcombination(32)
'DoOEMButton(1027)
'Call dobutton(27)

2
General Mach Discussion / Re: Live counter Brain
« on: January 15, 2022, 01:47:45 PM »
Hi,

Got it fixed, keept the macro with a few adjustments, just made a brain timer that the macro reset at a time I want.

Regards Morten

3
General Mach Discussion / Live counter Brain
« on: January 10, 2022, 01:38:02 PM »
Hi,

I have made a serial-modbus live counter in the macropump code, it reads an external frame counter in an inverter and after a time compare the old and new values, and if equal it triggers an estop and tell modbus com fail, it works, or I believed it did... I have used it for a month and had to extend the time to 1.5 sec. otherwise it would sometime trigger estop in strange situations. this weekend i ran a gcode and had to use "run from here" and when it popup with the preoperational move it triggers my code? If I view the brain where I read the framecounter from, I can see the brain stops reading data when I use "run from here".

So I would like to make a brain that reads the modbus frame value, saves it, a timer and then compare values, and if equal values then trigger an estop. Then it should not trigger when starting "run from here".

I have tried and tried but without luck... Can anybody share a little light on how to make a brain that: read a value, timer, read new value, compare A=B

any help is appreciated.

Regards Morten

4
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 01:31:32 PM »
Thanks TPS,

I have written to Andrew and asked him to check this topic and your post, I will update this topic when I know more, thanks again!

Regards Morten

5
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 01:20:25 PM »
Hi TPS,

thanks for your reply, I will link this to Andrew at warp9.

Regards Morten

6
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 09:20:40 AM »
Hi,

Tried G28.1 and it works from the MDI, but if macro called from gcode, the smoothstepper takes over the homing and wait for cycle start :(

Regards Morten

7
General Mach Discussion / Re: Mach3 macro homing
« on: July 01, 2021, 03:38:39 PM »
Hi again,

It is not a ESS bug, but a mach3 thing - Andrew from warp9 explained to me...

But the G91 G28 C0 does not work - it just moves the C-axis to machine C0 position, but when the clutch for the caxis have been disengaged for normal turning it does not know where it is, I did not see this when playing with it the last time...

I have asked warp9 if they have a suggestion, and if possible to use ESS for homing only some axis and other use mach3 homing.

I am still open to any input you might have.

Regards Morten


8
General Mach Discussion / Re: Mach3 macro homing
« on: June 28, 2021, 01:25:47 PM »
Thanks for all the answers.

I must have done something wrong when testing G91 G28 C0, because I can make that work, but it uses Mach3 homing setting and not the more precise smoothstepper homing - backing off the sensor at another speed.

When playing with the above, I found out that it homed at another speed and did not back of the sensor, and then it hit me, could it be a smoothstepper homing bug? Yes it is, if I disable the smoothstepper homing settings it works as expected.

I will contact warp9 and tell them about the bug.

Once again, thanks for all your solutions and help, this is a fantastic place.

Regards Morten.

9
General Mach Discussion / Re: Mach3 macro homing
« on: June 26, 2021, 01:04:35 AM »
Hi,

No single step enabled, just runs the macro. Mach must have a stop function after doing a homing sequence?

10
General Mach Discussion / Re: Mach3 macro homing
« on: June 25, 2021, 01:41:59 AM »
Hi,

I am using a ethernet smooth stepper from warp9.

Regards Morten

Pages: 1 2 3 »