Programming and File Management Part 2

Slides:



Advertisements
Similar presentations
Introduction to Programming
Advertisements

Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Lesson Topic: Handshaking Process -narrated version-
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
P1PMF Split1 QBASIC. P1PMF Split2QBasic Command Prompt Will launch the emulator DOS operating system? Press Alt + Enter to display the widescreen.
Linking A quick overview of how to configure PulseWorx UPB devices to control each other.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
MACREX Indexing Software. Getting Started: Basic Basics.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
Programming  Write a program to control the robot  Work closely with mechanical and electrical teams  Important to know what hardware will be.
Autonomy using Encoders Intro to Robotics. Goal Our new task is to navigate a labyrinth. But this time we will NOT use motor commands in conjunction with.
Week 2: Primitive Data Types 1.  Programming in Java  Everything goes inside a class  The main() method is the starting point for executing instructions.
1 Student Hands On Training I (2009) Camera Firmware Modifications Camera Firmware Modifications.
Understanding the Mainline Logical Flow Through a Program (continued)
CODING Research Data Management. Research Data Management Coding When writing software or analytical code it is important that others and your future.
Adding Automated Functionality to Office Applications.
Menu System ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics
Automating Tasks with Macros. Macro Essentials  A macro is a list of actions that happen when you run the macro.  Creating a Macro: − Choose Create.
Testbed: Exercises.
Today:. Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #06 Gateway To Space ASEN / ASTR 2500 Class #06 T-53.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Power Point EDU 271 Microsoft PowerPoint is a powerful tool to create professional looking presentations and slide shows. PowerPoint allows you to construct.
Workflow Manager and General Tuning Tips. Topics to discuss… Working with Workflows Working with Tasks General Tuning Tips.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Fanuc and TPP Basics Sebastian van Delden USC Upstate
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
COMPUTER PROGRAMMING. Control Structures A program is usually not limited to a linear sequence of instructions. During its process it may repeat code.
IT253: Computer Organization Lecture 3: Memory and Bit Operations Tonga Institute of Higher Education.
Microsoft ® Office SharePoint ® Server 2007 Training Excel Services II: Requirements, recommendations, and permissions [Your company name] presents:
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Introduction to Programming with RAPTOR
Computer Systems Week 7: Looping and Input/Output with 3-bit Alma Whitfield.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
1 Program Input Software Design Chapter 4. 2 You Will Want to Know... Prompting for and reading values into a program. Accessing data from a file. What.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
Vex Robotics Program four: reversing and turning.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
1 Colorado Space Grant Consortium Gateway To Space ASEN / ASTR 2500 Class #13 Gateway To Space ASEN / ASTR 2500 Class #13.
1 i-Pendant for the R-J3iC & R-30iA Controllers ArcTool Version (GMAW) i Pendant New.
1 CA202 Spreadsheet Application Automating Repetitive Tasks with Macros Lecture # 12 Dammam Community College.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Foundation course in programming of ABB robots Security functions PendantManipulator Control cabinets TCP (Tool Center Point) Work object Jogging Program.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
CNC Motion BenchMill 6000 Machining Center
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
Advanced EasyC Jim Cline July 20-21, 2017.
Topics Introduction to Repetition Structures
FlowArm PLTW Programming
Scripts & Functions Scripts and functions are contained in .m-files
Introduction to Events
IENG 475: Computer-Controlled Manufacturing Systems
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Introduction to Object-Oriented Programming
Loops and Switches Pre-Quiz
An Introduction to VEX IQ Programming with Modkit
Iteration: Beyond the Basic PERFORM
Python programming exercise
Spreadsheets, Modelling & Databases
Boolean Expressions to Make Comparisons
Basic Concepts of Algorithm
Introduction to Industrial Robot Programming
Lab 8: GUI testing Software Testing LTAT
Getting started with LEGO EV3 Mindstorms software
IENG 475: Computer-Controlled Manufacturing Systems
Presentation transcript:

Programming and File Management Part 2 Robot Construction Programming and File Management Part 2

Subroutines Subroutines are a sequence of instructions grouped together to perform an action that the main program accesses for repeated use. The purpose of using subroutines is to reduce the lines of code in a program and make it easier to write programs. Examples of subroutines are opening or closing grippers, a tooling change, alarm response actions, and other actions that support the operation of the robot.

Be sure to create subroutines as a global function instead of a local function. Global functions are variables, subroutines, and other code or data accessible by any program that you create on the robot. Local function means that only one program can access the data.

Some systems call global subroutines macros. A macro is a single instruction or specified button used to generate a sequence of instructions or other outputs. Determine what tasks should be turned into subroutines before writing the program to save time and effort.

Writing the Program You must know how your particular robot works, how the controller organizes information, and how to build a program for the specific robot that you are using. Common options that you need to be aware of are naming the program, determining the program type, designating the frame, picking the proper tooling, and designating offset tables to reference.

The reference frame defines the zero point for the work envelope and is the point from which the robot defines all other positions. If you change the reference frame after creating the program and saving points, there is a high probability that your taught points will change. When working with a system that has multiple tooling, make sure to select the proper tooling or tooling group.

Common logic commands: And is a logical function that requires two or more separate events or data states to occur before the output of the function occurs. Or is a logic filter where at least one, or more than one, of two or more input events must be true for the output to occur. Nor is a logic sorting filter in which all input conditions must be false before the output occurs. Xor/Exclusive Or is a logic filter where the output is only activated when any one of the inputs is true, but not more than one.

Not is the opposite of the “And” command, in that all the input conditions must be false before the output is triggered. NAnd is the opposite of the “And” command, in that all the input conditions must be false before the output is true. If Then is an advanced logic filter that allows you to set a complex set of conditions to occur before a desired output function happens.

Jump to advances the reading of the program to the designated line, avoiding the execution of the lines skipped. End stops the scanning of the program and triggers the system’s normal end-of-program responses. Call program/subroutine calls up subroutines or other programs to help reduce the lines of code in a program.

Wait creates timed pauses in the program or has the robot wait for a specified set of conditions before continuing with programmed actions. Math functions let you add, subtract, multiply, and divide in varying levels of complexity for data manipulation.

For long programs you should save every 10 minutes The specifics of creating a program, saving points, setting the motion types, creating the logic filters, and calling subroutines and all the other bits and pieces that make up a program depend on the system you are working with.

Testing and Verifying Once you complete your program, you must test it no matter how sure you are that nothing will go wrong. For most systems, manual testing requires you to hold the dead man switch on the teach pendant so you can stop the system immediately giving you the control to keep the robot from crashing or damaging parts. Another good thing is that the system runs at half its normal speed giving the operator a chance to respond if something goes wrong.

In step mode, the robot advances through the program one line at a time and requires you to press a button on the teach pendant keypad before it reads the next line of the program and responds. Continuous mode is a manual mode in which a program runs until completed or a specific button is released.

Some motions in your program cannot happen in the space allotted if the robot moves slowly. Most systems will give you a warning alarm; once you accept or hit whatever is required to authorize the movement, the next movement that the robot makes will be at or near full speed. This is often the case when you make a radical change in the tooling orientation between points or other moves where the axes involved have to turn a great distance.

If you hit yes and do not keep in mind what is about to happen, you could get a nasty surprise, especially if you are close to the robot when this move happens. Anytime you get an alarm on the robot, take the time to read it and determine what the alarm is telling you so that you don’t crash the robot, damage parts, have near misses, and mess up your program by hurrying and ignoring what the alarm said.

Normal Operation When running a new or edited program for the first time in automatic mode, make sure that you watch the robot go through the program a couple of times before you consider it ready to run with limited supervision.

File Maintenance Your programs should be saved in some form of backup such as a Flash Drive, SD card, hard drive, or other storage medium to keep them from being deleted.