|
|
| Line 17: |
Line 17: |
| ==Component Source Code== | | ==Component Source Code== |
|
| |
|
| Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Grey_Code_Encoder_2dgi.fcfx FC_Comp_Source_Grey_Code_Encoder_2dgi.fcfx] | | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Grey_Code_Encoder.fcfx FC_Comp_Source_Grey_Code_Encoder.fcfx] |
|
| |
|
| ==Detailed description== | | ==Detailed description== |
| | |
| | |
|
| |
|
|
| |
|
| Line 26: |
Line 28: |
|
| |
|
| ==Examples== | | ==Examples== |
| | |
| | |
|
| |
|
|
| |
|
| Line 126: |
Line 130: |
| |- | | |- |
| | colspan="2" | Input Pin 2 | | | colspan="2" | Input Pin 2 |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-5-icon.png]]
| |
| | width="90%" | Pin3
| |
| |-
| |
| | colspan="2" | Input Pin 3
| |
| |- | | |- |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation | | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
| |- | | |- |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-12-icon.png]]
| |
| | width="90%" | Poiner Style
| |
| |-
| |
| | colspan="2" |
| |
| |- | | |- |
| | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] |
| Line 148: |
Line 142: |
| | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] | | | width="10%" align="center" | [[File:Fc9-type-7-icon.png]] |
| | width="90%" | Scope Traces | | | width="90%" | Scope Traces |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
| | width="90%" | Style
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
| | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Custom Colours
| |
| |-
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-23-icon.png]]
| |
| | width="90%" | Fill
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-2-icon.png]]
| |
| | width="90%" | Frame Outline
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-23-icon.png]]
| |
| | width="90%" | Frame Fill
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-2-icon.png]]
| |
| | width="90%" | Pointer Outline
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-23-icon.png]]
| |
| | width="90%" | Pointer Fill
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-2-icon.png]]
| |
| | width="90%" | Text
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-2-icon.png]]
| |
| | width="90%" | Tick Mark Outline
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-23-icon.png]]
| |
| | width="90%" | Tick Mark Fill
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-2-icon.png]]
| |
| | width="90%" | Cap Outline
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-23-icon.png]]
| |
| | width="90%" | Cap Fill
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-13-icon.png]]
| |
| | width="90%" | Main Image
| |
| |-
| |
| | colspan="2" |
| |
| |-
| |
| | width="10%" align="center" | [[File:Fc9-type-13-icon.png]]
| |
| | width="90%" | Cap Image
| |
| |- | | |- |
| | colspan="2" | | | | colspan="2" | |
| |} | | |} |
| Author
|
Matrix TSL
|
| Version
|
1.4
|
| Category
|
General Input
|
Grey Code Encoder component
Grey Code Encoder component implements a rotary encoder connected to a defined number of pins Grey Code Encoders provide absolute positioning rather than incremental positioning.
Component Source Code
Please click here for the component source code: FC_Comp_Source_Grey_Code_Encoder.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|
ReadAbsoluteAngle
|
| Reads the absolute angular position of the motor. Returns a floating point value representing the angle of the encoder.
|
- FLOAT
|
Return
|
|
Rotate
|
| Simulation Rotate function to allow accurate rotation during simulation. Automatically called by any attached coupling or gearbox component.
|
- FLOAT
|
Angle
|
| Amount to rotate the shaft input in degrees
|
- VOID
|
Return
|
|
ReadAbsolutePosition
|
| Reads the absolute angular position of the motor. Returns an integer value representing the step position.
|
- UINT
|
Return
|
Property reference
|
Properties
|
|
Encoder Resolution
|
|
Output States
|
| Number of unique output states
|
|
Resolution
|
| The resolution of the encoder in degrees
|
|
Connections
|
|
Number of Pins
|
| Sets the number of output pins on the encoder and hence the resolution of the encoder.
|
|
Pin0
|
| Input pin 0
|
|
Pin1
|
| Input Pin 1
|
|
Pin2
|
| Input Pin 2
|
|
Simulation
|
|
Repeat Rate
|
| Simulated repeat rate when clicking and rotating the encoder
|
|
Scope Traces
|
|
|