Customizing Mach2

Total Page:16

File Type:pdf, Size:1020Kb

Customizing Mach2 Mach2 Customisation Guide All queries, comments and suggestions welcomed via [email protected] Mach Developers Network (MachDN) is currently hosted at: http://groups.yahoo.com/group/mach1mach2cnc/files/ © 2003/4 Art Fenerty and John Prentice Front cover: Brown & Sharpe Universal mill 1862 (with some "artistic" liberties) Back cover (if present): The old, gear, way of co-ordinating motion on mill table and a rotary axis For Mach2 Release 6.11 Manual Revision 6.11-A6 Contents Contents 1. Preface.............................................................................................1-1 2. Communication routes...................................................................2-1 2.1 Electrical connections.....................................................................................................2-1 2.2 Keystroke connections....................................................................................................2-1 2.2.1 Keystrokes........................................................................................................................2-1 2.2.2 Keystrokes and Shortcuts (Hotkeys)..................................................................................2-3 2.3 The KeyGrabber and profilers.......................................................................................2-3 2.4 VB Script connections.....................................................................................................2-4 2.4.1 VB Script program............................................................................................................2-4 2.4.2 Mach2 macro....................................................................................................................2-4 2.5 Windows' control............................................................................................................2-5 2.6 Other customisation........................................................................................................2-5 2.6.1 Global hotkeys..................................................................................................................2-5 3. Screen Designer..............................................................................3-1 3.1 Screen Designer basics....................................................................................................3-1 3.2 Try out the Designer.......................................................................................................3-1 3.3 Making the controls work...............................................................................................3-2 3.3.1 Key scan codes.................................................................................................................3-2 3.3.2 Defining function by G-code or VB Script.........................................................................3-3 3.3.3 Defining function by name................................................................................................3-4 3.3.4 Defining buttons by OEM code.........................................................................................3-4 3.4 Getting a tidy visual effect..............................................................................................3-4 3.4.1 Alignment icons................................................................................................................3-5 3.4.2 Sizing icons......................................................................................................................3-5 3.4.3 Spacing controls uniformly...............................................................................................3-5 3.5 Properties of other types of control................................................................................3-6 3.5.1 User LEDs and DROs.......................................................................................................3-6 3.5.2 Properties of Intelligent Labels..........................................................................................3-6 3.5.2.1 System labels.........................................................................................................3-6 3.5.2.2 User Labels/Tickers...............................................................................................3-6 3.5.3 DRO groups......................................................................................................................3-6 3.5.4 Use of Bitmaps.................................................................................................................3-7 3.5.4.1 Bitmap buttons.......................................................................................................3-7 3.5.4.2 Visual grouping with bitmaps.................................................................................3-7 3.5.4.3 Identifying controls by the background bitmap.......................................................3-7 3.5.4.4 Dynamic changes with bitmaps..............................................................................3-8 3.6 Advanced features for setting up controls......................................................................3-8 3.7 Colors..............................................................................................................................3-9 3.8 Implementing two levels of screen complexity................................................................3-9 4. Coding VB Script programs...........................................................4-1 4.1 A simple button script.....................................................................................................4-1 4.2 Sample macros................................................................................................................4-2 4.2.1 A simple macro.................................................................................................................4-2 4.2.2 More complex macro........................................................................................................4-2 Mach2 Customisation Guide ii Rev 6.11-A6 Contents 4.3 A common confusion with VB Script and a hint............................................................4-3 4.4 The Mach2 VB Script functions and subroutines...........................................................4-4 4.4.1 To execute G or M-codes from a script..............................................................................4-4 4.4.2 For accessing the screen controls.......................................................................................4-4 4.4.3 Interrogating Mach2 internal variable................................................................................4-6 4.4.4 Access to the machine G-code parameter block.................................................................4-6 4.4.5 Arguments of macro call...................................................................................................4-7 4.4.6 Information to and from the user.......................................................................................4-7 4.4.7 Handling files of Part Programs.........................................................................................4-8 4.4.8 Screen handling routines for wizards etc............................................................................4-9 4.4.9 Input/Output signals, a serial port and "foreign" ports........................................................4-9 4.4.10 Serial port.......................................................................................................................4-10 4.4.11 Foreign ports...................................................................................................................4-10 4.4.12 Waiting and system features............................................................................................4-10 4.4.13 A more complicated macro example................................................................................4-11 4.5 Script Snags and Hints..................................................................................................4-12 4.5.1 What Windows/Mach2 does with your macro..................................................................4-12 4.5.2 Script error reporting.......................................................................................................4-12 4.5.3 Stuck in a rut?.................................................................................................................4-13 4.5.4 Reporting errors to users.................................................................................................4-13 4.6 Legacy/System VB Script Functions.............................................................................4-14 5. Designing wizards...........................................................................5-1 5.1 What is a wizard?...........................................................................................................5-1 5.2 A wizard's working in a nutshell....................................................................................5-1 5.3 Worked example – the Digitize wizard explained..........................................................5-1 5.3.1 The first step.....................................................................................................................5-2 5.3.2 Making the wizard work...................................................................................................5-3 5.3.3 Making the wizard write a part program............................................................................5-4
Recommended publications
  • Configuration Control Document
    Configuration Control Document CR8200 Firmware Version 1.12.2 CR950 Firmware Version 2.1.2 CR1500 Firmware Version 1.4.1 CR1100 Firmware Version 1.2.0 CR5200 Firmware Version 1.0.4 CR2700 Firmware Version 1.0.6 A271 Firmware Version 1.0.3 D027153 CR8200 CR950 CR1500 CR1100 CR2700 CRA-A271 Configuration Control Document CCD.Docx Page 1 of 89 © 2013-2019 The Code Corporation 12393 South Gateway Park Place Suite 600, Draper, UT 84020 (801) 495-2200 FAX (801) 495-0280 Configuration Control Document Table of Contents Keyword Table .................................................................................................................. 4 Scope ................................................................................................................................ 6 Notations .......................................................................................................................... 6 Reader Command Overview ............................................................................................. 6 4.1 Configuration Command Architecture ........................................................................................ 6 4.2 Command Format ....................................................................................................................... 7 4.3 Supported Commands ................................................................................................................. 8 4.3.1 <CF> – Configuration Manager ......................................................................................................
    [Show full text]
  • Keyboard Scan Code Specification
    Windows Platform Design Notes Designing Hardware for the Microsoft® Windows® Family of Operating Systems Keyboard Scan Code Specification Abstract: This specification details the PS/2 Scan Codes and USB Usage Tables that are validated for compliance to the Microsoft® Windows® Logo Program testing standard. This document details the alternative make and break PS/2 scan code and USB code response for the Windows Logo Key and Application Keys, plus Advanced Configuration and Power Interface (ACPI) power controls. This specification was previous published, with the same content, as “Windows Hardware Quality Labs Keyboard Specification” and also referred to as “Windows Keys Specification” and “New Keys Specification.” Revision 1.3a — March 16, 2000 Disclaimer: The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented. This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. Microsoft Corporation may have patents or pending patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. The furnishing of this document does not give you any license to the patents, trademarks, copyrights, or other intellectual property rights except as expressly provided in any written license agreement from Microsoft Corporation. Microsoft does not make any representation or warranty regarding specifications in this document or any product or item developed based on these specifications.
    [Show full text]
  • Hand-Held Remote Keypad for Ibm Pc-At
    HAND-HELD REMOTE KEYPAD FOR IBM PC-AT PROJECT REPORT Submitted by G.RAJAJI K.RAJESH KANNAN N.UDAYA KUMAR T.N.C.VENKATA RANGAN GUIDE Mr.C.S.MOHAN RAM, M.E Lecturer Department of Electronics and Communication Engineering. In partial fulfilment of the requirements for the award of Degree of Bachelor of Engineering Department of Electronics and Communication Engineering. SRI VENKATESWARA COLLEGE OF ENGINEERING PENNALUR, SRIPERUMBUDUR - 602 105. MARCH 1996 ACKNOWLEDGEMENTS From the bottom of our heart we express our gratitude and thanks to Mr. R.Arvind, Freelance Inventor who supported us morally during our rough times and to Mr. Rajagopal P.Sarathy of Binghamton, U.S.A, who sent us the components from abroad. We also thank our Guide, Mr. C.S. Mohan Ram, Lecturer, for his support time and again. Our grateful thanks are also felt to Prof. R. Ramachandran, Head of our Department and the entire teaching and Non-teaching staff of our department, who have been with us always as a constant source of inspiration for our success. CONTENTS Synopsis 1 Design Goals 2 Infra Red Remote Control Basics 3 Development Platform 7 Technical Requirement s 8 Hardware: Hand-Held Remote Keypad 9 Inside Out 13 Software: Hand-Held Remote Keypad 47 Problems Faced 54 Applications 55 Bibliography 56 Appendix A : IR Sensor Technical Specifications Appendix B : Philips Remote Transmitter Specifications Appendix C : Photometric Terminologies Appendix D : How The 8086 Uses I/O Ports Appendix E : Interrupt And 80x86 Family SYNOPSIS Computers are now in our living rooms, the familiar sight here is a remote control used for Audio and Video Systems, and our project idea stems from here.
    [Show full text]
  • Quickstart Winprogrammer - May 20 2020 Page 1/27
    PrehKeyTec GmbH Technical Support Scheinbergweg 10 97638 Mellrichstadt - Germany email: [email protected] Web: http://support.prehkeytec.com Quickstart manual "Programming with the WinProgrammer" This Quickstart manual shall show you the usage of the WinProgrammer and the basics of programming your PrehKeyTec devices using a simple example. First of all, install the WinProgrammer and also the keyboard drivers, if necessary. Please carefully read the important notes in the ReadMe file. Special themes about "advanced" programming you can find in the annex of this manual and also in the WinProgrammer's online help. If you have further problems when creating your keytable, our support team will certainly be able to help you. The best is to describe your problem in an email – and please send your keytable (MWF file) along with this email. Let' start... Figure 1 In the dialogue Keyboard Type you configure some basic keyboard settings: 1. Select keyboard group: The keyboard layouts are grouped on the register tabs Alpha, Numeric, Modules and OEM 2. Select your keyboard type: In our example we use a MCI 128, other layouts as appropriate. 3. Keyboard language and CapsLock behaviour: This setting must match the operating system's configuration on the target computer. Continue by pressing OK. Additional Information: For each type you will see an example picture. Additionally the selected keytable template will be displayed on the Desktop as a preview. For other countries, please see Language translation settings – MultiLanguage mode on page 12. Activate option OPOS / JavaPOS, if you intend to use our API or OPOS / JavaPOS services. This causes the modules MSR and keylock to be configured correctly.
    [Show full text]
  • RS50 Mobile Computer Android™ 6.0, Marshmallow
    RS50 Mobile Computer Android™ 6.0, Marshmallow Version 1.01 RS50 Mobile Computer Copyright © 2017 CIPHERLAB CO., LTD. All rights reserved The software contains proprietary information of its owner; it is provided under a license agreement containing restrictions on use and disclosure and is also protected by copyright law. Reverse engineering of the software is prohibited. Due to continued product development, this information may change without notice. The information and intellectual property contained herein is confidential between the owner and the client and remains the exclusive property of the owner. If having any problems in the documentation, please report them to us in writing. The owner does not warrant that this document is error-free. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise without the prior written permission of the owner. For product consultancy and technical support, please contact the local sales representative. Also, visit our website for more information. All brand, logo, product and service, and trademark names are the property of their registered owners. Google, Google Play, Android and other marks are trademarks of Google Inc. The editorial use of these names is for identification as well as to the benefit of the owners, with no intention of infringement. CIPHERLAB logo is a registered trademark of CIPHERLAB CO., LTD.. All other brands, products and services, and trademark names are the property of their registered owners. The editorial use of these names is for identification as well as to the benefit of the owners, with no intention of infringement.
    [Show full text]
  • Programming Menu SCANTEAM 2380 Programming Menu NOTES
    Programming Menu SCANTEAM 2380 Programming Menu NOTES Please Note: The programming features on each menu page are not supported in all models and software revisions of the SCANTEAM 2380. Notations are included if the feature is available only in certain models. Contact your Welch Allyn Sales Coordinator for the revision/model to fit your needs. The SAMPLE BAR CODES page (near the end of the programming menu) contains bar code symbols that you may use to verify that you have programmed your SCANTEAM 2380 correctly. Disclaimer Welch Allyn reserves the right to make changes in specifications and other information contained in this document without prior notice, and the reader should in all cases consult Welch Allyn to determine whether any such changes have been made. The information in this publication does not represent a commitment on the part of Welch Allyn. Welch Allyn shall not be liable for technical or editorial errors or omissions contained herein; nor for incidental or consequential damages resulting from the furnishing, performance, or use of this material. This document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated into another language without the prior written consent of Welch Allyn, Incorporated. E 1999 Welch Allyn, Inc. All rights reserved. Data Collection Web Addresss: http://dcd.welchallyn.com SCANTEAM 2380/PM Programming Menu STATUS CHECK SHOW FIRMWARE REVISION LEVEL Scan the bar code below to display the revision level of the SCANTEAM 2380 firmware. For example: After scanning the Firmware Revision Level bar code, “(C) WA93C” is output to the terminal/host device.
    [Show full text]
  • Keyboard-And-Console-HOWTO.Pdf
    The Linux keyboard and console HOWTO The Linux keyboard and console HOWTO Table of Contents The Linux keyboard and console HOWTO......................................................................................................1 Andries Brouwer, aeb@cwi.nl.................................................................................................................1 1. Useful programs...................................................................................................................................1 2. Keyboard generalities..........................................................................................................................1 3. Console generalities.............................................................................................................................1 4. Resetting your terminal........................................................................................................................1 5. Delete and Backspace..........................................................................................................................1 6. The console character sets...................................................................................................................1 7. Console switching................................................................................................................................1 8. Ctrl−Alt−Del and other special key combinations..............................................................................2 9. How to get out
    [Show full text]
  • Assign Macro Or Function to Keys on Your Keyboard
    Assign Macro Or Function To Keys On Your Keyboard Tinkliest Berkley wrest her sacrariums so aslant that Gere anodized very impetuously. Cnemial Mike reorganizing censurably. Which Gunther slays so drudgingly that Virgie aggrieved her baudekins? If most have they broken key on to laptop keyboard would just rent to surface more of. In the Macro dialog box light the macro name sign will assign hotkey and either click the Options button 3 In the Macro Options dialog box means a shortcut key. The macro keys on the keyboard and the functions will be performed. In the Function list box say the command to string you want collect a. Other Ways Of Navigating The Excel Interface Using The Keyboard Macro. Demand searches all keys that were minimized which sections that being uploaded file from another macro to assign function your keyboard or keys on your keys are only available through a key combination with these assignments spring from. RAZER SYNAPSE 3 FOR KEYBOARDS. Assigning Function Keys to Shortcuts CAL Business Solutions. On Linux other function keys may be assigned by which window manager. Function Keys in Word 97-2016 Charles Kenyon. Assign a Macro to see Shape you Use a Shortcut Sequence. Assign PMDG 777X rotary knob functions to keypad or mouse keys it is. This defines two different leg angles and power, to specified macro to assign function your keys or on keyboard and correct van. Unfortunately not mortgage common situation in Excel define a keyboard hot-key assigned to multiply by. 55 How the Record Keystrokes and install the kitchen Back.
    [Show full text]
  • The PC Keyboard Chapter 20
    The PC Keyboard Chapter 20 The PC’s keyboard is the primary human input device on the system. Although it seems rather mun- dane, the keyboard is the primary input device for most software, so learning how to program the key- board properly is very important to application developers. IBM and countless keyboard manufacturers have produced numerous keyboards for PCs and com- patibles. Most modern keyboards provide at least 101 different keys and are reasonably compatible with the IBM PC/AT 101 Key Enhanced Keyboard. Those that do provide extra keys generally program those keys to emit a sequence of other keystrokes or allow the user to program a sequence of keystrokes on the extra keys. Since the 101 key keyboard is ubiquitous, we will assume its use in this chapter. When IBM first developed the PC, they used a very simple interface between the keyboard and the computer. When IBM introduced the PC/AT, they completely redesigned the keyboard interface. Since the introduction of the PC/AT, almost every keyboard has conformed to the PC/AT standard. Even when IBM introduced the PS/2 systems, the changes to the keyboard interface were minor and upwards compatible with the PC/AT design. Therefore, this chapter will also limit its attention to PC/AT compatible devices since so few PC/XT keyboards and systems are still in use. There are five main components to the keyboard we will consider in this chapter Ð basic keyboard information, the DOS interface, the BIOS interface, the int 9 keyboard interrupt service routine, and the hardware interface to the keyboard.
    [Show full text]
  • S.No Practical Name Date Remark to Study Motherboard. Study Of
    S.No Practical Name Date Remark 1. To study motherboard. 2. Study of microprocessor. 3. To study SMPS and UPS. 4. To study the CD-ROM and DVD-ROM. 5. To study working of keyboard and mouse. 6. To study different ports and slots. 7. To study various types of Cables & Connectors. 8. Study of monitor. 9. To study different types of printers. 10. To assemble a PC. 11. To study Floppy Disk Drive. Practical-1 Aim:-To study motherboard. Motherboard: The main circuit board of a microcomputer. The motherboard contains the connectors for attaching additional boards. Typically, the motherboard contains the CPU, BIOS, memory, mass storage interfaces, serial and parallel ports, expansion slots, and all the controllers required to control standard peripheral devices, such as the display screen, keyboard, and disk drive. Collectively, all these chips that reside on the motherboard are known as the motherboard's chipset. The motherboard is the primary component of the entire system. In addition to hardware the motherboard also contains some software .The system ROM actually contains three small but very critical programs these are post, the BIOS and the setup program. This device provides, even the C.P.U is enabled to function. In addition to hardware the motherboard also contain some software. The following is the picture of motherboard: 1. Mouse & keyboard: Keyboard Connectors are two types basically. All PCs have a Key board port connected directly to the motherboard. The oldest, but still quite common type, is a special DIN, and most PCs until recently retained this style connector. The AT-style keyboard connector is quickly disappearing, being replaced by the smaller mini DIN PS/2-style keyboard connector.
    [Show full text]
  • Gryphon™ Family General Purpose Handheld Linear Imager Or Laser Bar Code Readers Gryphon I GD4100/GM4100 Gryphon BT4100/ L GD4300
    Gryphon™ Family General Purpose Handheld Linear Imager or Laser Bar Code Readers Gryphon I GD4100/GM4100 Gryphon BT4100/ L GD4300 Product Reference Guide Datalogic ADC, Inc. 959 Terry Street Eugene, OR 97402 USA Telephone: (541) 683-5700 Fax: (541) 345-7140 ©2011-2016 Datalogic, Inc. An Unpublished Work - All rights reserved. No part of the contents of this documentation or the procedures described therein may be reproduced or transmitted in any form or by any means without prior written permission of Datalogic ADC, Inc. or its subsidiaries or affiliates ("Datalogic" or “Datalogic ADC”). Owners of Datalogic products are hereby granted a non- exclusive, revocable license to reproduce and transmit this documentation for the pur- chaser's own internal business purposes. Purchaser shall not remove or alter any propri- etary notices, including copyright notices, contained in this documentation and shall ensure that all notices appear on any reproductions of the documentation. Should future revisions of this manual be published, you can acquire printed versions by contacting your Datalogic representative. Electronic versions may either be downloadable from the Datalogic website (www.datalogic.com) or provided on appropriate media. If you visit our website and would like to make comments or suggestions about this or other Dat- alogic publications, please let us know via the "Contact Datalogic" page. Disclaimer Datalogic has taken reasonable measures to provide information in this manual that is complete and accurate, however, Datalogic reserves the right to change any specification at any time without prior notice. Datalogic and the Datalogic logo are registered trademarks of Datalogic S.p.A.
    [Show full text]
  • Darshan Institute of Engineering & Technology for Diploma Studies
    Darshan Institute of Engineering & Technology for Diploma Studies Unit-III 1. What is Keyboard? How it works? A keyboard is the set of typewriter-like keys that enables you to enter data into a computer. Computer keyboards are similar to electric-typewriter keyboards but contain additional keys. The keys on computer keyboards are often classified as follows: o Alphanumeric keys– letters and numbers o Punctuation keys – comma, period, semicolon, and so on. o Special keys – function keys, control keys, arrow keys, Caps Lock key, and so on. The processor in the keyboard analyzes the key matrix and determines what characters to send to the computer. It maintains these characters in its memory buffer and then sends the data. Many keyboards connect to the computer through a cable with a PS/2 or USB (Universal Serial Bus) connector. Regardless of which type of connector is used, the cable must carry power to the keyboard, and it must carry signals from the keyboard back to the computer. Wireless keyboards, on the other hand, connect to the computer through infrared (IR), radio frequency (RF) or Bluetooth connections. IR and RF connections are similar to what you'd find in a remote control. Regardless of which sort of signal they use, wireless keyboards require a receiver, either built in or plugged in to the USB port, to communicate with the computer. Since they don't have a physical connection to the computer, wireless keyboards have an AC power connection or use batteries for power. Whether it's through a cable or wireless, the signal from the keyboard is monitored by the computer's keyboard controller.
    [Show full text]