20
Local and Remote Operation
Pin-out of Communication Port
Figure 10. RS-232 Connector Pin-out
Programming Examples
Visual Basic example:
Private Sub Command1_Click()
'send command to XT560
MSComm1.Output = "VAL ?" & Chr(13)
'delay 1 second to read XT560
Timer1.Enabled = True
End Sub
Private Sub Form_Load()
'set serial port
MSComm1.InputMode = comInputModeText
MSComm1.Settings = "9600,n,8,1"
MSComm1.CommPort = 1
MSComm1.PortOpen = True
'set timer to delay 1 second
Timer1.Enabled = False
Timer1.Interval = 1000
End Sub