Specifications
28/201
rc = BscClose(ncid)
ncid = -1
GoTo Ms_BscOpenComm_Exit
End If
‘Connect communications line.
rc = BscConnect(ncid)
If rc <> 1 Then
rc = BscClose(ncid)
ncid = -1
GoTo Ms_BscOpenComm_Exit
End If
Ms_BscOpenComm_Exit:
Ms_BscOpenComm = ncid
End Function
This function opens the COM port or the Ethernet line. After the connection is finished, the
handle values are sent back as return values. The following operation for the Motocom32.DLL
is performed using these handle values.
Note: Double underline
indicates transmission functions belonging to the MOTOCOM32, single
underline indicates functions of which program lists are described below, and dotted underline
indicates the functions which are described below.
Function Ms_BscCloseComm
Function Ms_BscCloseComm(ncid as integer) as Integer
Dim rc As Integer
‘Cut the communications line.
rc = BscDisConnect(ncid)
‘Close the port.
rc = BscClose(ncid)
Ms_BscCloseComm = rc
End Sub
Note: Double underline
indicates transmission functions belonging to the MOTOCOM32, single
underline indicates functions of which program lists are described below, and dotted underline
indicates the functions which are described below.
Function DciGetJobNo
Function DciGetJobNo (nCid As Integer, JobNo As Integer, lst As Control, LogFile As String) As
Integer
'input nCid Communication handler
' Lst List name for message output