EasyManuals Logo

Trio Motion Coordinator MC224 User Manual

Default Icon
566 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #491 background imageLoading...
Page #491 background image
Motion Coordinator Technical Reference Manual
Using the Trio ActiveX Control 12-5
Connection Commands
Close
Description
Closes the connection between the TrioPC ActiveX control and the Motion Coordi-
nator
Syntax:
Close(PortMode)
Parameters
Return Value:
None
.
Example
Rem Close the connection when form unloads
Private Sub Form_Unload(Cancel As Integer)
TrioPC1.Close(0)
frmMain.Refresh
End Sub
IsOpen
Description
Returns the state of the connection between the TrioPC ActiveX control and the
Motion Coordinator
Syntax:
IsOpen(PortMode)
Parameters
Return Value:
TRUE if port is open, FALSE if it is closed
.
Example
Rem Close the connection when form unloads
Private Sub Form_Unload(Cancel As Integer)
If TrioPC1.IsOpen(0) Then
TrioPC1.Close(0)
End If
frmMain.Refresh
End Sub
short PortMode:
-1: all ports, 0: synchronous port, >1: asynchronous port
short PortMode:
-1: all ports, 0: synchronous port, >1: asynchronous port

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Trio Motion Coordinator MC224 and is the answer not in the manual?

Trio Motion Coordinator MC224 Specifications

General IconGeneral
BrandTrio
ModelMotion Coordinator MC224
CategoryController
LanguageEnglish

Related product manuals