Communication Routes Mach2 Customisation Guide Rev 6.11-A6 2-2really just some switches and an emulator in a standard box, probably with some neat w
Communication Routes Rev 6.11-A6 Mach2 Customisation Guide 2-32.2.2 Keystrokes and Shortcuts (Hotkeys) A keystroke generates a Scancode which is p
Communication Routes Mach2 Customisation Guide Rev 6.11-A6 2-42.4 VB Script connections A part program is written using G and M codes. It is, howeve
Communication Routes Rev 6.11-A6 Mach2 Customisation Guide 2-52.5 Windows' control The final elements shown in figure 2.1 are the standard devic
Communication Routes Mach2 Customisation Guide Rev 6.11-A6 2-6
Screen Designer Rev 6.11-A6 Mach2 Customisation Guide 3-13. Screen Designer His chapter describes the features of Mach2 Screen Designer. This program
Screen Designer Mach2 Customisation Guide Rev 6.11-A6 3-2By default you will be putting controls on Screen #1. Use the numbered buttons on the toolb
Screen Designer Rev 6.11-A6 Mach2 Customisation Guide 3-3 Thus Shift-A would be 1,089 (65 + 1,024), Alt-/ would be 2,095 (47 + 2,048) and Shift-Ctrl
Screen Designer Mach2 Customisation Guide Rev 6.11-A6 3-4currently displayed screen. A useful trick for VB Script or G-code buttons, that you want t
Screen Designer Rev 6.11-A6 Mach2 Customisation Guide 3-5 Figure 3.3 - Ragged DROs as drawn 3.4.1 Alignment icons The first four icons on the bar
Screen Designer Mach2 Customisation Guide Rev 6.11-A6 3-63.5 Properties of other types of control Now work your way through the different types of c
Screen Designer Rev 6.11-A6 Mach2 Customisation Guide 3-73.5.4 Use of Bitmaps The location of the file containing a Windows bitmap is given in the
Screen Designer Mach2 Customisation Guide Rev 6.11-A6 3-8Figure 3.10 illustrates a prototype of such a screen (courtesy of Ken Bell). In such a desi
Screen Designer Rev 6.11-A6 Mach2 Customisation Guide 3-9up buttons. Similar features exist on the dialogs for other controls. Positioning: The posit
Screen Designer Mach2 Customisation Guide Rev 6.11-A6 3-10
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-14. Coding VB Script programs This chapter aims to help you write button or
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-2Rem Geometric 20% increase of Feedrate Dim val val = GetDro(18) ' Fe
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-3 TxtChoice = "G20G61" Case 10 TxtChoice = "G
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-4A function can be called and have its result thrown away as in this examp
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-5JoyStickLEDFn = 14 : : bJoy = GetLed (JoyStickLEDFn) LEDs Function GetLED
Mach2 Customisation Guide All queries, comments and suggestions welcomed via [email protected] Mach Developers Network (MachDN) is currently h
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-6Very many "buttons" are toggles or cycle through a range of pos
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-7Function GetVar (PVarNumber as Integer) as Double Sub SetVar (PVarNumber a
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-8User defined DROs This technique is mainly applicable to wizards and scri
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-9Sub CloseTeachFile () Closes the currently open Teach or wizard file and s
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-104.4.10 Serial port You can send bytes of raw data to a serial port. T
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-114.4.13 A more complicated macro example The next example is used to sh
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-12 Wend code "G0Z" & StartZ code "G0X"
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-134.5.3 Stuck in a rut? As you have some very powerful control structure
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-144.6 Legacy/System VB Script Functions The following functions are still
Mach2 defined VB Script functions Rev 6.11-A6 Mach2 Customisation Guide 4-15Sub RefCombination(Axes as Integer) Performs simultaneous referencing on
Contents Mach2 Customisation Guide Rev 6.11-A6 iiContents 1. Preface...
Mach2 defined VB Script functions Mach2 Customisation Guide Rev 6.11-A6 4-16Function tZStart() as Double Function tEndX() as Double Function tEndZ()
Designing Wizards Rev 6.11-A6 Mach2 Customisation Guide 5-15. Designing wizards The techniques of VB Script and custom screens can be combined to imp
Designing Wizards Mach2 Customisation Guide Rev 6.11-A6 5-2detail the use of user DRO’s, teaching files, and restoring the system screens after the
Designing Wizards Rev 6.11-A6 Mach2 Customisation Guide 5-3Next we add the rest of the controls required for the user to define what the wizard is to
Designing Wizards Mach2 Customisation Guide Rev 6.11-A6 5-4It begins by getting the values of all the User DROs on the screen and assigning their va
Designing Wizards Rev 6.11-A6 Mach2 Customisation Guide 5-5Rem set the current location to 0,0,0 and open the file code "M40" code "G9
Designing Wizards Mach2 Customisation Guide Rev 6.11-A6 5-65.3.4 A wizard that runs its own code Now let us take a look at a bit of script which
Designing Wizards Rev 6.11-A6 Mach2 Customisation Guide 5-7after the code G31Z-10 statement. This will make your macro wait until the probe is done b
Designing Wizards Mach2 Customisation Guide Rev 6.11-A6 5-85.4.4 Error checking The example below shows a simple wizard that checks its data befo
Designing Wizards Rev 6.11-A6 Mach2 Customisation Guide 5-95.4.5 Documenting the wizard There are 3 major pieces required to properly document the
Contents Rev 6.11-A6 Mach2 Customisation Guide iii4.3 A common confusion with VB Script and a hint...
Designing Wizards Mach2 Customisation Guide Rev 6.11-A6 5-10
Reference Tables Rev 6.11-A6 Mach2 Customisation Guide 6-16. Appendix 1 – Reference tables for Codes 6.1 Keyboard shortcut codes HotKey DRO/Butto
Reference Tables Mach2 Customisation Guide Rev 6.11-A6 6-2 6.2 Button, LED and DRO codes Type Function FCode IsOEM OEMCode 1 X DRO 0 No 1 Y DRO
Reference Tables Rev 6.11-A6 Mach2 Customisation Guide 6-3Type Function FCode IsOEM OEMCode 1 Z axis Ref Sw DRO 12 Yes 35 1 A axis Ref Sw DRO 12 Y
Reference Tables Mach2 Customisation Guide Rev 6.11-A6 6-4Type Function FCode IsOEM OEMCode 1 A Machine Coord DRO 12 Yes 86 1 B Machine Coord DRO
Reference Tables Rev 6.11-A6 Mach2 Customisation Guide 6-5Type Function FCode IsOEM OEMCode 4 Zero Y 9 No 4 Zero Z 10 No 4 Zero A 11 No 4 Zero
Reference Tables Mach2 Customisation Guide Rev 6.11-A6 6-6Type Function FCode IsOEM OEMCode 4 Software limits 32 Yes 119 4 Touch button for Tool l
Reference Tables Rev 6.11-A6 Mach2 Customisation Guide 6-7Type Function FCode IsOEM OEMCode 4 Jog increment cycle 32 Yes 171 4 Clear error label 3
Reference Tables Mach2 Customisation Guide Rev 6.11-A6 6-8Type Function FCode IsOEM OEMCode 4 Flood ON 32 Yes 224 4 Flood OFF 32 Yes 225 4 Mist O
Reference Tables Rev 6.11-A6 Mach2 Customisation Guide 6-9Type Function FCode IsOEM OEMCode 4 Set Jog mode CONT 32 Yes 276 4 Code for OEMTriggers r
Contents Mach2 Customisation Guide Rev 6.11-A6 iv7.2.5 Manipulate selected screen...
Reference Tables Mach2 Customisation Guide Rev 6.11-A6 6-10Type Function FCode IsOEM OEMCode 6 Enable 2 LED 47 No 6 Enable 3 LED 48 No 6 Enable
Reference Tables Rev 6.11-A6 Mach2 Customisation Guide 6-11Type Function FCode IsOEM OEMCode 6 CV Mode ON LED 56 Yes 54 6 M30 Repeats Enabled LED
Reference Tables Mach2 Customisation Guide Rev 6.11-A6 6-126.3 Signal codes SigName SigInput SigCode XLimitPlus Yes 0 XLimitMinus Yes 1
Screen layout file format Rev 6.11-A6 Mach2 Customisation Guide 7-17. Appendix 2 - Screen Layout files (.SET & .SSET) 7.1 Roles of Screen Designe
Screen layout file format Mach2 Customisation Guide Rev 6.11-A6 7-2The .ZIP also includes a sample layout (TweakSamp.set) that contains 1024 resolut
Screen layout file format Rev 6.11-A6 Mach2 Customisation Guide 7-37.2.4 Manipulate all screens in layout 7.2.4.1 Open .SET This prompts for a Lay
Screen layout file format Mach2 Customisation Guide Rev 6.11-A6 7-4button(s) that display them (typically on the Persistent screen) and as a last re
Screen layout file format Rev 6.11-A6 Mach2 Customisation Guide 7-5they are not appended with all the other controls. This "disappearance"
Screen layout file format Mach2 Customisation Guide Rev 6.11-A6 7-67.2.7.2 Re-order DROs In Mach2 the arrow keys can be used to cycle through a grou
Screen layout file format Rev 6.11-A6 Mach2 Customisation Guide 7-7the file with the least significant byte first. The structure of ControlRec and Co
Preface Rev 6.11-A6 Mach2 Customisation Guide 1-11. Preface Any machine tool is potentially dangerous. Computer controlled machines are potentially m
Screen layout file format Mach2 Customisation Guide Rev 6.11-A6 7-8 7 Label 8 Bitmap Button 9 Manual Data Entry (MDI) 10 G-code window 11 Toolpa
Screen layout file format Rev 6.11-A6 Mach2 Customisation Guide 7-97.3.2.12 Flash Flag LED will flash if this flag is non-zero 7.3.2.13 RedGreen Flag
Screen layout file format Mach2 Customisation Guide Rev 6.11-A6 7-10
General utility programs Rev 6.11-A6 Mach2 Customisation Guide 8-18. Appendix 3 – General utility programs 8.1 KeyGrabber 8.1.1 Overview Chapter 8
General utility programs Mach2 Customisation Guide Rev 6.11-A6 8-28.1.2 Installation 8.1.2.1 The files The KeyGrabber software is automatically i
General utility programs Rev 6.11-A6 Mach2 Customisation Guide 8-3The KeyGrabber window has a tab for each. Additional tabs are displayed when HID de
General utility programs Mach2 Customisation Guide Rev 6.11-A6 8-4to a key on the keyboard then you will be shown the character on the key (e.g. Q)
General utility programs Rev 6.11-A6 Mach2 Customisation Guide 8-5Note: If you have a keyboard emulator which provides hardware key repeat (typematic
General utility programs Mach2 Customisation Guide Rev 6.11-A6 8-68.1.6 Configuring HIDs 8.1.6.1 Preparation for HIDs Human Interface Devices (HI
General utility programs Rev 6.11-A6 Mach2 Customisation Guide 8-7Now press a button on the HID. Its line is selected. By double-clicking or right-cl
Preface Mach2 Customisation Guide Rev 6.11-A6 1-2Windows XP and Windows 2000 are registered trademarks of Microsoft Corporation. If other trademarks
General utility programs Mach2 Customisation Guide Rev 6.11-A6 8-8and "low" gain can be chosen dynamically for all axes using a HID key. W
General utility programs Rev 6.11-A6 Mach2 Customisation Guide 8-9which specifies the Mach2 profile to use. Thus for example if the original shortcut
General utility programs Mach2 Customisation Guide Rev 6.11-A6 8-10shared with three input terminals. These effectively cannot be used, because they
Record of configuration used Rev 6.11-A6 Mach2 Customisation Guide 1 9. Revision history Rev 6.11-A6 13 November 2004 Detailed correction of typos a
Mach2 Customisation Guide Rev 6.11-A6 2 10. Index Hint: Where there is a choice, most index entries are made using the name of a thing (e.g. Axis dr
Rev 6.11-A6 Mach2 Customisation Guide 3 Greyed out text - meaning...1-1 H HID as source of keycodes...
Mach2 Customisation Guide Rev 6.11-A6 4 Screen Designer Controls...See Controls - Screen Designer ScreenTweak Additional layout...
Communication Routes Rev 6.11-A6 Mach2 Customisation Guide 2-12. Communication routes In this chapter we will look how the hardware of the machine to
Komentarze do niniejszej Instrukcji