Hello Guest it is March 28, 2024, 10:24:41 PM

Author Topic: Mach4 Button OFFLINE  (Read 26861 times)

0 Members and 2 Guests are viewing this topic.

Re: Mach4 Button OFFLINE
« Reply #30 on: January 23, 2018, 04:12:27 PM »
Hi,

Quote
today when I come back from work I try the macros.
can you explain their function to me? because I did not understand well.
do I insert them in the macros folder?
can I do from MDI? I called the macros M210 and M211.

Yes they go in the macros folder of your current profile. Make sure that they go in your current profile....there is
a macro folder for every profile you have...possibly half a dozen or so.

Then you can MDI m210 or m211 as required.

m210 turns off the motor0 enable signal. I'm guessing that your X axis servo enable signal wire is motor0 enable.
m211 turns motor0 enable signal back on.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 Button OFFLINE
« Reply #31 on: January 23, 2018, 04:37:33 PM »
Hi,
Today I loaded macros and called via MDI.
But nothing happened.
Question:
it seems to me that the PIN that needs to be turned on or off is missing in the macro.
« Last Edit: January 23, 2018, 04:42:10 PM by daniba73 »
Re: Mach4 Button OFFLINE
« Reply #32 on: January 23, 2018, 05:18:24 PM »
Hi,

Quote
mc.OSIG_ENABLE0

That is the output signal in the macro. I can't tell if you have an output pin assigned to that signal. You don't address
a pin in Mach4, you use an API for Machs core to set a signal. You or your motion controller plugin connects that signal
to a pin on your controller.

At the current time from your description you have a wire going to your servo drives to enable the drive. To what pin
is it connected at your controller?  To which of Machs output signals has that pin been connected by the Mach/motion control
plugin? That output signal is the one that should occurr in the macros.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 Button OFFLINE
« Reply #33 on: January 23, 2018, 05:20:00 PM »
Hi,
what motion controller are you using?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 Button OFFLINE
« Reply #34 on: January 23, 2018, 05:56:24 PM »

My PIN was just a hypothesis, since the macros have no effect.
Use CSMIO / IP-S of CsLab
Re: Mach4 Button OFFLINE
« Reply #35 on: January 23, 2018, 06:35:47 PM »
Hi,
does your CSIMO plugin identify what pin is used to enable the servos?

Unless the OSIG_ENABLE0 is assigned to a pin you wont see if the macros have any effect. You need to find what
Mach output signal is attached to the pin/pins that enable your servos.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 Button OFFLINE
« Reply #36 on: January 23, 2018, 11:27:01 PM »
Hi,
just above you wrote "You don't address a pin in Mach4, you use an API for Machs core to set a signal"
currently I do not have any pins that enable the servos, they are always physically connected to SERVO ON.
just decide on which pin to intervene and I try ..
Re: Mach4 Button OFFLINE
« Reply #37 on: January 24, 2018, 01:56:28 AM »
Hi,
well you are going to have to change that.

Open your CSIMO plugin and assign an available output pin on your controller to Machs output signal Enable#0.

You should now be able to turn that pin on and off using the two macros. Eventually you'll use that pin to enable/disable one of your servo drives.
I dont know what output voltage the CSIMO controller uses, with any sort of lick you may be able to hook it direct to your servo drive. You will have to check
that they are compatible before you do it though.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Mach4 Button OFFLINE
« Reply #38 on: January 24, 2018, 05:36:46 AM »
ok, I rehearse and update you. thank you
Re: Mach4 Button OFFLINE
« Reply #39 on: January 24, 2018, 11:48:37 AM »
I did try.
I have configured ENABLE # 0 with PIN1 output
for security I used a relay.
the relay is activated / deactivated simply by pressing ENABLE / DISABLE in Mach4.
the M211 and M210 macros have no effect.