48
●
Chapter 4 - Software Tools and Communications
DMC-18x2
Dim m_nResponseLength As Long
Dim m_sResponse As String * 256
Private Sub Command1_Click()
m_nRetCode = DMCCommand(m_hDmc, "TPX", m_sResponse, m_nResponseLength)
Text1.Text = Val(m_sResponse)
End Sub
Private Sub Form_Load()
m_nResponseLength = 256
m_nController = 1
m_nRetCode = DMCOpen(m_nController, 0, m_hDmc)
End Sub
Private Sub Form_Unload(Cancel As Integer)
m_nRetCode = DMCClose(m_hDmc)
End Sub
Where:
‘m_nController’ is the number for the controller in the Galil registry.
‘m_hDmc’ is the DMC handle used to identify the controller. It is returned by DMCOpen.
‘m_nRetCode’ is the return code for the routine.
‘m_nResponseLength’ is the response string length which must be set to the size of the response string.
‘m_sResponse’ is the string containing the controller response to the command.
DOS, Linux, and QNX tools
Galil offers unsupported code examples that demonstrate communications to the controller using the
following operating systems.
DOS
DOS based utilities & Programming Libraries for Galil controllers, which includes a terminal, utilities
to upload and download programs, and source code for BASIC and C programs. Download DMCDOS
at
http://www.galilmc.com/support/download.html#dos
.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание DMC-18 2 Series
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 5: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 11: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...