Denso RC5 Specifications Page 72

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 71
2-10
'!TITLE ”Sending”
PROGRAM PRO2
DO
PRINT #2,I1
DELAY 2000
LOOP
END
Fig. 2-8 Program “PRO2” “Sending” of the Robot Controller
2.4.4.2 Personal Computer Program
A program in the personal computer is shown below.
The beginning section of the program list defines a program module for
communication. The last section of the program has programs for receiving
data by the use of each module.
Note: This program is described using Visual Basic made by
Microsoft Corporation and using the communication control
made by Bunka Orient Co., Ltd. Therefore, run the program on
the personal computer where Visual Basic and PDQComm are
installed.
' Module defining statement
'
' Communication port and communication speed setting
' PortNo% : Designates communication port 1 or 2
' ComInitString$: Sets communication speed etc. “9600,N,8,1”
'
Private Sub CommOpen(PortNo%,ComInitString$)
'----------------------------------------
' Communication speed setting
'----------------------------------------
PDQComm1.CommPort = PortNo%
PDQComm1.Settings= ComInitString$ '“9600,N,8,1”
'----------------------------------------
' Without handshake
' Input timeout value setting (in millimeters)
' Receiving buffer size setting
' Sending buffer size setting
'----------------------------------------
PDQComm1.Handshaking = 0
PDQComm1.InTimeout = 50
PDQComm1.InBufferSize = 2048
PDQComm1.OutBufferSize = 2048
'----------------------------------------
' Open a port.
'---------------------------------------- Continued on the
following page.
Page view 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 691 692

Comments to this Manuals

No comments