I've been working with Support to get my Jogsticks working nicely on my Bridgeport S2I2 - but would like to take it a step further. I engage a Jogstick - it runs in slow feed mode ok, but then I want to push the little rapid button in the middle of the Jogstick and have it go into rapid (or fast feed) mode. So far I've been able to code the FastSlowLED to fit my needs, but the jogging speed does not change - The support folks tell me you cannot change the fast/slow feed mode whilst it's jogging (other than feed override). So I'm looking for some work-around where-in once the thumb rapid button is pressed - the jog actually stops for a pass or two, changes the fastslowjogmode to fast mode, then re-engages and carries on in fast (or rapid) mode.
Any thoughts or code examples I could draw on for this sort of functionality would be very helpful. Here's what I have so far
Code: Select all
...
;=============================================================================
JogPanelStage
;=============================================================================
...
;--Setup for Bridgeport Joysticks ---
;Setup Simple representation of states
IF (ZPlusJoystick || ZMinusJoystick || XMinusJoystick || XPlusJoystick || YMinusJoystick || YPlusJoystick)
THEN (JoystickEnabled_M)
IF (XYJoystickRapid || ZJoystickRapid)
THEN (JoyRapidEnabled_M)
;When using joysticks, save the previous jog mode (fast/slow) and force the joystick mode
; (slow first, then fast as desired)
IF JoystickEnabled_M && !SlowFastJogModeSaved_M
THEN (SaveFastSlowJogModePD),
SET SlowFastJogModeSaved_M
IF SaveFastSlowJogModePD && FastSlowLED THEN SET PreviousJogMode_M
IF SaveFastSlowJogModePD && !FastSlowLED THEN RST PreviousJogMode_M
IF JoystickEnabled_M && !JoyRapidEnabled_M && !FastSlowLED THEN SET FastSlowLED
IF JoystickEnabled_M && JoyRapidEnabled_M && FastSlowLED THEN RST FastSlowLED
;Once Joysticks are no longer used, restore the saved mode and reset
IF !JoystickEnabled_M && SlowFastJogModeSaved_M && !PreviousJogMode_M
THEN RST FastSlowLED,
RST SlowFastJogModeSaved_M
IF !JoystickEnabled_M && SlowFastJogModeSaved_M && PreviousJogMode_M
THEN SET FastSlowLED,
RST SlowFastJogModeSaved_M
...
Code: Select all
;--MPU11 Jog Panel Key Functions
IF KB_F9 THEN (F9PD)
IF KbTogRapidOver_M || (F9PD && (SV_PROGRAM_RUNNING || SV_MDI_MODE))
THEN (RapidOverPD)
IF RapidOverPD^ SelectRapidOverride THEN (SelectRapidOverride)
IF OnAtPowerUp_M THEN SET SelectRapidOverride
IF (CycleCancelKey || KbCycleCancel_M) && (SV_PROGRAM_RUNNING || SV_MDI_MODE)
|| ErrorFlag_M
THEN (DoCycleCancel)
IF (CycleStartKey || KbCycleStart_M) THEN (DoCycleStart)
IF (Ax1PlusJogKey || KbJogAx1Plus_M
|| (XPlusJoystick && !XYJoystickRapid && FastSlowLED)
|| (XPlusJoystick && XYJoystickRapid && !FastSlowLED))
&& !Ax1PlusJogDisabled_M && !(IncrContLED && FinalFeedOverride_W == 0)
THEN (DoAx1PlusJog)
...
Thanks
Jay