Updating PLC for Bridgeport Jogsticks

_______________________________________________________














LOGIN below to POST your questions and comments on AjaxCNC products.

Moderator: cnckeith

Post Reply
Jay
Posts: 33
Joined: Tue May 17, 2011 2:30 pm
Allin1DC CNC Controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No
System Serial Number: A900438
Location: Okotoks, Alberta

Updating PLC for Bridgeport Jogsticks

Post by Jay » Thu Oct 26, 2017 4:47 pm

Hi guys,
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
Okotoks, Alberta

Jay
Posts: 33
Joined: Tue May 17, 2011 2:30 pm
Allin1DC CNC Controller: Yes
MPU11 & GPIO4D -w/ 3rd Party Drives: No
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: No
System Serial Number: A900438
Location: Okotoks, Alberta

Re: Updating PLC for Bridgeport Jogsticks

Post by Jay » Sat Oct 28, 2017 4:02 pm

Just to add to this - from what I'm seeing so far - it appears the axis of interest must come to a complete stop before the FastSlow Mode physically changes - thus even trying to programmatically stop the jog - switch the fast/slow mode - then restart the jog within a pass or two is NOT sufficient to 'change jog mode on-the-fly'.

..looks like I'm going to have to force a feedrate override when I push the rapid button to get it working
Okotoks, Alberta

Post Reply

Who is online

Users browsing this forum: tblough and 13 guests