Hello Guest it is April 24, 2024, 04:38:57 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 - Winch

Pages: 1
1
General Mach Discussion / Re: scripting
« on: June 09, 2021, 05:07:33 AM »
You are right, that works, so my problem solved. Would be nice to understand how the oemtrigger is meant to work sometime. Tried reading up on it but info seems sketchy.
Thanks again.

2
General Mach Discussion / Re: scripting
« on: June 09, 2021, 04:25:40 AM »
Unfortunately the buttons I want to use are not on the button press list, 245 for instance. So I guess I am back to trying to find out why the oemtrigger #2 does not work for me. The drop down list offers 15 of these oem triggers so plenty of scope for customisation.
I am aware this has progressed somewhat from the original topic, should I repost under the brains topic?
Thanks for your speedy replies.

3
General Mach Discussion / Re: scripting
« on: June 08, 2021, 03:15:46 PM »
Ok, I have some logic in brains with a terminator from the drop down list as oem trigger 2.
When I watch the brains run the terminator goes green as I expect when the conditions are met.
In the hot keys drop down I assign oem trigger 2 to a button say oem114 just to test but it does not operate.
If however I set an input pin in ports and pins to oem trigger 2 and switch the input high it operates the button 114.
So it seems the oem trigger works via the input pin but not via brains.
I hope that makes sense, I cannot send pics at the moment.

4
General Mach Discussion / Re: scripting
« on: June 08, 2021, 01:36:17 PM »
Thanks TPS, been playing with brains, that is the way to go as you suggest. Having an issue though, can’t get oem trigger to work from brains. The output lights green but does not operate the button I have assigned it to. If I use a hard wired input to the same oem trigger it works the button. Do you know what I might be doing wrong?

5
General Mach Discussion / Re: scripting
« on: May 24, 2021, 03:35:34 PM »
Thanks for that, it does not explain why I don’t seem to be able to use oem code 307 in script however if I use a joystick via the inputs you suggest I can inhibit it using oem 290 and might be able to do what I want. Need a bit more time to check...

6
General Mach Discussion / scripting
« on: May 23, 2021, 04:10:48 PM »
Hi, hope this is the right place. I am trying to set up a semi automatic control for welding and want to move the axis by button and joystick but with some conditionals. I need to use VB script and so far have tried dooembutton (307). I have used this as button code and also saved it as a macro and called it from button code. neither work. I used oem 114, (mist) just to check my coding and that worked fine.
I tried jog on and off, no joy when run from button or macro but worked if run from VB editor.
I am curious to know why this is.
is there some way to move an axis without specifying a destination in script?
Thanks in advance.

Pages: 1