Home
AdeptWindows User`s Guide Version 1.0
Contents
1. 78 C 6 Menu Events siesta pu ER p RE E xxv pa xe Y na 79 Gel WIN SIZE ie P PEE aie ee ee ae ee ae ME 79 C 8 Example V Program 79 AdeptWindows User s Guide Rev A 77 Appendix C Using Existing V Routines with AdeptWindows C 1 Introduction This appendix describes the changes required when upgrading existing V version 11 x routines for use with AdeptWindows and V version 12 0 C 2 The BUFFERED Keyword FOPEN lun Iconname ICON BUFFERED The BUFFERED keyword may appear in the FOPEN instruction when used for creating new icons It causes the subseguent WRITEs to the icon to be buffered to 512 byte blocks The syntax for WRITE remains unchanged C 3 The EVENT CONNECT Keyword FSET lun EVENT CONNECT The new EVENT CONNECT keyword enables connect and disconnect event notification The event values are 20 Connected to the PC front end 21 Disconnected from the PC front end C 4 The ID Keyword ID 11 1 In V version 12 0 the above code returns a bit mask value The first bit and the last bit apply to AdeptWindows applications For example if the above command returns a value of H1B on a system that is running AdeptWindows this hex value translates to the binary value 11011 Using graphics Monitor is displayed in a graphics window not used Controller has SYSIO Controller has a PC front end u
2. 16 Training Information 16 Within Europe s ya ta vem a e aa Ea 16 FLANCOS UA rex e a AES EP EE RR E TB Ed 16 Outside Continental United States or Europe 16 Adept Bulletin Board Service 16 Adept Web Pi UA KIA 16 1 AdeptWindows PC Display Interface 17 1 1 MA WA AA IA n 18 1 2 Starting AdeptWindows PC 18 Connecting Through Ethernet 18 Connecting Through a COMPort 19 The AdeptWindows PC Main Window 20 1 3 Disconnecting From the Adept Controller 21 1 4 Exiting AdeptWindows PC 21 2 AdeptWindows DDE 23 2 1 Introduction nh 24 2 2 Starting AdeptWindows DDE 24 From the Windows 95 Program Manager 24 From the MS DOS Prompt 25 2 3 Defining Modifying or Deleting a V Host 26 2 4 Connecting to the Adept Controller 27 2 5 Disconnecting From the Adept Controller 27 2 6 Running the DDE Driver on the V Controller 28 2 7 Specifying DDE Item Names 28 2 8 Hot a
3. 78 C 5 The MENU Keyword 78 C 6 MenuiEVentS esca pe che POG EROR als Pekka eek LG 79 C 7 Window Size 79 C 8 Example V Program 79 D Troubleshooting 83 DT Introduction i lia 84 D 2 DDE EROMrs e Te pd QR Sw ut eR ha E ene engin raed 84 Connecting to Hosts ath pes peau feds Pek Ped TAi ik 84 Using Microsoft Excel lle 84 D 3 Energy Star Compliant Systems 84 D 4 Ethernet TCP IP 85 Connecting to an Adept MV Controller Through TCP IP 85 NetManage s TCP AP cocina Rese ate sim dados 85 D 5 PC or Adept MV Controller Problems 85 PC or Windows 95 Program Problems 85 Adept MV Controller Problems 85 D 6 SYSIO DIP Switches iss hada RR RE Ke e RE Re Y Rn 85 D 7 TIFF Image Export sees eee rn eth eee ed 86 DS V El Censo no ose re me A AAA 86 loo 2 i5 rusa 63 md E age oad Rr Eu YA JA ol Jy E A d ae es S 87 AdeptWindows User s Guide Rev A 7 Table of Contents Figure 1 Figure 2 Figure 1 1 Figure 1 2 Figure 1 3 Figure 1 4 Figure 1 5 Figure 1 6 Figure 2 1 Figure 2 2 Figure 2 3 Figure 2 4 Figure 2 5 Figure 2 6 Figure 2 7 Figure 2 8 Figure 2 9 Figure 2 10 Figure 3 1 Fig
4. 67 DDE Enable Record 3 ipsi deed net ada ere deis 69 AdeptWindows User s Guide Rev A Table of Contents List of Tables Table 1 Software Reguirements 13 Table 2 Manuals You Should Read or Review 14 Table 3 Manuals Used for Custom Programming 14 AdeptWindows User s Guide Rev A 9 Introduction What Is AdeptWindows AdeptWindows is an application suite for the personal computer PC that provides new capabilities for the Adept controller and an interface to the PC The AdeptWindows PC component enables a PC to display the real time Graphical User Interface GUI for an Adept controller The AdeptWindows PC solution allows a PC connected to the controller using either Ethernet or a COM serial port to display the graphics previously output by the VME Graphics Board VGB to a dedicated display monitor See Figure 1 Serial Adept PC MV Controller Figure 1 Connections Between PC and Adept MV Controller s The AdeptWindows DDE product provides a standard Dynamic Data Exchange DDE server application to allow communication with other DDE capable applications running on the PC e g WonderWare Excel AdeptWindows Offline Editor is an upgrade to our popular offline editor that provides the system administrator customizer with the capability to edit and manage disk files on the PC AdeptWindows represents the f
5. 67 Pinging the Controller 68 Pinding the PG ssh aedes te Ein a KAN NG 68 A 5 Installing DDE With AIM 68 A 6 Other Considerations 69 AdeptWindows User s Guide Rev A 61 Appendix A Installing AdeptWindows A 1 Installing the AdeptWindows Software The software for the PC is distributed on a single diskette The disk contains an install program to properly install the software on the PC To install the softwa re 1 From the Start menu bar in Windows 95 Start Settings Control Panel gt Add Remove Programs The following dialog box is displayed NOTE The contents of your dialog box may be different depending on the Windows 95 applications that are installed on your system Add Remove Programs Properties 2 x Install Uninstall windows Setup Startup Disk To install a new program from a floppy disk or CD ROM 3 drive click Install pr d C The following software can be automatically removed by c Windows To remove a program or to modify its installed components select it from the list and click Add Remove HiJaak Paint Figure A 1 Windows 95 Program Installation Dialog Box HiJaak Graphics Suite 95 2 Choose Install and insert the AdeptWindows Installation Disk into the 3 5 floppy drive typically drive A of the PC 3 Choose
6. e tadentisample pro D ox O c O aa O vasan O Remove O i Q Figure 3 11 Project Files Dialog Box This item contains a list of the files in the current project Choose OK to save all changes and close the dialog box Choose Cancel to close the dialog box prior to making any changes Choose Add to add more files to the current project Choose Add All to add all files in the working directory to the current project ooooce Choose Remove to remove the selected file from the current project NOTE The file name is removed from the project file list The file is not deleted from the hard disk Choose Edit to edit the selected file Choose Properties to display the File Attribute dialog box for the selected file See Figure 3 12 for details Modifying Project File Attributes The File Attributes dialog box allows you to change the attributes Source Destination File Type and Target Directory for the file selected on the Project File dialog box To display the File Attributes dialog box Project Files select a file name Properties AdeptWindows User s Guide Rev A 53 Chapter 3 AdeptWindows Offline Editor The following dialog box is displayed File Attributes x O Name c adeptisample pro Read Only Source File Type Destination File Type C Vs Source Co
7. AdeptWindows User s Guide AdeptWindows FL adept technology inc ada Version 1 0 AdeptWindows User s Guide LL AdeptWindows PC File Adept AdeptWindows FL adept technology inc ade Version 1 0 Part Number 00962 00710 Rev A March 1997 ccr NG 150 Rose Orchard Way San Jose CA 95134 USA Phone 408 432 0888 Fax 408 432 8707 CCE Otto Hahn Strasse 23 44227 Dortmund Germany Phone 49 231 75 89 40 Fax 49 231 75 89 450 adept 41 rue du Saule Trapu 91300 Massy France Phone 33 1 69 19 16 16 Fax 33 1 69 32 04 62 technology inc 1 2 Aza Nakahara Mitsuya Cho Toyohashi Aichi Ken 441 31 Japan 81 532 65 2391 Fax 81 532 65 2390 The information contained herein is the property of Adept Technology Inc and shall not be reproduced in whole or in part without prior written approval of Adept Technology Inc The information herein is subject to change without notice and should not be con stud asa T DN by Adept Technology Inc This manual is periodically reviewed and revised Adept Technology Inc assumes no responsibility for any errors or omissions in this doc ument Critical evaluation of this manual by the user is welcomed Your comments assist us in preparation of future documentation A form is provided at the back of the book for submitting your comments Copyright O 1997 by Adept Technology Inc All rights reserved The Adept logo is a regis
8. This appendix is designed to help you resolve problems that you may encounter when using AdeptWindows D 2 DDE Errors You may receive DDE errors in the following situations Connecting to a host Using DDE in Microsoft Excel Connecting to Host When connecting to a host the connection is typically made within several seconds If the Connect to Host dialog box and hourglass symbol continue to remain on the screen check the following The host must be correctly defined You can display the host information by double clicking the host name in the Connect to Host dialog box See section 2 4 on page 27 for details e AIM must be running on the Adept controller See section 2 6 on page 28 for details The AIM DDE Enabled option must be initialized If it is not you must turn it on and then restart AIM See section A 5 on page 68 for details Using Microsoft Excel Ifthe AdeptWindows DDE server is not running Microsoft Excel reports Remote data not accessible start application Adept exe Choose No and start up the AdeptWindows DDE server If the AdeptWindows DDE server is running check that the host name is correct in the Excel formula and that the named host is connected see section 2 4 on page 27 If the cell shows NAME it means the AdeptWindows DDE server does not support the item variable name Check the spelling of the item name Once Excel has established a connection with the A
9. Next program Windows should properly locate A SETUP EXE as the install 4 Choose Finish to complete the installation process 5 When the installation program asks for the serial number for the software enter the number provided with your AdeptWindows disk NOTE Do not confuse this with the password for the AdeptWindows license on the controller 62 AdepiWindows User s Guide Rev A Installing the AdeptWindows License By default the software is installed into the subdirectory C Adept AdeptWindows on the PC s hard drive You can specify a different directory if desired NOTE The Adept controller requires V version 12 0 or later to interface to AdeptWindows PC However V version 12 0 is not required for the other options See Table 1 on page 13 for the software requirements See Instructions for Adept Utility Programs for information on using CONFIG C to install a new operating system A 2 Installing the AdeptWindows License The AdeptWindows PC software also requires the installation of the AdeptWindows license on the Adept controller NOTE Without this license the controller recognizes the AdeptWindows PC interface However all AdeptWindows options are disabled To install the license on the Adept controller type the following at the Monitor prompt INSTALL password where password is the password for AdeptWindows on your controller NOTE Do not confuse this with the seri
10. See page 75 for a listing and descriptions of these menu options Additionally the Edit menu and icon bar includes a list of options such as Undo Cut Copy Paste etc that simplify program editing See page 74 for a listing and descriptions of these menu options 3 7 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 See page 54 for details Creating a New Project To create a new project File gt New Project The following dialog box is displayed Working Directory 1 scent Browse Project Name On Description S ample Project Oa Major p Minor p Version 6 OK version 12 0 Cancel Figure 3 9 New Project Dialog Box 50 AdeptWindows User s Guide Rev A Working With Projects O Enter the di
11. appears For an example of a static item 1 Start Microsoft Excel 2 Select any empty cell and type Adept Userl sysNcontroller serial number 3 Press the Enter key The cell displays the serial number of the Adept controller For an example of a dynamic item 1 Start Microsoft Excel 2 Select any empty cell and type Adept Userl sysNtime since boot 3 Press the Enter key The cell displays the time that has elapsed since the controller was booted Continue watching the screen to see the time update automatically NOTE The and characters are delimiters for the application name topic name and item name User1 represents a host name that you defined in the AdeptWindows DDE server See section 2 7 on page 28 for details on the item name format Reading and Writing Data Using a Microsoft Excel Macro The following example creates a Microsoft Excel macro that allows you to read and write data using DDE When this macro is executed it links to a specified DDE host and then displays a window that allows you to read from and write to various items on the Adept controller NOTE This example assumes that you are already familiar with Microsoft Excel and how to create macros for Excel Creating the Macro 1 Start Microsoft Excel 2 Copy the following code into the corresponding cell addresses on the worksheet 1 Microsoft Excel does not support writing data using DDE directly from a spreadsheet To write data
12. expression in place of dummy parameters 1 2 and 3 For example the item name sys switch robot 1 is defined as the V expression switch 41 42 In this example robot is the first argument and 1 is the second argument AIM variables are specified as aim module variable where module is the name of a loaded but not necessarily selected resource module and variable is the name of a Variable database record in that module If module is omitted as in aim variable the global Variable database is accessed 2 8 Hotand Cold Links A DDE client can ask for a data item to be accessed once and its value returned This access is called a cold link Alternatively the client can ask that a data item value be sent every time it changes This access is called a hot link To implement hot links the V DDE driver polls the values of hot link items periodically 28 AdeptWindows User s Guide Hev A Hot and Cold Links In the current implementation all sys items may have their polling time set in the BASEINI DB record All aim items in the Variable database allows you to set the polling time and control read write access for all AIM variables To minimize system overhead static data items such as controller serial number should have the polling time set to zero do not poll NOTE Evenif the polling interval is set to zero AIM variable values are always sent
13. 6 Creating and Editing a Program 47 Creating a New Program File 47 Opening an Existing Program File 48 Adding a New Program to an Existing Program File 49 The Editor Window sraa AR EAIA ARIEI II 49 3 7 Working With Projects 2 oossoo kkk k tees 50 Creating a New Project 50 Opening an Existing Project 51 Getting Information on the Current Project 51 Modifying Project Files sossun eee 52 Modifying Project File Attributes 53 Building a Pr jeti gt eaaa e aaa E A E a a 54 Listing and Renaming Program Files 55 3 8 Customizing the Programming Environment 56 The Standard Program Header 56 Customizing the Highlighting Colors 57 3 9 Creating CALL Tree and Keyword Listings 58 CALL Tree Listing 58 Keyword Listing 2 0 n k n nn In 58 3 10 Printing and Documentation 60 A Installing AdeptWindows 61 A 1 Installing the AdeptWindows Software 62 6 AdeptWindows User s Guide Rev A Table of Contents A 2 Installing the AdeptWindo
14. Ethernet 18 connecting through 18 connection for the PC and controller configuring the 64 connection setting upan 64 interface 12 EVENT CONNECT keyword 78 Events menu 79 Example Vt program 79 Examples DDE 35 Excel macro reading and writing data using a Microsoft 35 Microsoft 35 reading data using Microsoft 35 using Microsoft 84 Exchange Dynamic Data 24 Existing program file adding a new program to an 49 program file openingan 48 program openingan 48 project openingan 51 V routines 77 Exiting AdeptWindows PC 21 Expansion automatic keyword 42 Export TIFF image 86 F Features of the Offline Editor 42 File adding a new program to an existing program 49 attributes dialog box 54 attributes modifying project 53 creating a new program 47 open a program 48 opening an existing program 48 system network 21 Transfer Protocol 21 File Attributes dialog box 53 File Program Name dialog box New 48 Files dialog box Project 53 listing and renaming program 55 Modifying project 52 AdeptWindows User s Guide Rev A 89 Index Find and Replace 45 Find dialog box 45 Finding errors 46 For 50 Foreground color 57 FIP 21 G Getting Around 45 Getting DDE status information 30 Getting information on the current project 51 Goto Program and Previous Program 46 Graphical User Interface 11 Graphics Board 11 GUI 11 H Hardware connection 63 Header program 48 standard 56 template 56 customized 42 Template dialog box
15. It is enabled using the Initialization Data setup menu in AIM See section A 5 on page 68 for details Also see the MotionWare User s Guide Once it is enabled the DDE driver loads automatically when AIM is started It executes as a separate task and uses negligible CPU time until it is accessed by the AdeptWindows DDE server through the network 2 7 Specifying DDE Item Names The DDE data format is a triplet an application name a topic name and an item name For the AdeptWindows DDE server the application name is Adept the topic name is mapped to a V controller name that is defined by the Hosts pull down in the AdeptWindows DDE File menu See section 2 3 on page 26 for details The item name identifies a V system item or an AIM variable It consists of a number of names or numbers delimited by A backslash without quotes characters Currently all item names must begin with one of the following sys Specifies a V system data item aim Specifies an AIM variable database item For example the item name sys controller serial number returns the serial number of the V controller The system names are defined in the DDE initialization database DDEINI DB which may be modified as desired The system names refer to V expressions with optional arguments You can use up to three different arguments in each expression The values of the three optional fields following the argument name are substituted into the V
16. Variable Database in the MotionWare User s Guide for details on creating Variable records Once a Variables database record is created you can control DDE access to the record using the DDE Access options T DDE Access EI Read EI Write Polling time 0 sec Figure 2 10 DDE Access Selection for Variable Records Select W Read to set up the Variable record for read access using DDE Select W Write to set up the Variable record for write access using DDE NOTE The Write check box is available only when the Read check box is selected Set the polling time for the variable by entering a value in the Polling time field For example if you enter 5 the information is updated every five seconds NOTE A polling time of zero means that the information is updated only when it changes see the note in section 2 8 on page 29 This is useful for items that never change such as constants ID numbers number of robots etc 34 AdeptWindows User s Guide Rev A DDE Examples 2 11 DDE Examples This section contains several DDE examples that you can experiment with on your system Reading Data Using Microsoft Excel Microsoft Excel provides a good example of using DDE to read data Below are several examples that you can experiment with to see how DDE operates NOTE The following examples assume that you have defined the V host as User1 If not simply substitute your host name where User1
17. chapter ABSTRACT The following example program shows how to use an event loop to make selections in a menu program INPUT PARAM OUTPUT PARAM SIDE EFFECTS DATA STRUCT i MISC i Copyright c 1997 by Adept Technology Inc AUTO glun Attach to a window Logical Unit LUN ATTACH glun 4 GRAPHICS Open the window example with a maximum size of 400 x 300 pixels FOPEN glun example MAXSIZE 400 300 Check to see if system is running AdeptWindows or is using the VGB If the system is using AdeptWindows write the Adept icon to the AdeptWindows User s Guide Rev A 79 Appendix C Using Existing V Routines with AdeptWindows window IF ID 11 1 BAND BMASK 5 AND ID 11 1 BAND BMASK 1 THEN GICON glun 365 1 system adept ND Set the top level menu bar and enable monitoring of events FS FS E glun menu File 1 Edit 2 Menu 3 glun event button menu connect E Define the strings for the pull down menus Smenu 1 Item 1 1 Item 1 2 Smenu 2 Item 2 1 Item 2 2 Item 2 3 Smenu 3 Ouit Set variable for event to be monitored wn e menu 14 wn e connect 20 wn e disconnect 21 Start the processing loop quit FALSE DO T GETEVENT glun event CASE event 0 OF VALUE wn e menu The menu event 14 has
18. delete Figure 2 2 List of Defined Hosts 0 o e 26 This item displays a list of the current defined V host NOTE The name User1 is shown only as an example The name s displayed on your system will depend on the host name s that you have defined Choose Add Host to define a new host The Define Adept Host dialog box is displayed Define Adept Host XI Host Name IP Address Cancel Figure 2 3 Define Adept Hosts Enter the host name in the Host Name field and the corresponding IP address in the IP Address field You must enter the IP address in decimal format e g 192 168 144 1 Choose Modify to modify an existing host s content The Define Adept Host dialog box is displayed see item O Choose Delete to delete an existing host Choose Done to return to the main window AdeptWindows User s Guide Rev A Connecting to the Adept Controller 2 4 Connecting to the Adept Controller To connect to the Adept controller host 1 Start AIM on the Adept controller NOTE The DDE driver must be enabled See section 2 6 and section A 5 for details 2 From the AdeptWindows DDE main menu on the PC choose Connect The Connect to Host dialog box is displayed Connect to Host XJ ki f i Figure 2 4 Connecting to Host 3 Select the desired host from the list NOTE If you are not sure about the IP address o
19. e mail to applications adept com This method also enables you to attach a file such as a portion of V program code to your message NOTE Please attach only information that is formatted as text Training Information For information regarding Adept Training Courses in the USA please call 408 434 5024 Within Europe Adept Technology maintains a Customer Service Center in Dortmund Germany The phone numbers are 49 231 75 89 40 from within Europe Monday to Friday 8 00 A M to 5 00 P M 49 231 75 89 450 FAX France For customers in France Adept Technology maintains a Customer Service Center in Massy France The phone numbers are 33 1 69 19 16 16 Monday to Friday 8 30 A M to 5 30 P M CET 33 1 69 32 04 62 FAX Outside Continental United States or Europe For service calls application questions and training information call the Adept Customer Service Center in San Jose California USA 1 408 434 5000 1 408 433 9462 FAX service requests 1 408 434 6248 FAX application questions Adept Bulletin Board Service Adept maintains a bulletin board service BBS for customer use The BBS number is 203 264 5590 Application utility programs and helpful hints are posted to this bulletin board and Adept customers may post their own hints and application notes There is no charge for access to the Adept bulletin board You will of course incur normal long distance phone charges for the call to th
20. is often useful to see the call caller relationship among different programs in a program file This is particularly true in a large file containing many programs or when you are trying to understand a V application written by someone else 46 AdeptWindows User s Guide Hev A Creating and Editing a Program Choose Tools Navigate to create an interactive CALL tree S AdeptWindows Offline Editor Call Tree For navi File Edit Search Project Insert Tools Window Help meles ig Figure 3 5 Navigate CALL Tree This option provides an interactive display of the CALL hierarchy of programs in a file Navigate works only for program files that are open The CALL relationship is displayed with file icons next to the program names These icons can be interpreted as follows An open file icon indicates that the branch of the call tree has been expanded A closed file icon indicates that this program is the end of a branch it calls no other programs A closed file icon with a indicates that this branch is not fully expanded and the program contains calls to other programs that are not displayed A closed file icon with an x indicates that this program is not in the current file To expand all branches of the CALL tree choose Tools Expand All To open a program for editing double click the program name To view the original Navigate call tree Window click on the Call tree name NOTE Do not
21. menu 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 Find X Find wma O y Dina Prev o Match Case Orin Nest e Cancel Figure 3 3 The Find Dialog Box O Use the Find What field to specify the text to search for You can match the specified case by selecting item O O choose Find Prev to individually find each occurrence of the specified text O choose Find Next to individually find each occurrence of the specified text O Choose Cancel to clear all entries and close the dialog box The Replace option allows you to guickly 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 Replace X Find What O h e All Replace wi O E Done 9 Match Case 4 Eind Next Replace Then Find Figure 3 4 The Replace Dialog Box AdepiWindows User s Guide Rev A 45 Chapter 3 AdeptWindows Offline Editor Use the Find What field to specify the text to search for You can match the specified case by selecting item O Use the Replace With field to specify the new replacement text Choose Find Next followed by Replace Then Find to individually find and replace each occurrence of the speci
22. of DDE Variables 150 DDE link to Hosti sysi Cancel time since boot Read robot module id Write robot_serial_number Link switch pura pura pura Link time since boot parameter Liste 2 ai ctl 300 Parameter 1 Parameter 1 get location Parameter 2 monitor speed Parameter 2 Value Value 23492 61 set_location Ok JD 0 O a 0 ODO0SOSC0C0C000 11 270 20 110 73 Function 2 12 280 40 90 15 Request 12 280 60 90 15 Poke 2 a i dde 7 I p 3 Savethe worksheet as DDE RW XLS 4 Use Excel s Define Name dialog box to assign names to the cell addresses shown in the following table Name Refers to Cell Address Dialog DDE RW D 14 27 Dialog title DDE RW I 14 Function DDE RW B 12 Item DDE RW C 10 Kanalnum DDE RW B 10 Link DDE RW J 19 Liste DDE RW K 14 K 24 menu DDE RW B 1 AdeptWindows User s Guide Hev A 37 Chapter 2 AdeptWindows DDE Name Refers to Cell Address MV_Name DDE RW C 9 Parl DDE RW J 22 Par2 DDE RW J 24 Parameter DDE RW C 11 State DDE RW SI 27 Value DDE RW 26 5 Save the worksheet again Running the Macro To run the macro Start Microsoft Excel Select cell address B1 o 9 s amp fm fe To start the macro Tools Macro Run Open the file DDE_RW XLS Start AdeptWindows PC and connect to the Adept MV controller St
23. page 19 1 4 Exiting AdeptWindows PC To exit AdeptWindows PC File Exit The following message is displayed AdeptWindows PC 2 OK to exit Adepl windows PC Figure 1 6 Exiting AdeptWindows PC Choose Yes to exit NOTE If you are still connected to the Adept controller the message shown in Figure 1 5 is displayed Follow the procedure in section 1 3 to disconnect from the Adept controller The Windows 95 or Windows NT desktop is displayed AdeptWindows User s Guide Hev A 21 AdeptWindows DDE 2 TIntroductionc aa a BINAN phy Hota A k ytte eS 24 2 2 Starting AdeptWindows DDE 24 From the Windows 95 Program Manager 24 From the MS DOS Prompt 25 2 3 Defining Modifying or Deleting a V Host 26 2 4 Connecting to the Adept Controller 27 2 5 Disconnecting From the Adept Controller 27 2 6 Running the DDE Driver on the V Controller 28 2 7 Specifying DDE Item Names 28 2 8 HotandColdLinks 28 2 9 Getting DDE Status Information 30 2 10 Customizing DDE in AIM 31 Modifying DDE Records in AIM 31 Creating New DDE Records in
24. the editor window Choose Delete to delete the selected program from the file Choose New to create a new program in the file Choose Rename to rename the selected program Choose Copy to make a copy of the selected program and insert it in the current file 00000 Choose Done to close the Program List dialog box AdepiWindows User s Guide Rev A 55 Chapter 3 AdeptWindows Offline Editor 3 8 Customizing the Programming Environment The AdeptWindows Offline Editor has two areas that you can customize Program Header Template Highlighting Colors The Standard Program Header The AdeptWindows Offline Editor can insert a standard header template at the top of every program This is an option that is selected on the New File Program Name dialog box see page 48 for details The editor includes a dialog box that allows you to customize the header template information This is useful for adding header information that is used in every program this eliminates retyping it each time For example you could have a standard template that includes your company name and address your name as the program author and categories for typing program specific information abstract input output parameters side effects etc To customize the program header Edit gt Properties m Define Pgm Header The following dialog box is displayed Customize Progr
25. to the client whenever they are changed by an AIM SET or SETS statement or by an AIM menu page Therefore to improve efficiency always use a polling interval of zero for AIM variables unless they are being changed by some other method AdeptWindows User s Guide Rev A 29 Chapter 2 AdeptWindows DDE 2 9 Getting DDE Status Information AdeptWindows DDE provides a convenient way of monitoring the status of your DDE connections and links This can be useful if you are gathering information from multiple hosts controllers and have multiple links established with each one To obtain DDE status information Status Connections Status Links A status window is displayed 34 Adept DDE Server D xi File Connect Disconnect View Status Help Connected hosts Userl ctive links sysicontroller_serial_number sysitime since boot Figure 2 6 DDE Status Window The window lists the names of all connected hosts and all active links Once the window is opened the information is dynamically updated as connections and links are established or terminated NOTE You can view only the connected hosts or only the active links by selecting just the item you want to display from the Status menu A check mark is displayed next to the item to indicate that it is being displayed in the window 30 AdeptWindows User s Guide Rev A Customizing DDE in AIM 2 10 Customizing DDE in AIM All DDE records are stored in the DD
26. two components a button down component corresponding to a click on a menu bar selection and a button up component corresponding to the pull down selection made when the button is released After the first component pointer down on the menu bar event 1 will be 0 and event 2 will have the number of the menu bar Selection Check to see if event 1 is 0 indicating a top level menu select IF event 1 0 THEN Use the value in event 2 to select a pull down menu FSET glun pulldown event 2 menu event 2 Else execute the appropriate code for each menu selection ELSE If event 1 is not 0 then the button has been released on a pull down selection and i event 1 will have the value of the top level selection menu A event 2 will have the value of the pull down selection item menu event 1 item event 2 80 AdeptWindows User s Guide Rev A Example V Program The outer CASE structure checks the top level menu selection The inner CASE structure checks the item selected from the pull down CASE menu OF VALUE 1 Menu 1 CASE item OF VALUE 1 code for Item 1 1 VALUE 2 code for Item 1 2 END VALUE 2 Menu 2 CASE item OF VALUE 1 code for Item 2 1 VALUE 2 code for Item 2 2 VALUE 3 code for Item 2 3 END VALUE 3 Menu 3 CASE it
27. use the Navigate option to return to the original call tree This option creates a call tree for the current program It does not take you back to the original call tree 3 6 Creating and Editing a Program The following sections describe how to use the AdeptWindows Offline Editor to create and edit a V program Creating a New Program File To create a new program file choose ni Or File New File AdeptWindows User s Guide Hev A 47 Chapter 3 AdeptWindows Offline Editor The following dialog box is displayed New file program name x 1 New Program Name v Add Program Header Cancel Figure 3 6 New File Program Name Dialog Box O Enterthenew 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 O Select W Add Program Header to insert a program header See The Standard Program Header on page 56 for details O 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 Program File To open an existing program file choose E OT File gt Open File The following dialog box is displayed 2 Lbase v2 8 Menuuser v2 8 Runusr v2 File name O Files of pe mm Program Files v2 y Cancel Figure 3 7 Open a Program File O use this item to locate the drive directory whe
28. you must create an Excel macro or use a different PC application such as Visual Basic AdeptWindows User s Guide Hev A 35 Chapter 2 AdeptWindows DDE 1 DDE Link Demo request READ Send WRITE Macro SET VALUE Value SET VALUE State SET VALUE Par2 SET VALUE Parl SET VALUE Link INPUT Please enter Host name 2 DDE Link to adept robot C9 IF B7 lt gt FALSE SET VALUE Mv_Name B7 RETURNO SET VALUE Dialog_title DDE link to amp MV Name amp l amp Item SINITIATE Adept MV Name DIALOG BOX Dialog IF Function 2 F OR Parl lt gt Par2 lt gt SET VALUE Parameter Par1 SET VALUE Parameter F Par2 lt gt SET VALUE Parameter Parameter8 2Par2 REQUEST Kanalnum ltem amp Link amp Parameter IF ISERROR B 17 SET VALUE State 58417 SET WALUE State Ok SSET VALUE Value 5B517 GOTOfFunction Wow ELSE IF Function 3 IF OR Parl lt gt Par2 lt gt SET VALUE Parameter amp Par1 SET VALUE Parameter F Par2 lt gt SET VALUE Parameter Parameter amp Par2 POKE Kanalnum Item amp Link amp Parameter Value IF ISERROR B 25 SET VALUE State 56525 SET VALUE State Ok GOTO Function END IF TERMINATE Kanalnum RETURN l Adept windowslsysMime since boot Hotlink example 34 KKET aaa yy elf 36 AdeptWindows User s Guide Rev A DDE Examples Host MV name sysi Item Parameter List
29. 2 customizing the highlighting colors 57 features of the 42 highlighting colors customizing the 57 main menu bar 74 main menu bar AdeptWindows 74 main window 43 menu icon bar 44 starting the 43 Opening an existing program 48 an existing program file 48 an existing project 51 Option links 84 Overview of AdeptWindows 11 P Page DDEINI DB new record 32 Select Initialization Database 31 Paste 50 PC AdeptWindows 18 and Controller Configuring the Ether net Connection for the 64 AdeptWindows User s Guide Rev A 91 Index display interface 11 display interface AdeptWindows 17 exiting AdeptWindows 21 installing TCP IP on the 65 lock up 85 main menu bar AdeptWindows 72 main window AdeptWindows 20 or MV controller problems 85 or Windows 95 program problems 85 pinging the 68 setting TCP IP address for the 67 starting AdeptWindows 18 PC and MV controller communication between 12 Pick lists program 46 PING 18 Pinging the controller 68 Pinging thePC 68 Polling time 29 34 Port COM 19 connecting through a COM 19 RS242 serial 13 selection dialog box COM 19 Previous Program Goto Programand 46 Printing and documentation 60 Problems MV controller 85 PC or MV controller 85 PC or Windows 95 Program 85 Processor 68030 13 68040 12 Program and Previous Program Goto 46 copyinga 55 creating and editinga 47 deleting a 55 editing window Main 49 editor SEE 20 errors 46 example V 79 file addi
30. 2 0 or later is required to use the AdeptWindows PC GUI In addition AdeptWindows PC requires that the AdeptWindows license be installed on each controller it is to be used with See Table 1 for more information on the software configuration Table 1 Software Requirements Adept AdeptWindows Serial AdeptNet Windows AIM V V V V Program Link Ethernet 31 12x 11 x 10 x 8x License AdeptWindows PC v v AdeptWindows DDE NA v NA v x H2 later AdeptWindows NA NA NA NA OffLine Editor v Program requires this item Program works with this item NA Not Applicable AdeptWindows User s Guide Hev A 13 Introduction Software Installation Appendix A covers installing the AdeptWindows software on your PC Do Have to Read All the Manuals This manual covers the basics of using AdeptWindows However to install AdeptWindows you also need to be familiar with the Adept MV controller and your PC Therefore you should read the manuals listed in Table 2 You can ignore the manuals in Table 3 unless you are programming or customizing your system Table 2 Manuals You Should Read or Review Manual Material Covered Personal Computer This manual should describe the basics about your PC You User s Guide User s Guide should be familiar with the hardware software configuration of your PC Adept MV Controller Basics of usin
31. 5 Set the SA field in item O to zero or blank All other fields in this group should be blank 6 Setall fields in item O to blank 32 AdepiWindows User s Guide Rev A Customizing DDE in AIM After the record is created you must also create a definition as shown in the following section NOTE Once the record is saved you can edit the values on the record See Modifying DDE Records in AIM on page 31 for details Defining the V Expression Associated With the DDE Record Once the DDE record is created see the section above you must define the V expression that will be associated with that record To define the V expression Setup Initialization Data double click ddeini db Seek Index double click the record name created in the previous section The following window is displayed Initialization Data All Go Seek Edit Help O concrozier model numer 0 so mey 96 14 33 1 of B Description ontroller model number H Press to make changes NOW ID 1 Write Hot link polling interval seconds 5 0 Figure 2 9 DDE Initialization Data Definition 1 Enter the name in item O that will be used by the DDE client to refer to this record The name must contain only alphanumeric characters and underscores NOTE This name is not used by the expressions defined in items O or O 2 Check the description contained in item O you may change it if needed This text comes from the descriptio
32. 58 3 10 Printing and Documentation 60 AdeptWindows User s Guide Rev A 41 Chapter 3 AdeptWindows Offline Editor 3 1 Introduction This chapter explains how to use the offline editor provided with AdeptWindows It is assumed that you are familiar with the Microsoft Windows environment and basic V programming 3 2 Features of the Offline Editor The 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 95 NOTE You do not have to be connected to the Adept controller to use the AdeptWindows Offline Editor The software supports 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 Automatic template insertion When you choose a menu bar icon the corresponding FOR IF CASE WHILE DO control constructs templates are inserted at the cursor position This eliminates unnecessary typing Automatic dynamic indentation for control constructs Customized header templates A default header template is supplied that is automatically inserted after a PROGRAM declaration The header template can be customized for your application Tools for CALL Tree listings and Keyword listings V
33. 95 screen copy command to capture the screen contents Press ALT PRINT SCREEN to copy the active window to the Windows 95 clipboard Press PRINT SCREEN to copy the entire screen to the Windows 95 clipboard The clipboard contents can be pasted into a program or saved to a file See the Windows 95 online help for details D 8 V License When upgrading a system to V version 12 0B2 or higher required for AdeptWindows the 12 0 license must be installed on the controller Otherwise all other licenses such as V Extensions etc are deactivated until the 12 0 license is installed 86 AdeptWindows User s Guide Rev A Symbols syntax error marker 42 Numerics 68030 processor 13 68040 processor 12 A Access selection for variable records DDE 34 Access read write 29 Addhost 26 Adding a new program to an existing pro gram file 49 Address dialog box V Cell 18 for the PC setting TCP IP 67 Address E mail 16 Adept Bulletin Board 16 Adept controller 18 49 disconnecting from the 27 Installing TCP IP on the 67 Adept hosts define 26 AdeptNet 12 AdeptWindows DDE 11 23 24 main menubar 73 main window 24 starting 24 license 13 license installing the 63 Offline Editor 41 42 main menubar 74 overview of 11 PC 18 display interface 17 exiting the program 21 main menu bar 72 main window 20 starting the program 18 software installing the 62 using existing V routines with 77 AIM creating new DDE record
34. AIM 31 Defining the V Expression Associated With the DDE Record 33 Creating Variable Records 34 2 11 DDE Examples i vec tig Mes ware deta daa Rae dada ve 35 Reading Data Using Microsoft Excel 35 Reading and Writing Data Using a Microsoft Excel Macro 35 Creating the Macro IA WAA UA 35 Running the Macro IAA WAIUA AUA eh 38 Reading System Information 39 Reading or Writing AIM Variable Data 39 AdeptWindows User s Guide Hev A 23 Chapter 2 AdeptWindows DDE 2 1 Introduction This section describes the operation of AdeptWindows DDE Dynamic Data Exchange DDE is a protocol defined by Microsoft for data exchange between different tasks running under Windows 95 AdeptWindows DDE allows a PC application to access data on a V controller that is running AIM 3 1 AdeptWindows DDE consists of two major parts PC An application that runs on the PC and acts as a DDE server to DDE client programs on the same PC This application forwards messages to the V controller using a TCP IP link over Ethernet vt A driver task that runs on the V controller under AIM 3 1 This task receives messages from the DDE server and accesses V and AIM variables to provide data items as requested 2 2 Starting AdeptWindows DDE This section describes how to start AdeptWindows D
35. Customize Program 56 Header templates customized 42 Header standard 56 Highlighting colors 56 57 Highlighting colors customizing the 57 Host add 26 connecting to 27 84 disconnecting from 27 name 26 Hosts define Adept 26 list of defined 26 Hot and cold links 28 Icons description of 44 using the 44 ID keyword 78 Image export TIFF 86 Indentation dynamic 42 Information dialog box Project 52 getting DDE status 30 on the current project getting 51 reading system 39 Information training 16 Initialization database page Select 31 Insert menu 50 Installation dialog box Windows 95 Program 62 Installing AdeptWindows 61 DDE With AIM 68 TCP IP on the Adept Controller 67 TCP IP onthe PC 65 the AdeptWindows License 63 the AdeptWindows Software 62 Interface AdeptWindows PC display 17 Interface Graphical User 11 Internet 16 IP address 18 26 field 18 Item names specifying DDE 28 K Keys menu bars and quick 71 Keyword BUFFER 78 BUFFERED 78 EVENT CONNECT 78 expansion 42 expansion automatic 42 ID 78 listing 42 58 sample 59 listing sample 59 listings creating CALL tree and 58 MENU 78 Keyword expansion automatic 42 L License installing the AdeptWindows 63 V 86 License AdeptWindows 13 Linked connections 84 Links cold 28 hot 28 option 84 List of defined hosts 26 Listing and renaming program files 55 CALL tree 42 58 creating CALL tree and keyword 58 keyword 58 90 AdepiWindows User s G
36. DE From the Windows 95 Program Manager To start AdeptWindows DDE from the Windows 95 Program Manager Start Programs Adept AdeptWindows DDE Or from the AdeptWindows PC menu bar File Start AdeptDDE The following window is displayed 3 Adept DDE Server 0 x File Connect Disconnect View Status Help Figure 2 1 AdeptWindows DDE Main Window 24 AdeptWindows User s Guide Rev A Starting Adept Windows DDE The AdeptWindows DDE window has six menus e File e Connect e Disconnect e View e Status Help See section B 2 on page 73 for details From the MS DOS Prompt To start AdeptWindows DDE from the MS DOS prompt using the following command lt path gt adept nodename where lt path gt This is the full path name to the directory where the file ADEPT EXE is located adept This executes the file ADEPT EXE nodename This is the name of the DDE host see section 2 3 For example if the file ADEPT EXE is located in the subdirectory C ADEPTWINDOWS PROGRAMS and the DDE host name is USERI you must type c adeptwindows program adept userl AdepiWindows User s Guide Rev A 25 Chapter 2 AdeptWindows DDE 2 3 Defining Modifying or Deleting a V Host The Adept V Hosts dialog box is used to define modify or delete a V host To display the Adept V Hosts dialog box File Hosts The following window is displayed Adept V Hosts x Adept V Dada tos O vss O
37. E initialization database DDEINI DB Once the DDE driver is enabled the DDE initialization database automatically appears on the list of available databases on the Select Initialization Database page Select Initialization Database 01 x File Name ddeini db baseini db userini db Select Figure 2 7 Select Initialization Database Page CAUTION The DDE initialization records control the interaction between the Adept DDE driver and other DDE applications Therefore it is recommended that you have a good understanding of DDE AIM customizing and your application before attempting to create or modify DDE initialization records Modifying DDE Records in AlM To modify the records in the DDE initialization database Setup Initialization Data double click ddeini db Select Index double click record name Once the record is opened you can change the values on the record page The changes are saved automatically when the record page is closed Creating New DDE Records in AIM You can now create records that outline specific V functions and or V variables that you want to write to the AdeptWindows DDE server task on the PC There are nine predefined DDE records included in AIM The function of each record is fully described in the record s Description field You can copy and edit one of the existing records or create a new record The steps below use the copy and edit method To create anew DDE rec
38. Keyword Listing AdeptWindows User s Guide Hev A 59 Chapter 3 AdeptWindows Offline Editor The window displays a text file with the keyword listing The file is displayed using Windows 95 Notepad It can be viewed edited and saved with Notepad or any text editor 3 10 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 95 online help system for more information on using these options NOTE The Print and Print Preview options use the standard Windows 95 printer interface 60 AdepiWindows User s Guide Rev A Installing AdeptWindows A 1 Installing the AdeptWindows Software 62 A 2 Installing the AdeptWindows License 63 A 3 Setting up a Serial Connection 63 Required Cabling acer e rta KAN Aaa eae 63 Hardware Connection 63 Configuring the Serial Protocol 64 A 4 Setting up an Ethernet Connection 64 Configuring the Ethernet Connection for the PC and Adept Controller 64 Installing TCP IP on the PC 65 Installing TCP IP on the Adept Controller 67 Setting the SYSIO DIP Switches
39. M installing 68 DDE AdeptWindows 11 DDFINLDB 31 32 DDEINI DB new record page 32 Define Adept hosts 26 Defined hosts list of 26 Defining modifying or deleting a V host 26 Deleting a program 55 Description of Icons 44 Desktop Windows 95 21 Dialog box COM Port Selection 19 Customize Program Header 88 AdeptWindows User s Guide Rev A Template 56 File Attributes 53 54 Find 45 New File Program Name 48 New Project 50 Program List 55 Project Files 53 Project Information 52 Replace 45 V Cell Address 18 Windows 95 Network Configuration 65 Windows 95 Program Installation 62 DIP switches SYSIO 64 Disconnecting from host 27 from the Adept Controller 27 from V 21 Display interface AdeptWindowsPC 17 Do 50 Documentation printing and 60 Driver on the V controller running the DDE 28 Dynamic Data Exchange 24 indentation 42 Dynamic Data Exchange 11 67 85 E Edit menu 50 Editing a program creating and 47 V programs 42 Window Main Program 49 Editor AdeptWindows Offline 41 42 Features of the Offline 42 highlighting colors customizing the Offline 57 main menu bar AdeptWindows Offline 74 main menu bar Offline 74 main window Offline 43 menu icon bar Offline 44 starting the Offline 43 window 43 49 E mail address 16 Enable record DDE 69 Energy Star compliant systems 84 Environment customizing the programming 56 Error DDE 84 Index finding 46 locating 46 next 46 program 46 syntax 42
40. Network Component AdeptWindows User s Guide Rev A Add to add a new 65 Appendix A Installing AdeptWindows 3 Select Protocol from the list of network components 4 Choose 66 2 N o S Select Network Protocol x Add to display the Network Protocol selection Click the Network Protocol that you want to install then click OK If you have an installation disk for this device click Have Disk Manufacturers 4 Banyan COPS Inc f Digital Equipment DEC IBM Figure A 4 Network Protocol Selection Network Protocols IP lt SP compatible Protocol f Microsoft DLC NetBEUI Have Disk Cancel Select Microsoft from the Manufacturers list Select TCP IP from the Network Protocols list Choose OK to save these selections and return to the Network dialog box From the Network dialog box select TCP IP AdeptWindows User s Guide Rev A Setting up an Ethernet Connection 9 Choose the Properties tab to display the TCP IP Properties dialog box TCP IP Properties 121 x Bindings Advanced DNS Configuration Gateway WINS Configuration IP Address An IP address can be automatically assigned to this computer If your network does not automatically assign IP addresses ask your network administrator for an address and then type it in the space below btain an IP address automatically IP Addres
41. Windows PC The AdeptWindows PC introductory screen is displayed followed by the Connection type dialog box Connection Type x Type Ethernet C COM Port Cancel Figure 1 1 Connection Type Dialog Box Select the connection type either Ethernet or a COM port serial connection Choose OK to save the selection NOTE The system remembers your connection preference It prompts you appropriately the next time you try to connect Connecting Through Ethernet If you selected Ethernet the following dialog box is displayed Address of cell x IP 192 168 144 1 v Ls Figure 1 2 V Cell Address Dialog Box In the IP field type the IP address or host name for the Adept controller This should be the same address used when you PINGed the controller during installation See Appendix A for details NOTE If you do not know what IP addresses are available you can select File Scan Ethernet to display a list of IP addresses of Adept MV controllers that support AdeptWindows PC on your network 18 AdeptWindows User s Guide Hev A Starting AdeptWindows PC Connecting Through a COM Port If you selected COM Port the following dialog box is displayed COM port selection x COM Poit COM1 M Cancel Figure 1 3 COM Port Selection Dialog Box Use the scrolling COM Port list to select the appropriate COM port This should be the PC COM port that the serial
42. al number for the setup program on the PC used to install the PC software A 3 Setting up a Serial Connection This section describes how to set up a serial communication link between the PC and the Adept controller If you are using an Ethernet communication link see section A 4 on page 64 NOTE The serial connection works only with the RS232 serial port on the main system processor It cannot be used with the global serial ports located on the SIO module Required Cabling Serial cabling is not provided with AdeptWindows You must purchase the following items from a computer store or computer supply catalog DB9 female to DB9 male serial pass thru cable available from any computer store Null modem connector For 68030 processor DB9 female to DB9 female For 68040 processor DB25 male to DB9 female Hardware Connection To setup the serial connection 1 Connect one end of the serial cable to the COM port in your PC Make a note of the COM port you are using this information is required during the software startup AdeptWindows User s Guide Hev A 63 Appendix A Installing AdeptWindows 2 Connect the other end to the NULL modem adapter 3 Connect the open end of the adapter to the RS232 port of the main processor on the Adept controller 4 Setthe DIP switches on the SYSIO board Switch 4 ON selects AdeptWindows Switch 5 ON selects serial interface NOTE When the SYSIO DIP switche
43. am Header Template x Customize Program Header Template to be inserted after PROGRAM line See help for details INPUT PARAM OUTPUT PARAM SIDE EFFECTS Figure 3 14 Customize Program Header Template Dialog Box The template has six predefined categories ABSTRACT INPUT PARAM OUTPUT PARAM SIDE EFFECTS DATA STRUCT and MISC You can edit the template as follows O This item displays the program header template To add a new line select an existing line item O and choose Add The new line is inserted below the selected line selected line is displayed in the edit dialog box item O o e To edit an existing line double click the line or select the line and choose Edit The Q To delete a line select the line item O and choose Delete The selected line are removed from the template 56 AdeptWindows User s Guide Hev A Customizing the Programming Environment 5 Choose Save to save the changes and close the dialog box 8 8 O choose Cancel to clear all changes and close the dialog box Customizing the Highlighting Colors The AdeptWindows Offline Editor allows you to customize the colors used to identify variables comments and other parts of a program To edit the color scheme Edit gt Properties gt Set Color The following dialog box is displayed Customize Highlighting Colors for Variables Select text foreground and backg
44. ariable names and instructions are color coded to remind you of their use Multiple files may be opened in separate windows allowing you to cut and paste information between them Global Find and Replace These commands may apply to entire files or just one program Retrieve Goto Cut Paste etc These commands allow you to share information and navigate between programs Project management tools that allow you to maintain V files on the PC Restrictions Online and quick syntax help facilities are not available Although indentation is performed V control structures are not validated e GOTO labels are not validated 42 AdeptWindows User s Guide Hev A Starting the Offline Editor 3 3 Starting the Offline Editor To start the AdeptWindows Offline Editor Start Programs Adept AdeptWindows Offline Editor amp AdepiWindows Offline Editor Ele Edt Search Project Insert Tools Window Help Deal EE EEE R AdeptWindows Offline Editor adept technology inc edat A NA NA ann E Figure 3 1 Offline Editor Main Window The editor window expands to the maximum size of the PC monitor screen You can adjust the size of the window using the icons located at the upper right hand corner of the window AdeptWindows User s Guide Rev A 43 Chapter 3 AdeptWindows Offline Editor 3 4 Using the Icons All of the features of the editor can be accessed using the main menu bar or by click
45. art AdeptWindows DDE and connect to a host The following window is displayed DDE Link to adept robot XI Please enter Host name Cancel 7 Typethe host name as used in Step 2 above in the highlighted field and choose Parameter 1 Parameter 2 OK The following window is displayed DDE link to Hosti sys XI Link Value Jime since boot y 38 AdeptWindows User s Guide Rev A DDE Examples Reading System Information To read system information 1 Scroll to any item in the Link field 2 Choose Read to display the value Reading or Writing AIM Variable Data To read AIM Variable database values or write new values to existing variables in the AIM Variable database 1 Change the data in cell address C10 to aim 2 Restart the macro 3 Type the variable name in the Link field For example if you have a global AIM variable named test you would type test 4 Choose Read to display the current value of the variable Or you can enter a new value in the Value field and then choose Write to write the value to the AIM variable AdeptWindows User s Guide Rev A 39 AdeptWindows Offline Editor A E sokeat sea DS 42 3 2 Features of the Offline Editor 42 3 3 Starting the Offline Editor 43 3 4 Using the ICONS ote en Bebe edet a 44 Des
46. cable is connected to See Appendix A for details AdeptWindows User s Guide Rev A 19 Chapter 1 AdeptWindows PC Display Interface The AdeptWindows PC Main Window If the controller is booted and waiting the communication should happen immediately within 1 2 seconds after you choose OK When communication begins the AdeptWindows PC window shown in Figure 1 4 expands to fill the entire PC screen amp AdeptWindows PC 192 168 144 1 File Adept Adept V Copyright c 1984 1997 by Adept Technology Inc All rights reserved Adept External Encoder Module FlexFeeder Generation III Belt Robot Module FlexFeeder Generation III Lift Robot Module Configured as Category 3 Robot System per I50 10218 and EN954 Software 12 0 83 71E0 Edit D1 26 Feb 1997 Controller 3304 137 0 Processor 1 0 0 2 7 8Mb Robot 1 990 0 0 0 2 Robot 2 990 0 0 0 3 Robot 3 990 0 0 0 2 Robot 4 990 0 0 0 3 Vision 1 12 0 500 19 Mar 97 09 44 47 al o S o HT m 25Mb Edit K 27 Feb 1997 Figure 1 4 AdeptWindows PC Main Window You can reduce the window size by double clicking on the AdeptWindows PC menu bar Or File Normal Size Once the window is opened you can execute Monitor commands use the SEE editor or start up an AIM module MotionWare VisionWare etc You also can perform file transfers between the Adept controller disk drives and the PC disk drives This allows you to write and edit program
47. ce On the Adept controller you need the following hardware e AdeptNet option PN 90332 02020 68040 processor 4 or 8 Mb 8 Mb required if using AIM 3 1 RJ45 cabling and hub Please refer to your Windows 95 documentation for more information on networking the PC 64 AdeptWindows User s Guide Hev A Setting up an Ethernet Connection Installing TCP IP on the PC TCP IP is a networking protocol that is used to establish Ethernet communications between the PC and the Adept controller To set up TCP IP on your PC 1 2 From the START menu in Windows 95 Start Settings Control Panel Network The following dialog box is displayed Network 2 x Configuration Identification Access Control The following network components are installed Client for Microsoft Networks PCI Ethernet DECchip 21040 Based Adapter IPX 5PX compatible Protocol 4 NetBEUI TCP IP x Add Remove Properties Primary Network Logon Client for Microsoft Networks v File and Print Sharing r Description Cancel Figure A 2 Windows 95 Network Configuration Dialog Box If TCP IP is not on the list of installed components choose protocol Select Network Component Type 7 x Click the type of network component you want to install Protocol is a language a computer uses Computers must use the same protocol to communicate Figure A 3 Selecting a New
48. cription of lcons II IA nns 44 3 5 Getling Arounda ir in penu wale a Dad Pee 45 FindandReplace 45 Goto Program and Previous Program 46 Program PEKSIS soccer a adn 46 Navigate a tire tectis ete aca a aaa 46 3 6 Creating and Editing a Program 47 Creating a New Program File 47 Opening an Existing Program File 48 Adding a New Program to an Existing Program File 49 TheEditorWindow 49 3 7 Working With Projects 50 Creating a New Project 50 Opening an Existing Project 51 Getting Information on the Current Project 51 Modifying Project Files 52 Modifying Project File Attributes 53 Building a Project IA AA Kaa nn eee 54 Listing and Renaming Program Files 55 3 8 Customizing the Programming Environment 56 The Standard Program Header 56 Customizing the Highlighting Colors 57 3 9 Creating CALL Tree and Keyword Listings 58 CALL Tree Listing 58 Keyword Listing WA knn
49. de Squeezed C DataFile C Documentation Project File Destination File Name c adept sample pro Browse Figure 3 12 File Attributes Dialog Box O This item displays the name of the selected file NOTE The Read Only W option is not enabled in this release O Use this group to set the file type for the source file V Source Code a V file that can be edited with the AdeptWindows Offline Editor Data File any source file on the PC Documentation a text file created by a text editing program Project File a file with a PRO extension This file is used as a directory to other files in the project e Select Sgueezed if you want all comments and blank lines removed from the destination file The SQU extension is automatically added to the destination file name NOTE This option is enabled only for V Source Code files O Enter the destination directory and file name This is the location that the file is copied to when you build the project You can type the information or choose Browse to scroll through a list of available directories O Choose OK to save all entries and close the dialog box Choose Cancel to clear all entries and close the dialog box Building a Project Once your project is completed you have created a project and written all of the V programs for the project you are ready to build the project The Bui
50. deptWindows DDE server and cells have been defined with links to the server you can check all the linked connections by selecting the Links option from the Excel Edit menu D 3 Energy Star Compliant Systems On some computers that use Energy Star compliant motherboards any network connections may be disrupted when the BIOS power save function activates If your system exhibits this problem you can correct it by disabling the power save feature in the BIOS See your PC user s guide or installation manual for details 84 AdeptWindows User s Guide Rev A Ethernet TCP IP D 4 Ethernet TCP IP Connecting to an Adept MV Controller Through TCP IP The Adept MV controller and the PC must use the same subnet mask to enable communications through TCP IP Check the subnet mask setting for the PC using the Network option located on the Windows 95 Control Panel See the Windows 95 online help for details Check the subnet mask setting for the Adept MV controller using the CONFIG C utility See the manual titled nstructions for Adept Utility Programs for details NetManage s TCP IP It is not recommended that you run NetManage s TCP IP in conjunction with Microsoft s TCP IP Doing so can cause a one second delay when displaying characters in the monitor window that are typed on the keyboard To correct this problem disable the NetManage TCP IP connection See the Windows 95 online help system for details D 5 PC or Adept MV Con
51. ditor Main Window 43 Offline Editor Menu lcon Bar 44 The Find Dialog BOx atamaani tae beu Oe H CIS 45 The Replace Dialog Box 45 Navigate CALL Tree 47 New File Program Name Dialog BOK 48 Open a Program File 48 Main Program Editing Window 49 New Project DialogBOK 50 Project Information Dialog BOX 52 Project Files DialogBOK 53 File Attributes DialogBok 54 Program List Dialog BOX 55 Customize Program Header Template Dialog Box 56 Customize Highlighting Colors 57 Sample GALL Tree s aaa perte Eb exe Ede ad NES 58 Listing Tool for Programs 59 Sample Keyword Listing 59 Windows 95 Program Installation Dialog Box 62 Windows 95 Network Configuration Dialog Box 65 Selecting a New Network Component 65 Network Protocol Selection 66 Setting TCP IP Address for the PC
52. e BBS The first time you call the BBS you will be able to set up an account right from the BBS For questions about the BBS call 800 232 3378 Adept Web Page If you have access to the Internet you can view Adept s web page at the following address http www adept com The web site contains an array of sales customer service and technical support information 16 AdepiWindows User s Guide Rev A AdeptWindows PC Display Interface 1 4 Introduction 22e se e e REESE Kalaa asa d 18 1 2 Starting AdeptWindows PC 18 Connecting Through Ethernet 18 Connecting Through a COMPort 19 The AdeptWindows PC Main Window 20 1 3 Disconnecting From the Adept Controller 21 1 4 Exiting AdeptWindows PC 21 AdeptWindows User s Guide Rev A 17 Chapter 1 AdeptWindows PC Display Interface 1 1 Introduction The AdeptWindows PC display interface AdeptWindows PC allows direct communication between your PC and the Adept controller With AdeptWindows PC running on your PC you can operate the Adept controller from your PC using the same commands and keystrokes that you would use with the Adept keyboard and VGA monitor 1 2 Starting AdeptWindows PC To start AdeptWindows PC from the Windows 95 Program Manager Start m Programs gt Adept Adept
53. ections Displays a list of connected hosts in the DDE window see page 30 Links Displays a list of active links in the DDE window see page 30 Help About Adept DDE Displays a pop up window with information about the version edit and edit date AdeptWindows User s Guide Rev A 73 Appendix B Menu Bars and Quick Keys B 3 Offline Editor Main Menu Bar These menus are displayed whenever the AdeptWindows Offline Editor is running Edit Read Only Mode Set Color Define Pgm Header File New File Creates a new V2 file see page 47 Open File Opens an existing V2 file see page 48 Close File Closes the current V2 file Save File Saves the current file Save File As Saves the current file using a new file name New Project Starts a new project see page 50 Open Project Opens an existing project see page 51 Close Project Closes the current project Save Project Saves the current project Print Prints the current V2 file Print Preview Displays the file as it looks when printed Exit Exits the program Undo Ctrl Z Undoes the last entry command or keystroke if possible Cut Ctrl X Removes the selected text graphics and places it on the clipboard Copy Ctrl C Copies the selected text graphics to the clipboard Paste Ctrl V Inserts the contents of the clipboard at the current cursor position Select All Ctrl HL Selects
54. em OF VALUE 1 quit TRUE Time to quit END END case menu of END if event 1 VALUE wn e connect redraw reload user defined icons VALUE wn e disconnect perform any operations END UNTIL quit When the window is no longer needed related to disconnect Case event 0 and then detach from the logical unit FCLOSE glun FDELETE glun example DETACH glun RETUR AdeptWindows User s Guide Rev A clos and delete th window 81 Troubleshooting D 4 Introdaction nanna a aaa Hehe ee A A YA 84 D 2 DDE EITOFS3 o RE SEE EXER A Ral gee A 84 ConnectingtoHost 84 Using MicrosomtExcel IIIA gi NA NLA DAA PANEL LANG 84 D 3 Energy Star Compliant Systems 84 D4 Ethernet TCP IP iid vs nve di MAATA e em ns n NAA EUR 85 Connecting to an Adept MV Controller Through TCP IP 85 NetManage sTCP IP 85 D 5 PC or Adept MV Controller Problems 85 PC or Windows 95 Program Problems 85 Adept MV Controller Problems 85 D 6 SYSIO DIP Switches IA II s 85 D 7 TIRE Image Export ocio obe Rc k ni alaik t Rx RR CR 86 D8 V EICenSe s aa bed X Rau Darts eaa Bert x aces Pat d b mest o boh 86 AdeptWindows User s Guide Rev A 83 Appendix D Troubleshooting D 1 Introduction
55. f a host double click on the name to display the host information 4 Choose Connect to make the connection Once a host is connected to V the name is removed from the connect list and placed on the disconnect list in the Disconnect From Host dialog box See section 2 5 on page 27 for details 5 Choose Done to close the dialog box and return to the main menu Once you set up the host name and connect to a V host you can basically ignore the AdeptWindows DDE server until you are ready to disconnect the PC from V 2 5 Disconnecting From the Adept Controller To disconnect from an Adept controller host 1 Choose Disconnect from the main menu The Disconnect From Host dialog box is displayed Disconnect from Host Ea Userl Figure 2 5 Disconnecting From Host 2 Select the desired host from the list 3 Choose Disconnect to disconnect from the host The host name is removed from the Disconnect From Host list and placed on the Connect to Host list See section 2 4 on page 27 for details AdeptWindows User s Guide Rev A 27 Chapter 2 AdeptWindows DDE NOTE You must select the desired host before choosing the Disconnect button otherwise an error is reported 4 Choose Done to close the dialog box and return to the main menu 2 6 Running the DDE Driver on the V Controller The DDE driver is part of the DDE module included in the AIM Baseline package
56. fied text Choose Replace All to find and replace every occurrence of the specified text oo SQ Choose Done to close the dialog box Goto Program and Previous Program When the cursor is on a line with a CALL instruction choose the Goto Prgm option or press Ctrl G to open a new window and display the called program If the cursor is not on a line with a CALL instruction the editor displays a dialog box that asks you for the program name The following restrictions apply The called program must be in the open project s file list see page 52 The called program must be open see page 48 After using the Goto Prgm option you can use the Prev Prgm option or press Ctrl P to display the previous program NOTE The editor window displays only the previously viewed programs that are contained in the current file It cannot switch from the current file window back to the previously displayed file window Program Pick Lists Choose the List All Pgms option or press Ctrl A to display an alphabetical pick list of all the programs in the file Double click one of the programs on the pick list to open that program for editing Choose the List Bad Pgms option or press Ctrl B to display a pick list of the programs that have syntax errors Once a program is opened by double clicking on the program name use the Next Error menu option or press Ctrl E to locate each error Navigate It
57. file header information at the beginning of the listing O Check this box to search for a specific keyword Enter the keyword s in the corresponding field If you wish to search for multiple keywords enter all keywords separated by a comma O Choose OK to save all entries and close the dialog box Choose Cancel to clear all entries and close the dialog box If you choose OK a window displays the search results E Listing out Notepad File Edi Search Help Keyword listings for File C aim31c basesoft Custom u2 Wed Nou 27 15 62 45 1996 CALL PROGRAM a custom PROGRAH cu initialize PROGRAM cu initialize2 halt PROGRAM cu module init halt PROGRAH cu error notify ti level error number error qualifier message PROGRAM cu sched start error PROGRAM cu set mode ti mode PROGRAM cu startup Scmd CALL 1d load mod ai ctl cs auto mod mod status I CALL mu popup error Sio cmd hdr SINTB status Ser module Sai ct1 cs auto mod er sev wab c I CALL 1d lookup ai ctl cs auto mod ai ctl cs auto seg 8 8 8 status I CALL mu popup error io cmd hdr INTB status er seq ai ctl cs auto seq er seu wab CALL mu set goto ky m seq 8 ai ctl cs auto seq ai ctl cs auto mod 8 8 8 1 cmd 88 CALL mu set goto ky m menu 8 system id system 8 8 8 6 cmd PROGRAM cu shutdoun PROGRAM cu task init task gad robot device Figure 3 18 Sample
58. ft Excel macro reading and 35 94 AdepiWindows User s Guide Rev A Adept User s Manual Comment Form We have provided this form to allow you to make comments about this manual to point out any mistakes you may find or to offer suggestions about information you want to see added to the manual We review and revise user s manuals on a regular basis and any comments or feedback you send us will be given serious consideration Thank you for your input NAME DATE COMPANY ADDRESS PHONE MANUAL TITLE PART NUMBER and REV level COMMENTS MAIL TO Adept Technology Inc Technical Publications Dept 11133 Kenwood Rd Cincinnati OH 45242 FAX 513 792 0274 AdeptWindows User s Guide Rev A 00962 00710 Rev A
59. g the Adept controller Instructions for Adept Utility Programs Instructions for running the different Adept utility programs Depending on which options you use you may have to run different Adept utility programs Keep the manual handy for instructions on any utility programs you may have torun AdeptNET User s Guide Instructions for installing the AdeptNET option on the Adept MV controller Table 3 Manuals Used for Custom Programming Manual Material Covered V Language User s Guide This manual covers the basic V system If you plan to use the AdeptWindows Offline Editor read this manual V Language Reference This set of reference manuals covers the language in which Guide all V and AIM programs are written If you plan to use the AdeptWindows Offline Editor to write custom V or AIM code you should keep this manual handy for reference 14 AdeptWindows User s Guide Hev A How Do I Begin How Do Begin Before you can use AdeptWindows you must complete the following steps Install the Adept controller see the controller user s guide Install the PC see the PC user s guide Install AdeptWindows see Appendix A Install the AdeptWindows license see Appendix A e Set up a serial or Ethernet connection see Appendix A e Start up the AdeptWindows program s see Chapter 1 How Can Get Help The following section tells you who to call if y
60. ing on the icon for the desired feature See section B 3 on page 74 for details on the pull down menus S AdeptWindows Offline E ditor File Edi Search Project Insert Tools Window Help DIG 7 Gg Else PIR Figure 3 2 Offline Editor Menu Icon Bar Description of Icons nli Create a new program file see page 47 E Open an existing program file see page 48 Save the current program file to disk Cut the selected lines of code to the clipboard see page 50 Copy the selected lines of code to the clipboard see page 50 Paste the cut copied lines of code from the clipboard see page 50 Insert a new IF structure into the program at the cursor position see page 50 Er E la g a Insert a new CASE structure into the program at the cursor position see page 50 F g Insert a new FOR structure into the program at the cursor position see page 50 Insert a new WHILE structure into the program at the cursor position see page 50 Insert a new DO structure into the program at the cursor position see page 50 Access the online help system not available in this release z le E lo Context sensitive help not available in this release 44 AdepiWindows User s Guide Rev A Getting Around 3 5 Getting Around When a program file is opened the first program in the file is displayed There are several options for moving from one program in the file to another These options are found under the Search pull down
61. ing the Ethernet link see page 18 Connect via COM port Starts a connection using the serial link see page 19 Scan Ethernet Broadcasts on the Ethernet for all MV controllers configured for AdeptWindows Displays a list of IP addresses see page 18 Disconnect Closes the connection between the PC and the current controller see page 21 Start AdeptDDE Starts the AdeptWindows DDE application see page 24 Normal size Reduces the window from the maximum size About AdeptWindows PC ID window for AdeptWindows PC Lists current version number Exit Exits the program Adept Vision Displays the Vision window if the Vision option is enabled see page 20 Monitor Displays the Monitor window see page 20 Note Other window names created by V programs also appear here 72 AdeptWindows User s Guide Rev A AdeptWindows DDE Server Main Menu Bar B 2 AdeptWindows DDE Server Main Menu Bar These menus are displayed whenever AdeptWindows DDE Server is running File Hosts Adds modifies or deletes V hosts see page 26 Save Saves the current DDE configuration Exit Exits the program Connect Displays a dialog box for connecting a host see page 27 Disconnect Displays a dialog box for disconnecting a host see page 27 View Status Bar Toggles the status bar located at the bottom of the DDE window on and off Status Conn
62. ion about the current open project Project Project Info AdeptWindows User s Guide Rev A 51 Chapter 3 AdeptWindows Offline Editor The following dialog box is displayed Project Information XI Project Name sample Project Directory c vadeptiadept projects Description Date Created Date Modified GB Version ample Project 14 55 3 7 1997 15 14 3 7 1997 Major p Minor p V Version v version 11 3 Browse 4 Figure 3 10 Project Information Dialog Box The Project Information dialog box displays information about the project name description date created date modified etc You also have the option to edit the following items Browse e oce You can edit the Major and Minor Project Version numbers to scroll through a list of available versions After you have finished viewing editing the dialog box choose dialog box Modifying Project Files You can edit the project description directly in the Description field Done You can change the V version by typing the new version number or by choosing to close the The Project Files dialog box is used to modify the files within the current loaded project To display the Project Files dialog box Project Files 52 AdepiWindows User s Guide Rev A Working With Projects The following dialog box is displayed Project Name sample Files in Project
63. irst step toward drawing the PC closer to the Adept controller In keeping with the tradition of providing a safe and predictable development environment Adept will continue this evolution of software tools in a phased approach Starting with the user interface the AdeptWindows PC application provides an alternative to the GUI using a dedicated monitor In addition the DDE functionality is embedded in the interface between the PC and the controller This provides the first open link between standard applications running on the PC and the Adept controller Extending this concept further custom applications developed in C C or Visual AdeptWindows User s Guide Hev A 11 Introduction Basic on the PC can use the DDE protocol to converse with the Adept controller through the DDE interface See Figure 2 AIM DDE Server E AdeptWindows Bi TE DDE I3 Application Custom V Task Em EE a EBENEN AA um um um I e mm e m Ea E Excel AIM 3 1 DB A m f Hj lt gt V Global Variable n ouc WonderWare Adept Controller PC DID E DTI Figure 2 DDE Communication Between PC and Adept MV Controller To ensure compatibility with existing V applications the AdeptWindows PC product uses existing V instructions to display graphics to the user AIM software and existing customer libraries are compatible and
64. ld menu option located on the Project menu copies all of the V program files for the project to the specified target directories The target directory can be a floppy disk for transfer to the Adept controller creation of a utility disk etc or any directory on the hard disk drive of your PC If the Ethernet NES 54 AdepiWindows User s Guide Rev A Working With Projects option is installed on your PC and on the Adept controller you can directly access the hard disk drive on the controller and use any directory on that drive as a target directory See the AdeptNET User s Guide for details on installing the NFS option If you select the W Squeezed option on the File Attributes dialog box all header information comments and blank lines are removed from the specified file s as they are being copied to the target directories Listing and Renaming Program Files The Program List dialog box provides a pop up list of all the V programs contained in a file It provides an easy way to navigate between all of the programs It also provides an option for renaming a program To display the Program List dialog box Search List All Pgms The following dialog box is displayed B sa 3 Delete 4 New 5 Bename 6 Copy uusi AJO Done Figure 3 13 Program List Dialog Box This item contains the listing of the program file names Choose Select to display the selected program in
65. ler installing 67 on the PC installing 65 properties 67 Template 42 56 customized header 42 dialog box customize program header 56 insertion 42 TIFF image export 86 Time CPU 28 polling 29 34 Training information 16 Transfer Protocol File 21 Tree and keyword listings creating CALL 58 listing CALL 58 Navigate CALL 47 AdeptWindows User s Guide Rev A 93 Index sample CALL 58 Troubleshooting 83 U Undo 50 User Interface Graphical 11 V V cell address 18 Cell Address dialog box 18 code 49 controller 28 controller Running the DDE driver on the 28 disconnecting from 21 host 26 host defininga 26 license 86 program example 79 programs 55 programs editing 42 routines 77 routines with AdeptWindows using existing 77 routines existing 77 system data 28 V Language Reference Guide 49 V Language User s Guide 49 Variable data reading or writing AIM 39 names 42 records creating 34 DDE access selection for 34 VGB 11 Video Graphics Board 11 W What is AdeptWindows 11 While 50 Window AdeptWindows DDE main 24 AdeptWindows PC main 20 DDE Status 30 Editor 49 editor 43 49 main program editing 49 Offline Editor main 43 size 79 Windows 95 desktop 21 Network Configuration dialog box 65 Notepad 60 Program Installation dialog box 62 Program Manager starting DDE from the 24 program problems PC or 85 taskbar 69 Working with projects 50 Writing AIM variable data reading or 39 data using a Microso
66. loaded This driver supports communication with a remote computer which is running the AdeptDDE application If Off the DDE driver is not loaded Figure A 6 DDE Enable Record Select On to enable the DDE server the default setting is Off Shut down AIM and then restart it The DDE server is automatically enabled A 6 Other Considerations This section contains other installation and setup information that may apply to your system when using AdeptWindows The optimum desktop setting for the Windows 95 taskbar is Autohide and Always on Top See the Windows 95 online help system for details Onsome computers with Energy Star compliant motherboards any network connections may be disrupted when the BIOS power save function activates If your system exhibits this problem you can correct it by disabling the power save feature in the BIOS See your PC user s guide or installation manual for details AdeptWindows User s Guide Hev A 69 Menu Bars and Quick Keys B 1 AdeptWindows PC MainMenuBar 72 B 2 AdeptWindows DDE Server Main Menu Bar 73 B 3 Offline Editor MainMenuBar 74 AdeptWindows User s Guide Rev A 71 Appendix B Menu Bars and Quick Keys B 1 AdeptWindows PC Main Menu Bar These menus are displayed whenever AdeptWindows PC is running File Connect via Ethernet Starts a connection us
67. n entered in Figure 2 8 item O 3 Enter a V string or real valued expression in item O that evaluates to the data associated with reading the DDE item If the expression begins with a double guote or a dollar sign the expression is assumed to be a string value Otherwise it is assumed to be a real value When this expression is evaluated any arguments of the form 1 2 or 3 are replaced by additional A arguments found in the request from the DDE client AdeptWindows User s Guide Rev A 33 Chapter 2 AdeptWindows DDE 4 This field in item O is optional If blank this DDE item cannot be written If non blank it must be a V global variable name of the same type as the expression in item O This variable occurs on the left side of an equal sign in an assignment operation Array variables are permitted and may contain 1 type arguments When this expression is evaluated any arguments of the form 1 2 or 3 are replaced by additional A arguments found in the request from the DDE client 5 Set the optional polling time by entering a value in the Polling time field item O For example if you enter 5 the information is updated every five seconds Creating Variable Records You also can create variables in the Variables database in AIM 3 1 that can be accessed read write through the DDE link These variables may be of any type available to the Variables database records See the section titled
68. nd Cold Links coi ieee crawled Ka Ree Re TE 28 AdeptWindows User s Guide Rev A 5 Table of Contents 2 9 Getting DDE Status Information 30 2 10 Customizing DDE in AIM 31 Modifying DDE Records in AIM 31 Creating New DDE Records in AIM 31 Defining the V Expression Associated With the DDE Record 33 Creating Variable Records 34 2 11 DDE Examples IA eee 35 Reading Data Using Microsoft Excel 35 Reading and Writing Data Using a Microsoft Excel Macro 35 Creating the Macro 35 Running the Macro 38 Reading System Information 39 Reading or Writing AIM Variable Data 39 3 AdeptWindows Offline Editor 41 SAO AU OTI ON sis ios etcetera aaa 42 3 2 Features of the Offline Editor 42 3 3 Starting the Offline Editor 43 3 4 Using the ICOns oxi D MR RR RE RR IIR E m 44 Description Of Icons IA WA nh 44 3 5 Getting Around sssaaa uaaa aae 45 Find and Replace seneni assa er ex Race ae we kade ee TON 45 Goto Program and Previous Program 46 Program Pick LISSA eee 46 METER 46 3
69. ng a new program to an existing 49 file creating a new 47 file opena 48 file opening an existing 48 files listing and renaming 55 Goto Program and Previous 46 header 48 template 56 header template dialog box customize 56 header standard 56 installation dialog box Windows 95 62 list dialog box 55 listing tool for 59 Manager starting DDE from the Win dows 95 24 name 48 opening an existing 48 pick lists 46 problems PC or Windows 95 85 renaminga 55 selecting a 55 Programming environment customizing the 56 Project building a 54 creating a new 50 description 51 dialog box new 50 file attributes modifying 53 Files dialog box 52 files modifying 52 getting information on the current 51 Information dialog box 52 name 51 opening an existing 51 version 51 Projects 50 working with 50 Protocol configuring the serial 64 File Transfer 21 selection network 66 Q Questions application 15 Quick keys menu bars and 71 R Reading and writing data using a Microsoft Ex cel macro 35 data using Microsoft Excel 35 or writing AIM Variable data 39 system information 39 Read write access 29 Record DDE Enable 69 page DDEINLDB new 32 Records creating variable 34 DDE access selection for variable 34 in AIM creating new DDE 31 92 AdeptWindows User s Guide Rev A in AIM modifying DDE 31 Renaming a program 55 program files listing and 55 Replace dialog box 45 Find and 45 Required cabling 63 Requirements sof
70. nnection hardware 63 PC and controller configuring the Ethernet 64 setting upaserial 63 setting up an Ethernet 64 Connections linked 84 Controller Adept 18 21 49 communication Between PC and MV 12 configuring the Ethernet connection forthePC and 64 disconnecting from the Adept 27 installing TCP IP on the Adept 67 pinging the 68 problems PC or MV 85 Copy 50 Copying a program 55 CPU time 28 Creating and editing a program 47 CALL tree and keyword listings 58 DDE records 31 new DDE records in AIM 31 new program 47 55 new project 50 the macro 35 variable records 34 Current project getting information on the 51 Customizing DDE in AIM 31 header templates 42 Offline Editor highlighting colors 57 Program Header Template dialog box 56 programming environment 56 Cut 50 D Data Exchange Dynamic 11 24 Database page Select Initialization 31 DDE 11 24 35 access selection 34 access selection for variable records 34 AdeptWindows 23 24 application 31 client 24 communication 12 data format 28 driver 28 31 driver on the V controller running the 28 enable record 69 errors 84 examples 35 in AIM customizing 31 initialization 28 31 item names specifying 28 main menu bar AdeptWindows 73 main window AdeptWindows 24 record 31 records creating 31 modifying 31 records in AIM creating new 31 records in AIM modifying 31 server 24 28 84 status Information getting 30 status window 30 with AI
71. o the Adept controller you must execute the PING command at the MS DOS prompt From the Windows 95 Program Manager select Start gt Programs gt MS DOS Prompt At the MS DOS prompt type the PING command followed by the IP address or host name for the Adept controller PING 192 168 144 1 If the PING is successful a message similar to the following is displayed Pinging 192 168 144 1 with 32 bytes of data Reply from 192 168 144 1 bytes 32 time 39ms L 15 Reply from 192 168 144 1 bytes 32 time 39ms L 15 Reply from 192 168 144 1 bytes 32 time 39ms L 15 Pinging the PC You can also use the PING command to test the communication from the Adept controller to the PC At the Monitor prompt type the PING command followed by the IP address or host name for the PC PING 192 168 144 101 If the PING is successful the following message is displayed Success A 5 Installing DDE With AIM The DDE driver software is part of the standard AIM 3 1 Baseline module However it is not automatically enabled To enable the AIM DDE server Setup Initialization Data double click baseini db Seek Index double click DDE enable 68 AdeptWindows User s Guide Rev A Other Considerations The DDE Enable record is displayed Baseline Initialization Data Me ES Go Seek Edit Help DDE enable 01 Oct 96 21 49 11 of 27 Description If On the Dynamic Data Exchange DDE driver is
72. only minor additions are needed to sense the connection between the Adept controller and a PC that is running AdeptWindows PC System Requirements The following sections describe the requirements for using AdeptWindows with your PC and Adept MV controller PC Requirements In order to use AdeptWindows your PC should be configured as follows IBM compatible PC with a processor capable of running Windows 95 a 90 MHz Pentium processor or faster is recommended Windows 95 or Windows NT operating system 500 Mb hard disk recommended 16 Mb RAM more memory may be required to run Windows NT VGA monitor For the Ethernet option the PC requires an Ethernet card and networking hardware cabling hub etc See section A 4 on page 64 for details For the serial option the PC requires an open serial port and a DB9 female to DB9 male serial pass thru cable See section A 3 on page 63 for details Adept MV Controller Requirements To use the Ethernet interface the Adept controller requires a 68040 processor and the AdeptNet option 12 AdeptWindows User s Guide Hev A System Requirements For the serial option a serial link between the PC and either the Adept 68030 or 68040 processor is required This link uses the RS232 serial port located on the Adept processor board NOTE The AdeptVision image is not supported by the serial option However vision graphics are displayed on the PC V version 1
73. ord Special Edit Init Data double click ddeini db Edit gt Copy Edit gt Paste AdeptWindows User s Guide Rev A 31 Chapter 2 AdeptWindows DDE The following record page is displayed ddeini db lei Ez Go Seek Edit Help 1 of 10 M Record modified Display Menu race wawe DOLE Name DDE SYS File Name ini mnu Description ontrolier model number Press to make changes NOW Command Line CALL dd sys def ZS N HSA ESB HA okay halt Numeric Values RE 8I ai F 1 8g G K U H L A String Values 8S IDE M startup only PB rre id rr dede dr dr dr dr do AA Ay dr My dr reir APA Die BP NP Vir dede NP dr YA Mr GP dr A APA Figure 2 8 DDEINI DB Record Page To edit the fields on the new record page select the desired field and enter the information See the section titled Customizing Initialization Databases in the AIM Customizer s Reference Guide for details The following information must be entered 1 Enter the name in item O that will be used by the DDE client to refer to this record The name must contain only alphanumeric characters and underscores 2 Verify the information in item O The Page Name field must contain DDE SYS The File Name field must contain ini mnu 3 Enter a description for the record page in item O 4 Verify that the Command Line field item O contains the information shown in Figure 2 8
74. ou need help Within the Continental United States Adept Technology maintains a Customer Service Center at its headquarters in San Jose CA The phone numbers are Service Calls 800 232 3378 24 hours a day 7 days a week 408 433 9462 FAX NOTE When calling with a controller related question please have the serial number of the controller If your system includes an Adept robot also have the serial number of the robot The serial numbers can be determined by using the ID command see the V Operating System User s Guide Application Questions If you have an application question you can contact the Adept Applications Engineering Support Center for your region Phone Adept Office Hours Region San Jose CA Voice 408 434 5033 Western Region States Fax 408 434 6248 AR AZ CA CO ID KS LA MO MT NE 8 00 A M 5 00 P M PST NM NV OK OR TX UT WA WY Cincinnati OH Voice 513 792 0266 Midwestern Region States Fax 513 792 0274 AL IA IL IN KY MI MN MS ND West 8 00 A M 5 00 P M EST NY OH West PA SD TN WI Southbury CT Voice 203 264 0564 Eastern Region States Fax 203 264 5114 CT DE FL GA MD ME NC NH MA 8 00 A M 5 00 P M EST NJ East NY East PA RI SC VA VT WV AdeptWindows User s Guide Hev A 15 Introduction Applications Internet E Mail Address If you have access to the Internet you can send application questions by
75. re the file is stored Double click the desired file name You also can enter the desired file name in the File name field item O o O Use this item to control the file type s displayed in item O e Choose Open to display the file Choose Cancel to clear all entries and close the dialog box 48 AdeptWindows User s Guide Hev A Creating and Editing a Program Adding a New Program to an Existing Program File To add a new program to an existing program file Edit New Pgm The New file program name dialog box is displayed See page 47 for details The Editor Window The editor window is displayed after you create a new program file or open an existing program file 5 Adept Windows Offline Editor C aim31c basesoft Custom 2 TJ File Edit Search Project Insert Tools Window Help Deal eje wis a ne ee SIDE EFFECTS None Copyright C 1994 by Adept Technology Inc RETURN L458 END MEDII AA error ABSTRACT This routine performs custom runtime initialization LSil vhen a runtime scheduler is started INPUT PARM None OUTPUT PARM error Standard operator code SIDE EFFECTS None error 0 No error LSii Meu set model ti mode ABSTRACT This routine is called from the status and control task L450 whenever the mode of a runtime task changes It may be used to set global variables or output signals as desi
76. rectory and path where the project will be stored You can type the information or choose Browse to scroll through a list of available drives directories Enter the project name The name must conform to file name specifications defined in Windows 95 The file name can contain up to 255 characters including spaces except for the following N lt gt Enter the project description This description appears when you access the Project Information dialog box Enter the project version For example if you are creating version 3 1 of your project Major 3 Minor 1 Enter the V version This enables the correct syntax checking for the V programs You can type the information or choose Browse to scroll through a list of available versions NOTE V versions 8 4 and 10 5 apply to all releases of version 8 x and version 10 x respectively Choose OK to save all entries and close the dialog box or choose Cancel to clear all entries and close the dialog box At this point you must create the V program files for the project see page 47 and place these files on the project file list see page 52 Opening an Existing Project To open an existing project File gt Open Project double click project name The Project Information dialog box is displayed See the following section for details Getting Information on the Current Project To get informat
77. red to reflect the status of any tasks This routine must execute quickly so that status and control messages are not slowed down PARM ti The task index from 1 to n of a runtime task whose mode is changing This value may be obtained as an output parameter from the ai task define routine call in your ai module init routine When a value of zero is received the qlobal Figure 3 8 Main Program Fditing Window At this point you can begin typing V code just as you would if you were using the SEE editor on the Adept controller Refer to the V Language User Guide for information on the SEE editor Also refer to the V Language Reference Guide for information on V commands The AdeptWindows Offline Editor has several automated features to assist you It checks the program instructions for the proper syntax as they are entered If you type an unknown command or use a command incorrectly the line is flagged with a guestion mark AdeptWindows User s Guide Rev A 49 Chapter 3 AdeptWindows Offline Editor e It formats each line with the proper indentation for all logic loops FOR WHILE etc It color codes variable names instructions and comments for easy identification You can select the color used for each item see page 57 for details You can use the Insert menu or icon bar to access a list of options that automatically insert For While Do etc structures into your programs at the cursor position
78. round colors for categories listed oss Control Constructs Current Line x O Cancel O oreground Color C RED C BLU GR C YEL BLK C GRY WHT Auto Variables Ce ackarouna Color C RED C BLU C GRN C YEL C BLK C GRY WHT Figure 3 15 Customize Highlighting Colors O Select the category that you want to change gory y 8 o Foreground Color sets the color of the text e Background Color sets the color of the area behind the text NOTE Always use different contrasting colors for the foreground and background Otherwise the corresponding text line s will not be legible Q choose Change to save the new settings O Choose Cancel to clear the new settings and close the dialog box This must be done prior to choosing item O AdeptWindows User s Guide Hev A 57 Chapter 3 AdeptWindows Offline Editor 3 9 Creating CALL Tree and Keyword Listings You can create calling tree listings for your V program files using the AdeptWindows Offline Editor This is useful for debugging the code and for documentation purposes CALL Tree Listing To create a call tree listing load a program file see page 48 and then Tools CallTrees The following window is displayed Ef listing out Notepad File Edit Search Help The current time is Fri Har 07 14 37 08 1997 H J a custom cu initialize cu initialize2 5 cu module init 5 cu error notify H cu sched s
79. s 192 168 144 101 Subnet Mask Figure A 5 Setting TCP IP Address for the PC Installing TCP IP on the Adept Controller The TCP IP protocol is configured on the Adept controller using AdeptNet AdeptNet is Adept s Ethernet networking solution for the Adept MV controller AdeptNet allows multiple Adept MV controllers to operate as nodes on a Local Area Network LAN that may include other non Adept devices such as PCs or UNIX based workstations AdeptNet software allows for peer to peer communications file transfer and sharing of a non Adept file server Refer to the Adept NET User s Guide for instructions on setting up the Ethernet connection on the Adept controller Setting the SYSIO DIP Switches The DIP switches located on the SYSIO board must be set as follows Switch 4 ON selects AdeptWindows Switch 5 OFF deselects the serial interface NOTE When the SYSIO DIP switches are set for AdeptWindows the AdeptWindows option must be enabled see section A 2 for details Otherwise the connection will succeed but all options will be unavailable AdeptWindows User s Guide Rev A 67 Appendix A Installing AdeptWindows Pinging the Controller To test the Ethernet connection it is useful to know how to PING between the PC and the controller The PING command sends a guick message between the two devices and tells you whether the raw Ethernet connection is working To test the communication from the PC t
80. s are set for AdeptWindows the AdeptWindows option must be enabled see section A 2 for details Otherwise the connection will succeed but all options will be unavailable Configuring the Serial Protocol The serial configuration is set up automatically by the AdeptWindows PC software and V version 12 0 operating system Therefore you do not need to configure the serial protocol NOTE The V version 12 0 operating system running on the Adept controller and the AdeptWindows PC application running on the PC are configured to operate at a predefined baud rate This protocol automatically overrides any previously defined serial configuration for the serial port on the Adept controller and on the PC A 4 Setting up an Ethernet Connection This section describes how to set up an Ethernet communication link between the PC and the Adept controller If you are using a serial communication link see section A 3 on page 63 NOTE The names of remote systems defined in Windows 95 must be specified using the Windows 95 Network menus or by using Dynamic Host Configuration Protocol DHCP in Windows 95 AdeptWindows has no control over these names See the Windows 95 online help system for additional details Configuring the Ethernet Connection for the PC and Adept Controller To set up the Ethernet connection between the Adept controller and PC you must configure both the PC and the controller On the PC you need a 10BASE T Ethernet interfa
81. s on the PC using the AdeptWindows Offline Editor and then transfer them to the Adept controller using AdeptFTP or AdeptNES See Chapter 3 for details on the AdeptWindows Offline Editor See the Instructions for Adept Utility Programs manual for details on the AdeptFIP client server utility See the AdeptNET User s Guide for details on AdeptNFS software 20 AdeptWindows User s Guide Hev A Disconnecting From the Adept Controller NOTE File transfers also require that File Transfer Protocol FTP or Network File System NFS software be running on the PC FIP software shareware versions can be downloaded from the Internet Also Windows 95 contains an FTP program that can be accessed by typing FIP at the MS DOS prompt or type FIP for a list of commands NFS software can be purchased from software retailers 1 3 Disconnecting From the Adept Controller In certain situations you may wish to disconnect from the current Adept controller and then connect to a different Adept controller without exiting AdeptWindows PC To disconnect from the Adept controller File Disconnect The following message is displayed AdeptWindows PC I OK to disconnect from Y No Figure 1 5 Disconnecting From the Adept Controller Choose Yes to disconnect You can now reconnect to a different Adept controller by following the procedure described in Connecting Through Ethernet on page 18 or Connecting Through a COM Port on
82. sin 31 customization 31 customizing DDEin 31 installing DDE With 68 Index modifying DDE records in 31 module 20 variable data reading or writing 39 variable database 28 variables 24 28 Application guestions 15 Attributes dialog box file 53 Attributes modifying project file 53 Automatic keyword expansion 42 B Background color 57 Bar AdeptWindows DDE main menu 73 AdeptWindows PC Main Menu 72 menu icon 44 Offline Editor main menu 74 Offline Editor menu icon 44 Bars and quick keys menu 71 BASEINIDB 29 BBS 16 Blank lines removing 54 Board Video Graphics 11 BUFFERED keyword 78 Building a project 54 Bulletin Board Adept 16 C Cable serial 19 Cabling required 63 CALL tree and keyword listings creating 58 listing 42 58 navigate 47 sample 58 Calls Service 15 Cell address dialog box V 18 Cells 84 Code color 42 Coldlinks 28 hotand 28 Color 56 background 57 code 42 customizing the Offline Editor highlighting 57 foreground 57 AdeptWindows User s Guide Rev A 87 Index highlighting 56 57 customizing 57 COM port 19 connecting througha 19 selection dialog box 19 Comments removing 54 Communication between PC and MV controller 12 Compliant systems Energy Star 84 Component selecting a new network 65 Configuration dialog box Windows 95 network 65 Configuring Ethernet connection for the PC and controller 64 serial protocol 64 Connecting through a COM port 19 through Ethernet 18 tohost 27 84 Co
83. sing AdeptWindows C 5 The MENU Keyword FSET lun Filename MENU In V version 12 0 the MENU keyword may appear only in the FSET instruction In version 11 x the MENU keyword was also allowed in the FOPEN instruction 78 AdeptWindows User s Guide Rev A Menu Events C 6 Menu Events Menu events may arrive at any time if they are enabled rather than just when the user clicks on the menu bar These apparently random events always have menu ID event 1 equal to zero For example when you enter the following command FSET MENU xxx yyy zzz three events will be received i e event 1 0 event 2 1 followed by event 1 0 event 2 2 followed by event 1 0 event 2 3 These events are intended to elicit the FSET PULLDOWN instructions from V to set the contents of all possible pull down menus C 7 Window Size In V version 11 x the minimum window size for windows containing a title bar is 64 x 64 This means that windows with a dimension of less than 64 x 64 are automatically increased to 64 x 64 In V version 12 0 the minimum window size is 8 x 8 this is the same as windows without title bars If your program specifies a window dimension less than 64 x 64 the window displayed in V version 12 0 will be smaller than it was in V version 11 x C 8 Example V Program The following V program illustrates the correct use of the items discussed in this
84. tart cu set mode cu startup 1d load mod Program is not in the file mu popup error Program is not in the file 3 1d lookup Program is not in the file 3 mu set goto Program is not in the file H cu shutdoun 5 cu task init 3 cu cs define H cu cy define 5 cu sig define H cu define dbs ai db define Proaran is not in the file Figure 3 16 Sample CALL Tree The window displays a text file with the call tree listing The file is displayed using Windows 95 Notepad It can be viewed edited and saved with Notepad or any text editor Keyword Listing The keyword listing menu item searches the program file for all occurrences of a keyword and outputs this to a text file To create a keyword listing Tools Listings 58 AdeptWindows User s Guide Rev A Creating CALL Tree and Keyword Listings The following dialog box is displayed Listing tool for programs x Input File 0 Cei basesoft Custom v2 E O OK Output x isting out Cancel e Program Abstracts Q Keyword Listing CALL Figure 3 17 Listing Tool for Programs O Enter the input file to process This automatically defaults to the path and file name of the file currently being edited However you can enter the path and file name of any program file O Enter the output file name this is the text file that contains the search results The default file name is LISTING OUT O Check this box to insert the input
85. tered trademark of Adept Technology Inc Adept AdeptOne AdeptOne MV AdeptThree AdeptThree XL AdeptThree MV PackOne PackOne MV HyperDrive Adept 550 Adept 550 CleanRoom Adept 1850 Adept 1850XP A Series S Series Adept MC Adept CC Adept IC Adept OC Adept MV AdeptVision AIM VisionWare AdeptMotion MotionWare PalletWare FlexFeedWare AdeptNet AdeptFTP AdeptNFS AdeptTCP IP AdeptForce AdeptModules AdeptWindows AdeptWindows PC AdeptWindows DDE AdeptWindows Offline Editor and V are trademarks of Adept Technology Inc Any trademarks from other companies used in this publication are the property of those respective companies Printed in the United States of America Table Of Contents Introduction na GG th en a 11 What Is AdeptWindows 11 System Reguirements 12 PC Reguirements 12 Adept MV Controller Requirements 12 Software Installation 14 Do Have to Read All the Manuals 14 HOW DOW Beil tirita a do er fes 15 HowCanlGetHelp 15 Within the Continental United States 15 Service Calls asa saa a na a 15 Application Questions 15 Applications Internet E Mail Address
86. the entire contents of the open file New Pgm Ctrl N Addsanew program to the current file see page 49 Delete Pgm Ctrl D Deletes a program from the current file Properties p Changes fonts foreground and background colors and V version see page 56 Set Font Size p Setsthefont size at the cursor position or for the selected text Set Font Style p Sets the font style at the cursor position or for the selected text V version Sets the current V version M akes the current program read only disables editing Defines the standard header template see page 56 Sets the foreground background colors for variables comments etc see page 57 74 AdeptWindows User s Guide Rev A Offline Editor Main Menu Bar Search Find Ctrl F Replace Ctrl H Goto Pgm Ctrl G Prev Pgm Ctrl P List All Pgms Ctrl A List Bad Pgms Ctrl B Next Error Ctrl E Files Project Info Project Build IF THEN CASE OF FOR WHILE DO UNTIL Pgm Header Date Time Insert Variable Finds a specified text string see page 45 Finds a specified text string and replaces it with a specified text string see page 45 Goes to the specified program in the current displayed file see page 46 Goes to the previously specified program in the current displayed file see page 46 Displays an alphabetical pick list of all the programs in
87. the file see page 46 Displays an alphabetical pick list of the programs in the file that have syntax errors see page 46 Locates the next error in the current displayed file see page 46 Displays the Project File dialog box see page 53 Displays the Project Information dialog box see page 51 Builds the project moves files to target directories squeezes files etc see page 54 Inserts a new IF structure into the program at the cursor position see page 50 Inserts a new CASE structure into the program at the cursor position see page 50 Inserts a new FOR structure into the program at the cursor position see page 50 Inserts a new WHILE structure into the program at the cursor position see page 50 Inserts a new DO structure into the program at the cursor position see page 50 Inserts the standard program header at the line below the PROGRAM line see page 56 Inserts a comment line with the current date and time at the cursor position see page 50 Inserts a variable declaration at the line below the PROGRAM line see page 50 AdeptWindows User s Guide Rev A 75 Appendix B Menu Bars and Quick Keys Tools Navigate CallTrees Squeeze Listings Expand Collapse Expand All Window Cascade Tile Narrow Mode Ctrl 0 1 Sample file 1 2 Sample file 2 Ouick Syntax On Line Using the Help system V Language Reference Menu Abo
88. troller Problems PC or Windows 95 Program Problems If any of your Windows 95 programs causes your PC to lock up or crash while AdeptWindows PC is running you may lose the AdeptWindows PC connection You can reconnect AdeptWindows PC as follows 1 Reboot your PC reguired only if your Windows 95 operating system locks up 2 Start AdeptWindows PC see section 1 2 on page 18 In most cases this reestablishes the connection However if you receive a timeout error 10060 simply reconnect AdeptWindows PC Adept MV Controller Problems If the Adept MV controller locks up or crashes while AdeptWindows PC is running you can reestablish the connection as follows 1 Exit AdeptWindows PC see section 1 4 on page 21 2 Rebootthe Adept MV controller 3 Start AdeptWindows PC see section 1 2 on page 18 D 6 SYSIO DIP Switches When the SYSIO DIP switches are set for AdeptWindows the AdeptWindows option must be enabled see section A 2 for details Otherwise the PC will connect to the MV controller but all options will be unavailable AdeptWindows User s Guide Rev A 85 Appendix D Troubleshooting D 7 TIFF Image Export TIFF image export is supported only for Vision images when running AdeptWindows PC To export any other window you can use any PC based screen capture program such as HiJaak by Quarterdeck Corporation Once the window is captured it can be saved to a file on the PC You can also use the Windows
89. tware 13 Requirements system 12 Routines with AdeptWindows using exist ing Vt 77 RS242 serial port 13 Running the DDE driver on the Vt controller 28 Running the Macro 38 S Sample CALL tree 58 keyword listing 59 SEE editor 20 49 Select Initialization Database Page 31 Selecting a new network component 65 a program 55 Selection dialog box COM Port 19 for Variable Records DDE Access 34 Network Protocol 66 Serial cable 19 connection setting up a 63 option 13 port RS242 13 protocol configuring the 64 Service calls 15 Setting TCP IP address for the PC 67 the SYSIO DIP switches 67 Setting up a serial connection 63 an Ethernet connection 64 Size window 79 Software Reguirements 13 Software installing the AdeptWindows 62 Specifying DDE item names 28 Standard header 56 Standard program header 56 Starting AdeptWindows Index DDE 24 Offline Editor 43 PC 18 Status information getting DDE 30 window DDE 30 Support application support 15 Internet E Mail Address 16 phone numbers 15 training information 16 Switches setting the SYSIO DIP 67 SYSIO DIP 64 67 85 Syntax errors 42 SYSIO DIP switches 64 setting the 67 System information reading 39 Network File 21 reguirements 12 MV controller 12 PC 12 Systems Energy Star Compliant 84 67 85 T TCP IP address for the PC setting 67 installing 65 on the Adept controller 67 Microsoft 85 NetManage 85 NetManage s 85 on the Adept control
90. uide Rev A sample keyword 59 tool for programs 59 Lists program pick 46 Locating errors 46 M Macro creating the 35 reading and writing data using a Mi crosoft Excel 35 running the 38 Main menu bar AdeptWindows DDE 73 Offline Editor 74 PC 72 Offline Editor 74 Main program editing window 49 Main window AdeptWindows DDE 24 Offline Editor 43 PC 20 Major project version 51 Menu Edit 50 events 79 Insert 50 Menu bar AdeptWindows DDE 73 Offline Editor 74 PC 72 Menu bars and Quick Keys 71 MENU keyword 78 Menu icon bar Offline Editor 44 Microsoft Excel 35 macro reading and writing data using a 35 reading data using 35 using 84 Minor project version 51 Modifying DDE records 31 DDE records in AIM 31 project file attributes 53 project files 52 MS DOS Prompt starting DDE from the 25 MV Controller communication between PC and 12 lock up 83 problems 85 Index N Names specifying DDE item 28 Navigate 46 Navigate CALL tree 47 Navigation 42 NetManage 85 NetManage s TCP IP 85 Network component selecting a new 65 Network configuration dialog box Windows 95 65 Network File System 21 Network protocol selection 66 New DDE records in AIM creating 31 File Program Name dialog box 48 network component selecting a 65 program file creating a 47 Project dialog box 50 project creating a 50 record page DDEINLDB 32 Next Error 46 NFS 21 Notepad Windows 95 60 O Offline Editor AdeptWindows 41 4
91. ure 3 2 Figure 3 3 Figure 3 4 Figure 3 5 Figure 3 6 Figure 3 7 Figure 3 8 Figure 3 9 Figure 3 10 Figure 3 11 Figure 3 12 Figure 3 13 Figure 3 14 Figure 3 15 Figure 3 16 Figure 3 17 Figure 3 18 Figure A 1 Figure A 2 Figure A 3 Figure A 4 Figure A 5 Figure A 6 List of Figures Connections Between PC and Adept MV Controller s 11 DDE Communication Between PC and Adept MV Controller 12 Connection Type Dialog BOK 18 V Cell Address Dialog BOK 18 COM Port Selection Dialog BOK 19 AdeptWindows PC Main Window 20 Disconnecting From the Adept Controller 21 Exiting AdeptWindows PC 21 AdeptWindows DDE Main Window 24 ListofDefinedHosts 26 Define Adept Hosts 26 Connecting to Host 27 Disconnecting From Host 27 DDE Status Window 30 Select Initialization Database Page 31 DDEINI DB Record Page soo soon kan kkka eee 32 DDE Initialization Data Definition 33 DDE Access Selection for Variable Records 34 Offline E
92. ut AdeptWindows Offline Editor Displays an interactive CALL tree for the current file Move to a CALLed program by choosing it see page 46 Creates a text file listing of all CALLs in a specific program see page 58 Creates a squeezed compressed version of the current program Creates a text file listing of all occurrences of a specified keyword see page 58 Expands or collapses the CALL tree created by the Navigate option see page 47 Expands all branches of the CALL tree created by the Navigate option see page 47 Displays all open windows one in front of another Displays all open windows one next to another Displays only one program in a multiprogram file In Narrow mode Find and Replace apply only to the displayed program Displays a list of available windows Select a window name to make that window the active window Help Sh F1 F1 Not enabled for this version Not enabled for this version Not enabled for this version Displays a pop up window with information about the version edit and edit date 76 AdeptWindows User s Guide Rev A Using Existing V Routines with AdeptWindows Gal Introduction sess caries a ee t ae f e elle E 78 C 2 The BUFFERED Keyword 78 C 3 The EVENT CONNECT Keyword 78 C 4 ThelDKeyword 78 C 5 The MENU Keyword
93. ws License 63 A 3 Setting up a Serial Connection 63 Required Cabling 63 Hardware Connection 63 Configuring the Serial Protocol 64 A 4 Setting up an Ethernet Connection 64 Configuring the Ethernet Connection for the PC and Adept Controller 64 Installing TCP IP on the PC 65 Installing TCP IP on the Adept Controller 67 Setting the SYSIO DIP Switches 67 Pinging the Controller 68 PingingthePC 68 A 5 Installing DDE With AIM 68 A 6 Other Considerations 69 B menu Bars and Quick Keys ai AG a aw aa 71 B 1 AdeptWindows PC MainMenuBar 72 B 2 AdeptWindows DDE Server MainMenuBar 73 B 3 Offline Editor MainMenuBar 74 C Using Existing V Routines with AdeptWindows 77 Gal IRTOALCTION 1 45 si ra Naman p EIE Ee A AN LANA E a 78 C 2 The BUFFERED Keyword 78 C 3 The EVENT CONNECT Keyword 78 C 4 ThelDKeyword
Download Pdf Manuals
Related Search
Related Contents
CSW5100 V3.10 Installation and Operation Manual User Manual ingo-man ® Touchless - Ophardt Hygiene Mode d`emploi 6 a tire d`elles.qxd - Association des Revues Plurielles K.T.Fスペシャルエディション保証規約 Samsung Poseidon Big Asia Top Loader with Silver Nano, 13 kg, Imperial Silver User Manual iOptron SmartStar -PR EQ User's Manual NEC P521 Mechanical Drawings ICC ICRDSVF0IV Copyright © All rights reserved.
Failed to retrieve file