1
Brains Development / Brains for Custom Control Panel - Continuous Jog/"States" Question
« on: March 16, 2012, 02:24:30 PM »
Hello,
I am working on a custom modbus control panel that will use Mach3. I am trying to write some brains so that specific switches on the control panel will given specific commands in Mach3, however I am running into some issues:
1) Continuous Jog – "X+"
I tried mapping a switch to OEM Code 307 (307-Jog X - right) to simulate the Mach3 "X+" button in the Tab Screen (Jog Selection). The function that I want to simulate is when the button is clicked and held, the machine jogs, and when you let go of button, the machine stops.
The issue I am running into is that when I press the switch on the control panel, it will still move in the direction even though I let go. When I press the button itself again, it stops. This issue is also occurring for the “X-“ button. In the Incremental Jog, the switches work.
2) "States"
I am trying to figure out how to define certain "states" of a variable. I have three (3) switches on the control panel for MPG, JOG, and INC JOG. The functional idea is the following:
a) If any of the buttons are pressed, turn Jog Mode On
b) Be able to switch freely between the jog modes.
c) When the button itself is pressed (e.g. MPG is on and MPG is pressed), it will turn Jog Mode Off.
How would I be able to define (and modify) a “State” (e.g., storing a value to see if Jog Mode is On or Off) in brains to be in order to be able to implement this feature?
Thank you
I am working on a custom modbus control panel that will use Mach3. I am trying to write some brains so that specific switches on the control panel will given specific commands in Mach3, however I am running into some issues:
1) Continuous Jog – "X+"
I tried mapping a switch to OEM Code 307 (307-Jog X - right) to simulate the Mach3 "X+" button in the Tab Screen (Jog Selection). The function that I want to simulate is when the button is clicked and held, the machine jogs, and when you let go of button, the machine stops.
The issue I am running into is that when I press the switch on the control panel, it will still move in the direction even though I let go. When I press the button itself again, it stops. This issue is also occurring for the “X-“ button. In the Incremental Jog, the switches work.
2) "States"
I am trying to figure out how to define certain "states" of a variable. I have three (3) switches on the control panel for MPG, JOG, and INC JOG. The functional idea is the following:
a) If any of the buttons are pressed, turn Jog Mode On
b) Be able to switch freely between the jog modes.
c) When the button itself is pressed (e.g. MPG is on and MPG is pressed), it will turn Jog Mode Off.
How would I be able to define (and modify) a “State” (e.g., storing a value to see if Jog Mode is On or Off) in brains to be in order to be able to implement this feature?
Thank you