logo资料库

MotoManCOM32.pdf

第1页 / 共295页
第2页 / 共295页
第3页 / 共295页
第4页 / 共295页
第5页 / 共295页
第6页 / 共295页
第7页 / 共295页
第8页 / 共295页
资料共295页,剩余部分请下载后查看
1 INTRODUCTION
1.1 MOTOCOM32
1.2 Features of Ethernet Communications
High speed transmission
Transmissions between a multiple number of HOSTS
1.3 Hardware Requirements for MOTOCOM32
1.3.1 RS-232C Transmission cable specifications
1.4 Hardware Lock Key
2 SETUP
2.1 Installing MOTOCOM32
2.1.1 Installing on Windows Vista / 7
2.1.2 Installing on Windows XP
2.1.3 Installing on Windows 2000
2.1.4 Installing on Windows 95 / 98 / NT4.0
2.2 Robot Controller Configuration
Parameter settings
Transmission protocol designation
Command Remote Setting
2.3 Environmental Settings for Use of Ethernet
2.3.1 MOTOCOM32 Application Settings
parameter Setting
2.3.2 Personal Computer Settings
Hardware settings
Windows Network settings
2.3.3 Robot Controller Setting
Hardware settings
Communication parameter settings
2.3.4 Network Setting
2.3.5 High Speed Link Server
Server
Communication Status Monitor
Deletion of transmission information
2.4 Restrictions
2.4.1 DX100, NX100, YASNAC XRC/MRC and Personal Computer Restrictions
The port used for TCP/IP
2.4.2 Personal Computer Restrictions
Same file access
Same Window handle cannot be used
Prohibit the use in multi-thread
2.4.3 DX100, NX100, YASNAC Robot Controller Restrictions
Multiple personal computer access
CMOS batch storage
2.4.4 String Variable Transmission Support
2.5 Execution of MOTOCOM 32 Programs
3 OPERATION OF HIGH SPEED JOBEXCHANGER FUNCTIONS
3.1 What is the High Speed JobExchanger?
3.2 Main Display
3.2.1 Menu Structure
[File] menu
[Trans Mode] menu
[View] menu
[Option] menu
[Help] menu
3.2.2 Tool Bar
3.3 Operation Procedure
3.3.1 Starting Up High Speed JobExchanger
3.3.2 Copying Files
File operations other than Menu and Tool Bar
3.3.3 Moving Files
3.3.4 Deleting Files
3.3.5 Selecting a Multiple Number of Files
3.3.6 Displaying File Contents
Displaying File Contents
Display of the job header information
3.3.7 File Type Setting
3.3.8 Print Out
3.3.9 Batch Processing
Upload Batch Jobs
Download Batch Jobs
3.3.10 Switching the Target Robot
3.3.11 Transmission Files
3.3.12 INI Files
3.3.13 Language Files
3.4 Editing of Language Files
3.4.1 Editing Language Files
3.4.2 Creating New Language Files
4 OPERATION OF HOST CONTROL FUNCTION
4.1 Host Control Function
4.2 Startup and Exit
Startup
Exit
4.3 Robot Control Function
4.4 Read/Write of I/O Signals
List of I/O Signals that can be Read or Written
I/O signal read/write display
4.5 Environmental Settings
4.6 Language Selection
4.7 Version Information
5 AUTO JOB CHANGER OPERATION
5.1 AUTO JOB CHANGER OPERATION
5.2 Before Execution of "Automatic Operation"
5.3 Startup and Exit
Startup
Exit
5.4 Operation Procedure
5.4.1 Register Job
New registration
Deletion
5.4.2 Automatic operation
5.4.3 Cancel
5.4.4 Display Log File
5.4.5 Deletion Message
5.5 Environmental Settings
5.5.1 Environmental Settings
5.5.2 Automatic Operation Startup
5.5.3 Take Log File
5.6 Language Selection
5.7 Version Information
6 CREATING A TRANSMISSION APPLICATION
6.1 Outline
6.2 Using Visual Basic
6.2.1 Preparation
6.2.2 How to Create a transmission application
Creation of Code Module
Creation of Form Module
Creation and Execution of EXE File
6.3 Using Visual C++
6.3.1 Preparation
6.3.2 How to Create a transmission application
Creation of Skelton
Definition of DLL Call
Editing with a Dialog Box
Addition of Functions and Variables
Creation and Execution of EXE File
6.4 Using Visual C#
6.4.1 Preparation
6.4.2 How to Create a transmission application
Creation of Project
Reference configuration of Library
Creation of Form Module
Creation and Execution of EXE File
6.5 Explanation of Auto Job Changer Software Creation Procedure
Sub DciOnline
Function DciGetJobNo
Function DciLoadSave
6.6 Each Function Program List
Function Ms_BscOpenComm()
Function Ms_BscCloseComm()
Sub CmdDownload_Click ()
Sub CmdUpLoad_Click ()
Sub CmdExit_Click ()
CTestDlg::TestOpenComm function
CTestDlg::TestCloseComm function
CTestDlg::OnDownload function
CTestDlg::OnUpload function
private short Ms_BscOpenComm()
private short Ms_BscCloseComm()
private void CmdDownLoad_Click()
private void CmdUpLoad_Click()
private void CmdExit_Click()
7 COMMUNICATION TRANSMISSION
7.1 Outline
7.2 File Data Transmission Function
BscDownload
BscDownloadEx
BscUpload
BscUploadEx
7.3 Robot Control Function
BscFindFirst
BscFindFirstMaster
BscFindNext
BscFindNextMaster
BscGetCtrlGroup
BscGetCtrlGroupXrc
BscGetCtrlGroupDX
BscGetError
BscGetError2
BscGetFirstAlarm
BscGetFirstAlarmS
BscGetNextAlarm
BscGetNextAlarmS
BscGetStatus
BscGetUFrame
BscGetVarData
BscGetVarData2
BscHostGetVarData
BscHostGetVarDataM
BscGetVarDataEx
BscIsAlarm
BscIsCtrlGroup
BscIsCtrlGroupXrc
BscIsCtrlGroupDX
BscIsCycle
BscIsError
BscIsErrorCode
BscIsHold
BscIsJobLine
BscIsJobName
BscIsJobStep
BscIsLoc
BscGetPulsePos
BscIsPlayMode
BscIsRemoteMode
BscIsRobotPos
BscGetCartPos
BscIsServo
BscIsTaskInf
BscIsTaskInfXrc
BscIsTeachMode
BscJobWait
BscReadAlarmS
BscCancel
BscChangeTask
BscContinueJob
BscConvertJobP2R
BscConvertJobR2P
BscDeleteJob
BscHoldOff
BscHoldOn
BscHostPutVarData
BscHostPutVarDataM
BscPutVarDataEx
BscImov
BscImovEx
BscImovEx2
BscMDSP
BscMov
BscMovEx
BscMovEx2
BscMovj
BscMovjEx
BscMovl
BscMovlEx
BscOPLock
BscOPUnLock
BscPMov
BscPMovEx
BscPMovj
BscPMovjEx
BscPMovl
BscPMovlEx
BscPutUFrame
BscPutUFrameEx2
BscPutVarData
BscPutVarData2
BscStartJob
BscSelectJob
BscSelectMode
BscSelLoopCycle
BscSelOneCycle
BscSelStepCycle
BscSetLineNumber
BscSetMasterJob
BscReset
BscSetCtrlGroup
BscSetCtrlGroupXrc
BscSetCtrlGroupDX
BscServoOff
BscServoOn
7.4 DCI Function
BscDCILoadSave
BscDCILoadSaveOnce
BscDCIGetPos
BscDCIGetPos2
BscDCIGetVarData
BscDCIGetVarDataEx
BscDCIPutPos
BscDCIPutPos2
BscDCIPutVarData
BscDCIPutVarDataEx
7.5 I/O Signal Read/Write Function
BscReadIO
BscReadIO2
BscWriteIO
BscWriteIO2
7.6 Other Functions
BscClose
BscCommand
BscConnect
BscDisConnect
BscDiskFreeSizeGet
BscEnforcedClose
BscGets
BscInBytes
BscOpen
BscOutBytes
BscPuts
BscReConnect
BscReStartJob
BscSetBreak
BscSetCom
BscSetCondBSC
BscSetEServerMode
BscSetEther
BscStatus
7.7 DLL Functions Corresponding to Transmission- related Key words
7.7.1 DLL Functions Related to Transmission Commands
Read/Monitoring System
Read/Data Access System
Operation System
Editing System
Job Selection System
Startup System
Other DLL Functions
7.7.2 DLL Functions Related to DCI Function
7.7.3 DLL Functions Related to I/O Read/Write
7.7.4 DLL Functions Related to Personal Computer Communications Port
7.7.5 Other DLL Functions
8 Appendix
8.1 Frequently-asked questions
When the driver has been installed with USB type key connected to a personal computer
When the previous version key driver has been installed after installing the key driver
MOTOCOM32 OPERATION MANUAL YASKAWA Upon receipt of the product and prior to initial operation, read this manual thoroughly, and retain for future reference. YASKAWA ELECTRIC CORPORATION 1/295
MANDATORY This manual explains the MOTOCOM32. Read this manual carefully and be sure to understand its contents before operation. General items related to safety are listed in instruction manuals sup- plied with the manipulator. To ensure correct and safe operation, care- fully read the instructions on safety before reading this manual. CAUTION Some drawings in this manual are shown with the protective covers or shields removed for clarity. Be sure all covers and shields are replaced before operating this product. The drawings and photos in this manual are representative examples and differences may exist between them and the delivered product. YASKAWA may modify this model without notice when necessary due to product improvements, modifications, or changes in specifications. If such modification is made, the manual number will also be revised. If your copy of the manual is damaged or lost, contact a YASKAWA rep- resentative to order a new copy. The representatives are listed on the back cover. Be sure to tell the representative the manual number listed on the front cover. YASKAWA is not responsible for incidents arising from unauthorized modification of its products. Unauthorized modification voids your prod- ucts warranty. Software described in this manual is supplied against licensee only, with permission to use or copy under the conditions stated in the license. No part of this manual may be copied or reproduced in any form without written consent of YASKAWA. 2/295
Notes for Safe Operation Before using this product, read this manual and all the other related documents carefully to ensure knowledge about the product and safety, including all the cautions. In this manual, the Notes for Safe Operation are classified as WARNING, CAUTION, MANDATORY, or PROHIBITED. WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or serious injury to personnel. CAUTION Indicates a potentially hazardous situation which, if not avoided, could result in minor or moderate injury to personnel and dam- age to equipment. It may also be used to alert against unsafe practices. MANDATORY Always be sure to follow explicitly the items listed under this heading. PROHIBITED Must never be performed. Even items described as CAUTION may result in a serious accident in some situations. At any rate, be sure to follow these important items. NOTE To ensure safe and efficient operation at all times, be sure to follow all instructions, even if not designated as CAUTION and WARNING. 3/295
Notation for Menus and Buttons Descriptions of the programming pendant, buttons, and displays are shown as follows: Item Menu Button Manual Designation The menus displayed on screen are denoted with { }. ex. {TOOL}. The buttons, check boxes, radio buttons displayed on screen are denoted with [ ]. ex. [Close]; [Sync] check box; [Fast] radio button. Description of the Operation Procedure In the explanation of the operation procedure, the expression "Select " means the follow- ing operations: To move the cursor to the object item and left-click on it with the mouse. To pick out the object item by the tab key and press the Enter key. (In case of selecting a menu, use arrow keys instead of the tab key to pick out the object item, then press the Enter key.) Registered Trademark In this manual, names of companies, corporations, or products are trademarks, registered trademarks, or bland names for each company or corporation. The indications of (R) and TM are omitted. 4/295
1 INTRODUCTION 1.1 MOTOCOM32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 1.2 Features of Ethernet Communications . . . . . . . . . . . . . . 13 ! High speed transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 ! Transmissions between a multiple number of HOSTS . . . . . 13 1.3 Hardware Requirements for MOTOCOM32 . . . . . . . . . 15 1.3.1 RS-232C Transmission cable specifications . . . . . . . . . . . . . . . 16 1.4 Hardware Lock Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2 SETUP 2.1 Installing MOTOCOM32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.1.1 Installing on Windows Vista / 7 . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.1.2 Installing on Windows XP. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.1.3 Installing on Windows 2000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.1.4 Installing on Windows 95 / 98 / NT4.0 . . . . . . . . . . . . . . . . . . . . 19 2.2 Robot Controller Configuration . . . . . . . . . . . . . . . . . . . . . . 20 ! Parameter settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 ! Transmission protocol designation. . . . . . . . . . . . . . . . . . . . . 20 ! Command Remote Setting. . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.3 Environmental Settings for Use of Ethernet . . . . . . . . . 22 2.3.1 MOTOCOM32 Application Settings . . . . . . . . . . . . . . . . . . . . . . 22 ! parameter Setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3.2 Personal Computer Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 ! Hardware settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 ! Windows Network settings. . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.3.3 Robot Controller Setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 ! Hardware settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 ! Communication parameter settings . . . . . . . . . . . . . . . . . . . . 25 2.3.4 Network Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.3.5 High Speed Link Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 ! Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 ! Communication Status Monitor . . . . . . . . . . . . . . . . . . . . . . . 26 ! Deletion of transmission information . . . . . . . . . . . . . . . . . . . 26 2.4 Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2.4.1 DX100, NX100, YASNAC XRC/MRC and Personal Computer Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ! The port used for TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2.4.2 Personal Computer Restrictions . . . . . . . . . . . . . . . . . . . . . . . . 27 ! Same file access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ! Same Window handle cannot be used. . . . . . . . . . . . . . . . . . 27 ! Prohibit the use in multi-thread . . . . . . . . . . . . . . . . . . . . . . . 27 2.4.3 DX100, NX100, YASNAC Robot Controller Restrictions . . . . . . 28 ! Multiple personal computer access . . . . . . . . . . . . . . . . . . . . 28 ! CMOS batch storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5/295
2.4.4 String Variable Transmission Support . . . . . . . . . . . . . . . . . . . . 28 2.5 Execution of MOTOCOM 32 Programs. . . . . . . . . . . . . . 29 3 OPERATION OF HIGH SPEED JOBEXCHANGER FUNCTIONS 3.1 What is the High Speed JobExchanger? . . . . . . . . . . . . 30 3.2 Main Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.2.1 Menu Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ! [File] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ! [Trans Mode] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ! [View] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ! [Option] menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ! [Help] menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.2.2 Tool Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.3 Operation Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.3.1 Starting Up High Speed JobExchanger . . . . . . . . . . . . . . . . . . . 40 3.3.2 Copying Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 ! File operations other than Menu and Tool Bar. . . . . . . . . . . . 40 3.3.3 Moving Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 3.3.4 Deleting Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 3.3.5 Selecting a Multiple Number of Files . . . . . . . . . . . . . . . . . . . . . 41 3.3.6 Displaying File Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ! Displaying File Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 ! Display of the job header information. . . . . . . . . . . . . . . . . . . 42 3.3.7 File Type Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.3.8 Print Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 3.3.9 Batch Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 ! Upload Batch Jobs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 ! Download Batch Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.3.10 Switching the Target Robot . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 3.3.11 Transmission Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 3.3.12 INI Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.3.13 Language Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.4 Editing of Language Files . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.4.1 Editing Language Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.4.2 Creating New Language Files . . . . . . . . . . . . . . . . . . . . . . . . . . 46 4 OPERATION OF HOST CONTROL FUNCTION 4.1 Host Control Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.2 Startup and Exit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 ! Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 ! Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 6/295
4.3 Robot Control Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.4 Read/Write of I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 ! List of I/O Signals that can be Read or Written . . . . . . . . . . . 51 ! I/O signal read/write display . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.5 Environmental Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.6 Language Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 4.7 Version Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 5 AUTO JOB CHANGER OPERATION 5.1 AUTO JOB CHANGER OPERATION . . . . . . . . . . . . . . . 57 5.2 Before Execution of "Automatic Operation" . . . . . . . . . . 58 5.3 Startup and Exit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 ! Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 ! Exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 5.4 Operation Procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 5.4.1 Register Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 ! New registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 ! Deletion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.4.2 Automatic operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.4.3 Cancel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 5.4.4 Display Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 5.4.5 Deletion Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 5.5 Environmental Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 5.5.1 Environmental Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 5.5.2 Automatic Operation Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.5.3 Take Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.6 Language Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 5.7 Version Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 6 CREATING A TRANSMISSION APPLICATION 6.1 Outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 6.2 Using Visual Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.2.1 Preparation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 6.2.2 How to Create a transmission application . . . . . . . . . . . . . . . . . 68 ! Creation of Code Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 ! Creation of Form Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 ! Creation and Execution of EXE File. . . . . . . . . . . . . . . . . . . . 69 6.3 Using Visual C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 6.3.1 Preparation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 6.3.2 How to Create a transmission application . . . . . . . . . . . . . . . . . 71 7/295
! Creation of Skelton. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 ! Definition of DLL Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 ! Editing with a Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 ! Addition of Functions and Variables. . . . . . . . . . . . . . . . . . . . 72 ! Creation and Execution of EXE File. . . . . . . . . . . . . . . . . . . . 73 6.4 Using Visual C#. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 6.4.1 Preparation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 6.4.2 How to Create a transmission application . . . . . . . . . . . . . . . . . 74 ! Creation of Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 ! Reference configuration of Library. . . . . . . . . . . . . . . . . . . . . 74 ! Creation of Form Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 ! Creation and Execution of EXE File. . . . . . . . . . . . . . . . . . . . 75 6.5 Explanation of Auto Job Changer Software Creation Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 ! Sub DciOnline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 ! Function DciGetJobNo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 ! Function DciLoadSave. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.6 Each Function Program List. . . . . . . . . . . . . . . . . . . . . . . . . 80 ! Function Ms_BscOpenComm() . . . . . . . . . . . . . . . . . . . . . . . 80 ! Function Ms_BscCloseComm() . . . . . . . . . . . . . . . . . . . . . . . 81 ! Sub CmdDownload_Click (). . . . . . . . . . . . . . . . . . . . . . . . . . 82 ! Sub CmdUpLoad_Click () . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 ! Sub CmdExit_Click (). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 ! CTestDlg::TestOpenComm function . . . . . . . . . . . . . . . . . . . 85 ! CTestDlg::TestCloseComm function . . . . . . . . . . . . . . . . . . . 86 ! CTestDlg::OnDownload function . . . . . . . . . . . . . . . . . . . . . . 87 ! CTestDlg::OnUpload function . . . . . . . . . . . . . . . . . . . . . . . . 88 ! private short Ms_BscOpenComm() . . . . . . . . . . . . . . . . . . . . 89 ! private short Ms_BscCloseComm() . . . . . . . . . . . . . . . . . . . . 90 ! private void CmdDownLoad_Click(). . . . . . . . . . . . . . . . . . . . 90 ! private void CmdUpLoad_Click() . . . . . . . . . . . . . . . . . . . . . . 92 ! private void CmdExit_Click() . . . . . . . . . . . . . . . . . . . . . . . . . 93 7 COMMUNICATION TRANSMISSION 7.1 Outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 7.2 File Data Transmission Function . . . . . . . . . . . . . . . . . . . . 95 ! BscDownload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 ! BscDownloadEx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 ! BscUpload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 ! BscUploadEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 7.3 Robot Control Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 ! BscFindFirst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 ! BscFindFirstMaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 ! BscFindNext . . . . . . . . . . . . . . . . . . . . 103 ! BscFindNextMaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 8/295
分享到:
收藏