- 19 -
4.2.3. FT_Close
Function
Close the USB port and execute driver termination processing.
Format
FT_Close (FT_HANDLE ctHandle)
ctHandle
:
Set the handle number.
Return vale
FT_OK
:
In case oc “0”, success.
Other than “0”
:
Error
4.2.4. FT_SetBitMode
Function
Set oc I/O oc 8 bits
Format
FT_SetBitMode (FT_HANDLE ctHandle, UCHAR ucMask, UCHAR ucMode)
ctHandle
:
Set the handle number.
ucMask
:
Set HEX(0F), 0
:
Input 1
:
Output
In the ZS-6225, the upper 4 bits are input to the photocoupler and
lower 4 bits are set to the relay output. Since it is set “0F”.
ucMode
:
Set “1”
Return value
FT_OK
:
In case oc “0”, success.
Other than “0”
:
Error
4.2.5. FT_SetBaudRate
Function
Set the rewrite time oc output data.
Format
FT_SetBaudRate (FT_HANDLE ctHandle, DWORD dwBaudRate)
ctHandle
:
Set the handle number.
DwBaudRate
:
Set “9600”.
When set to 9600, data is rewritten at 1 / (9600 × 16) = 6.51 µs
cycle. Ic there is no data in the buccer, the previous output is
continued.
Return value
FT_OK
:
In case oc “0”, success.
Other than “0”
:
Error