210 likes | 228 Views
Lab 6: ADEPT Windows OFF LINE Editor. Lab 6: ADEPT Windows OFF LINE Editor. Objectives: 1. Create a pick and place program using the Adept Windows Off line editor 2. Edit a pick and place program using the Notepad or Microsoft word 3. Store the program in a disk file.
E N D
Lab 6: ADEPT Windows OFF LINE Editor Objectives: 1. Create a pick and place program using the Adept Windows Off line editor 2. Edit a pick and place program using the Notepad or Microsoft word 3. Store the program in a disk file. 4. Load into system memory the program and location file. 5. Execute a program in single step mode 6. Execute a program in continuous mode.
Technical Information: The Adept Windows Off-line Editor (AWOL) is a Microsoft Windows based program that emulates the V+ SEE editor. AWOL performs the same syntax checking as the SEE editor. Programs created in the SEE editor can be edited by AWOL, and programs created by AWOL are ready for loading and execution on an Adept controller. AWOL provides additional program management features not available to the SEE editor, such as direct access to Adept’s electronic documentation. AdeptWindows Offline Editor allows you to write and edit V+ programs on your PC. The editor is a comprehensive Program development package that runs under Windows. It is assumed that you are familiar with the Microsoft Windows environment and basic V+ programming. You do not have to be connected to the Adept controller to use the AdeptWindows Offline Editor.
ADEPT Windows Off Line Editor software provides: Automatic syntax checking Syntax errors are trapped and a "?" (question mark without quotes) is inserted at the beginning of the line containing the error. Automatic keyword expansion. For example, "ena po" automatically expands to ENABLE POWER. Toolbars with icons that provide shortcuts for common operations These toolbars contain icons for program editing (cut, copy, paste, etc.), inserting looping/branching structures (FOR, CASE, IF, WHILE, DO), and inserting motion program instructions (MOVE, APPRO,DEPART, etc.). Automatic dynamic indentation for control constructs Customized header templates A default header template is supplied that can be automatically inserted after a PROGRAM declaration. The header template can be customized for your application. Menus for CALL Tree listings and Keyword listings
ADEPT Windows Off Line Editor software provides: (continued) Color−coded variable names and instructions. All variable names and instructions are color−coded to remind you of their use. Separate editing windows. Multiple files may be opened in separate windows, allowing you to cut and paste information between them. Global Find and Replace. These commands can be applied to entire files or to just one program. Retrieve, Goto, Cut, Paste, etc. These commands allow you to share information and navigate between programs. Project management tools. This set of tools allows you to maintain V+ files on the PC. Online help system. The online help system displays proper keyword syntax and provides online viewing of the keyword description/details from the appropriate reference guide.
Starting the Offline Editor To start the AdeptWindows Offline Editor: Start => Programs => Adept => AdeptWindows Offline Editor
Using the Toolbars All of the features of the editor can be accessed using the main menu bar or by clicking on a toolbar icon for the desired feature. See the Offline Editor Menus for details on the pull−down menus.
Editing Toolbar Icons The Editing Toolbar icons provide a shortcut for common program editing operations (cut, copy, paste, etc.)
Loop/Branch Toolbar Icons The Loop/Branch Toolbar icons provide a shortcut for inserting looping and branching structures into your programs.
Motion Toolbar Icons The Motion Toolbar icons provide a shortcut for inserting motion program instructions into your program.
The Offline Editor Menus The AdeptWindows Offline Editor has the following menus. · File · Edit · Search · Project · Insert · Tools · Window · Help For a detailed explanation of the menu items listed above see the AdeptWindows User’s Guide. Pages 65-104
Find and Replace The Find option allows you to quickly locate a specified text string. To use the Find option: Search => Find... The following dialog box is displayed Use the Find What field to specify the text to search for. You can match the specified case by selecting Match Case. Choose Find Prev. to individually find each occurrence of the specified text. Choose Find Next to individually find each occurrence of the specified text. Choose Cancel to clear all entries and close the dialog box.
Find and Replace The Replace option allows you to quickly locate a specified text string and then replace it with a different (specified) text string. To use the Replace option: Search => Replace... The following dialog box is displayed:
Create a New Program: To create a new program file, choose the file icon. The following dialog box is displayed: Enter the new program name in the New Program Name field. (The disk file and the program use this name.) The program name must conform to V+ file name restrictions. ·Select Add Program Header to insert a program header. Choose OK to save all entries and close the dialog box, or choose Cancel to clear all entries and close the dialog box.
Opening an Existing V+ Program File • To open an existing program file, choose the open folder. The following dialog box is displayed: • Use the Look in field to locate the drive/directory where the file is stored. • Double−click the desired file name. You also can enter the desired file name in the File name: field. • Use the Files of type field to control the file type(s) displayed in window. • Choose Open to display the file. Choose Cancel to clear all entries and • close the dialog box.
Working with Program Variables The AdeptWindows Offline Editor includes several useful tools for working with program variables. To display the properties of any variable in your V+ program: 1. Place the cursor on the variable. 2. Press the right mouse button. The following menu is displayed: 3. Choose Display variable properties. The variable’s properties are displayed in a window. 4. Choose 	OK to close the window.
Working With Projects: • A project is a tool to manage the V+ files that you create and store on the PC. This tool creates a list of the files you want to keep together as a “project”. When you build your project into the source files for transfer to the Adept controller, the project file is used to locate all of the different files. In addition to V+ source code, you can also attach documentation files (such as Microsoft Word, text files, or other file types), spreadsheet files, project management files, and AIM database files (archived on the PC’s hard drive) to a project. • When you build a project, the AdeptWindows Offline Editor locates the source files and transfers them from the source directories to the target directories. For more information on working with a project see pages 77-81 in the AdeptWindows User’s Guide which covers the following: • Creating a New Project • Opening an Existing Project • Getting Information on the Current Project • Modifying Project Files • Modifying Project File Attributes • Building a Project
Printing and Documentation: To make creation of program documentation easier, the AdeptWindows Offline Editor allows you to print programs and CALL trees. Print and Print Preview options are found on the File menu. See the Windows online help system for more information on using these options. Note: The Print and Print Preview options use the standard Windows printer interface.
Lab Procedure: • Using the ADEPT Off Line Editor • 1. Create a pick and place program described below using the Adept Windows Off line editor. • NOTE: Be very accurate creating the Location File; go for accuracy) • Load into system memory the program and location file. • Run the program Execute in single step mode (XSTEP program_Name) • Execute a program in continuous mode. (ExcuteProgram_Name) with no blocks in place. • Execute a program in continuous mode. (Execute Program_Name) with the • blocks in place.