20 function pendant for use with candcnc port2 card candcnc · how to define functions in the code....
Post on 20-Jan-2020
1 Views
Preview:
TRANSCRIPT
USER MANUAL MPG-02A Multi-Function Pendant & Handwheel
REV1
20 Function Pendant for use with CandCNC Port2 cardand MACH3 Controller Software.
CandCNCwww. CandCNC.com
D4D3D2
D1
SW10
MPG-02A Rev1
SHIFTKEY
AXISSELECT
RUN
RUN SHUTTLEFEEDHOLD
MPG JOGSTOP
ZERO X
FR +
ZERO Y ZERO Z
FR -
REF ALL
SPINDLE OUT 2
RESETREF Z
FR RESET
FLASHON SHIFT
SOLIDON RUN
ACTIVE AXIS FLASH IN MPG JOG MODE
4567
SW11
SW9 SW8 SW7
SW6 SW5 SW4
SW3SW2SW1
MPG MPG
RESET
MPG-02A Button Functions
Mach Output #
MPG MPG
X Y ZFLASH ON
OUT1 OUT2
MPG MPG
RUN
SHIFT
RUN FEEDHOLD SHUTTLE
RESET
Handwheel Jog/Shuttl
e
CandCNC
Axis Select
SHIFT KEYTOGGLE
X Y Z
FR RESET
FLASH ON
FLASH ON
SOLIDON RUN
FR - FR +
OUT1 OUT2
ZERO X ZERO Y ZERO Z
STOP MPG JOG
REF Z REF ALL RESET
OUT1 OUT2
MPG-02A 20 FUNCTION
FU
NC
TIO
N 1
FU
NC
TIO
N 2
MPG LEDFLASHES WHEN
CHANNEL A IS ACTIVE
MPG LEDFLASHES WHEN
CHANNEL B IS ACTIVE
FR Active
Flashes when inLower Shift Mode and
Feedrate Overrideis Active
1. Off when in Lower ShiftMode and RUN is notactive
2. On Solid when in LowerShift Mode and RUN isACTIVE
3. Flashes when in UpperShift Mode
On Steady Whenin Lower Shift Modeand Output1 is active
On Steady Whenin Lower Shift Modeand Output2 is active
XYZ LED’s Flash when inUpper Shift Mode andMPG Jog is active(Selected Axis flashes withShift Mode LED
MPG-02 A Switch Assignments
Note: Use of this product requires MACH3 and a custom program fromCandCNC running in MACH3. Other functions can be mapped to the pins.Contact us at Tom@CandCNC.com if you would like to have other functionsand which keys you want to use.
Pendant
Switch
MACH
OEM # Mapped Function
MACH
CODE
Shifted
Function
MACH
CODE
NA MPG MPG
NA MPG MPG
SW3 39 RESET 1021 RESET 1021
SW9 38 RUN 1000 RUN 1000
SW4 30 FR Reset 1014 Zero Z 1010
SW10 37 Axis Toggle 175 Axis Toggle 175
SW11 29 SHIFT SHIFT
SW2 33 Flood (Out 2) 113 REF ALL 246
SW5 31 FR - 108 Zero Y 1009
SW1 32 Spindle/OUT 1 110 REF Z 1022
SW6 34 FR + 109 Zero X 1008
SW8 35 FEEDHOLD 1001 STOP 1003
SW7 36 Shuttle Mode 284 MPG JOG 174
D4 61
Out 1 Active
(Solid)
MPG Z axis
(Flash)
D3 60
Out 2 Active
(Solid)
MPG Y axis
(Flash)
D2 59
FR OverRide
(Flash)
MPG X Axis
(Flash)
D1 81 Run LED (Solid)
SHIFTED
(flash)
Indicators
IF keyno > 29 AND Shift = 0 Then 'unshiftedSelect Case Keyno
Case = 30DoOEMButton(1014)Innerloop = 1looptrigger = 0
Case = 31DoOEMButton(108)Innerloop = 1looptrigger = 0
Case = 32DoOEMButton(110)Innerloop = 1looptrigger = 0
Case = 33DoOEMButton(113)Innerloop = 1looptrigger = 0
Case = 34DoOEMButton(109)Innerloop = 1looptrigger = 0
Case = 35DoOEMButton(1001)Innerloop = 1looptrigger = 0
Case = 36DoOEMButton(284)Innerloop = 1looptrigger = 0
Case = 37DoOEMButton(175)Innerloop = 1looptrigger = 0
Case = 38DoOEMButton(1000)Innerloopt = 1looptrigger = 0
Case = 39DoOEMButton(1021)Innerloop = 1looptrigger = 0
How to define functions in the code.
1. Find the OEM Button (function) you want to do in the MACH3 list2. Look at the ref number (MACH OEM #) for the key on the pendant (i.e. 30 thru 39)3, Decide if you want the function to be in the Normal (unshifted) or the Shifted section4. Open the Macropump.m1s file with a text editor (Notepad) and change the number for
the corresponding button that is in the () to the desired OEM Button Code.5. Save the new code with a different name from macropump.m1s6. Rename the old macropump.m1s to macropump.old7. Make sure your new file is in the Mini-IO-SC-Dual folder under macro’s8. Rename it to macropump.m1s9. Restart MACH3.
If you make a typo or get the code wrong you will get an error message when you start MACH3NOTE: This is sample code and is not the correct syntax. DO not use this to run!
If Keyno > 29 AND Shift = 1 thenSelect Case Keyno
Case = 30DoOEMButton(1010)Innerloop = 1looptrigger = 0
Case = 31DoOEMButton(1009)Innerloop = 1looptrigger = 0
Case = 32DoOEMButton(1022)Innerloop = 1looptrigger = 0
Case = 33DoOEMButton(246)Innerloop = 1looptrigger = 0
Case = 34DoOEMButton(1008)Innerloop = 1looptrigger = 0
Case = 35DoOEMButton(1003)Innerloop = 1looptrigger = 0
Case = 36DoOEMButton(174)Innerloop = 1looptrigger = 0
Case = 37DoOEMButton(175)Innerloop= 1looptrigger = 0
Case = 38DoOEMButton(1000)Innerloop = 1looptrigger = 0
Case = 39DoOEMButton(1021)Innerloop = 1looptrigger = 0
Case ElseEnd Select
Sample Code for SHIFTED Functions
NOTE: This is sample code and is not the correct syntax. DO not use this to run!
MPGMPG MPGMPG
RUNRUN
SHIFTSHIFT
RUNRUN FEEDHOLDFEEDHOLD SHUTTLESHUTTLE
RESETRESET
Handwheel Jog/Shuttl
eHandwheel Jog/Shuttl
e
CandCNCCandCNC
Axis SelectAxis Select
SHIFT KEYTOGGLE
SHIFT KEYTOGGLE
XX YY ZZ
FR RESETFR RESET
FLASH ONFLASH ON
FLASH ONFLASH ON
SOLIDON RUN
SOLIDON RUN
FR -FR - FR +FR +
OUT1OUT1 OUT2OUT2
ZERO XZERO X ZERO YZERO Y ZERO ZZERO Z
STOPSTOP MPG JOGMPG JOG
REF ZREF Z REF ALLREF ALL RESETRESET
OUT1OUT1 OUT2OUT2
MPG-02A 20 FUNCTIONMPG-02A 20 FUNCTION
FU
NC
TIO
N 1
FU
NC
TIO
N 1
FU
NC
TIO
N 2
FU
NC
TIO
N 2
Faceplates for new MPG-02A 20 function pendant
REPLACEABLEFACEPLATE
ROTARY ENCODER
SPINNER KNOB
Allen Head Setscrews (2)
Case Cover Screws (4)
Keypad Screws (4)
Keypad
Clear Cover
Sub-Plate
Connector InterfaceCard
Base
Encoder Mounting Screws(2)
Changing the MPG-02 Replaceable Faceplate
To Change out the Faceplate:
1. Loosen Set Screws on Spinner Knob2. Remove Spinner Knob by carefully prying from both sides at once.3. Loosen 4 screws holding Clear Cover and remove Clear Cover from Base.4. Remove 2 Flat head screws holding Rotary Encoder onto Clear Cover.5. Remove the 4 Screws holding the Keypad to the front.6. Separate the Front Panel and replace with new one. Make sure the LED’s
all line up properly and are in the holes.7. Reassemble in reverse order.
There is no need to remove the lower Connector Interface card or disconnectthe Encoder wires. If you do make sure the encoder is plugged back in thesame way since the connector is not “keyed”.
5.0
"
3.375”
1.7
50”
2.1
87"
3.3
75
"
MPG-02A Dimensions
top related