Component: Coupling (Mechatronics)

From Flowcode Help
Revision as of 21:04, 16 November 2021 by Wiki bot (talk | contribs)
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Mechatronics


Coupling component

A simple component to couple together two rotating shafts. An essential component when working with motors, gearboxes, encoders and other rotational systems.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

Fc9-comp-macro.png Rotate
Simulation macro called behind the scenes by motor components when rotating. 
[[File:]] - Angle
 
Fc9-void-icon.png - VOID Return


Fc9-comp-macro.png FT_SetTimeouts
This function sets the read and write timeouts for the device. 
[[File:]] - Handle
Handle of the device. 
[[File:]] - ReadTimeout
Read timeout in milliseconds. 
[[File:]] - WriteTimeout
Write timeout in milliseconds. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetBitMode
Enables different chip modes. 
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Mask
Required value for bit mode mask. This sets up which bits are inputs and outputs. A bit value of 0 sets the corresponding pin to an input, a bit value of 1 sets the corresponding pin to an output. 
Fc9-u8-icon.png - BYTE Mode
0=Reset / 1=AsyncBB / 2=MPSSE / 4=SyncBB / 8=MCUHost / 16=FastOpto / 32=CBUS / 64=SyncFIFO 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetRts
This function sets the Request To Send (RTS) control signal. 
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_GetDeviceInfoDetail
This function returns an entry from the device information list. 
Fc9-u32-icon.png - ULONG Index
Index of the entry in the device info list. 
Fc9-u32-icon.png - ULONG Flags
Pointer to unsigned long to store the flag value. 
Fc9-u32-icon.png - ULONG Type
Pointer to unsigned long to store device type. 
Fc9-u32-icon.png - ULONG ID
Pointer to unsigned long to store device ID. 
Fc9-u32-icon.png - ULONG LocID
Pointer to unsigned long to store the device location ID. 
Fc9-u8-icon.png - BYTE SerNum
Pointer to buffer to store device serial number as a null terminated string 
Fc9-u8-icon.png - BYTE Descript
Pointer to buffer to store device description as a null-terminated string 
[[File:]] - TempHandle
Pointer to a variable of type FT_HANDLE where the handle will be stored 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_Close
Close an open device. 
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_ClrDtr
This function clears the Data Terminal Ready (DTR) control signal. 
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_Purge
This function purges receive and transmit buffers in the device. 
[[File:]] - Handle
Handle of the device. 
[[File:]] - Mask
Used to determine which buffer to purge, 1=Rx / 2=Tx / 3=Both 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_GetQueueStatus
Gets the number of bytes in the receive queue. 
[[File:]] - Handle
Handle of the device. 
[[File:]] - RxQueueLength
Pointer to a variable of type DWORD which receives the number of bytes in the receive queue. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetDataCharacteristics
This function sets the data characteristics for the device.  
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE WordLength
Number of bits per word - Must be 7 or 8 
Fc9-u8-icon.png - BYTE StopBits
Number of stop bits - Must be 1 or 2 
Fc9-u8-icon.png - BYTE Parity
Parity 0=None / 1=Odd / 2=Even / 3=Mark / 4=Space 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetBreakOff
Resets the BREAK condition for the device.  
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetDivisor
This function sets the baud rate for the device. It is used to set non-standard baud rates.  
[[File:]] - Handle
Handle of the device. 
Fc9-u16-icon.png - UINT Divisor
Divisor. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetBaudRate
This function sets the baud rate for the device.  
[[File:]] - Handle
Handle of the device. 
Fc9-u32-icon.png - ULONG BaudRate
Baud rate. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetDtr
This function sets the Data Terminal Ready (DTR) control signal. 
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_Open
Open the device and return a handle which will be used for subsequent accesses. 
[[File:]] - Device
Index of the device to open. Indices are 0 based. 
[[File:]] - ft_Handle
Pointer to a variable of type FT_HANDLE where the handle will be stored. This handle must be used to access the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png ScanFor232
Scans for a FTDI D2XX device, returnes true if at least one device was found. 
[[File:]] - Return


Fc9-comp-macro.png FT_ResetDevice
This function sends a reset command to the device.  
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE Return


Fc9-comp-macro.png FT_SetChars
This function sets the special characters for the device. 
[[File:]] - Handle
Handle of the device. 
Fc9-u8-icon.png - BYTE EventCh
Event character. 
Fc9-u8-icon.png - BYTE EventChEn
0 if event character disabled, non-zero otherwise. 
Fc9-u8-icon.png - BYTE ErrorCh
Error character. 
Fc9-u8-icon.png - BYTE ErrorChEn
0 if error character disabled, non-zero otherwise. 
Fc9-u8-icon.png - BYTE Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-15-icon.png Width
 
Fc9-type-15-icon.png Height
 
Fc9-type-15-icon.png Depth
 
Fc9-conn-icon.png Connections
Fc9-type-17-icon.png Input
Input connection for example a motor or other active component or primitive. 
Fc9-type-17-icon.png Output
Output connection for example a primitive or a component such as a linear slide or gearbox. 
Fc9-type-15-icon.png Input Offset
Distance along the shaft from the center of the input object to the center of the coupling. 
Fc9-type-15-icon.png Output Offset
Distance along the shaft from the center of the coupling to the center of the output object. 
Fc9-type-15-icon.png Output Translation X
Distance along the X axis from the center of the coupling to the center of the output object. 
Fc9-type-15-icon.png Output Translation Y
Distance along the Y axis from the center of the coupling to the center of the output object. 
Fc9-conn-icon.png Simulations