
- 18 -
4.2.3. FT_SetBitMode
Function
Set of I/O of 8 bits.
Format
FT_SetBitMode (FT_HANDLE ftHandle, UCHAR ucMask, UCHAR ucMode)
ftHandle
:
Set the handle number.
ucMask
:
Set HEX(0F), 0
:
Input 1
:
Output
In the ZS-6224, 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 of “0”, success.
Other than “0”
:
Error
4.2.4. FT_SetBaudRate
Function
Set the rewrite time of output data.
Format
FT_SetBaudRate (FT_HANDLE ftHandle, DWORD dwBaudRate)
ftHandle
:
Set the handle number.
DwBaudRate
:
Set “9600”
When set to 9600, data is rewritten at 1 / (9600 × 16) = 6.51 µs
cycle. If there is no data in the buffer, the previous output is
continued.
Return vale
FT_OK
:
In case of “0”, success.
Other than “0”
:
Error