Jump to content

Component: Grey Code Encoder (General Input): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 15: Line 15:
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.
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 Pack==
==Component Source Code==


MECHATRONICS
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]


==Detailed description==
==Detailed description==


''No detailed description exists yet for this component''
''No detailed description exists yet for this component''


==Examples==
==Examples==




Line 83: Line 87:
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Encoder Resolution
|-
|-
|-
|-
Line 95: Line 103:
| colspan="2" | The resolution of the encoder in degrees 
| colspan="2" | The resolution of the encoder in degrees 
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
|-
|-
|-
|-
Line 119: Line 127:
| colspan="2" | Input Pin 2 
| colspan="2" | Input Pin 2 
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
| width="90%" | Pin3
|-
| colspan="2" | Input Pin 3 
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| 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 130: Line 148:
| 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" |  
|}
|}

Revision as of 17:47, 9 November 2022

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_2dgi.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 
Pin3
Input Pin 3 
Simulation
Poiner Style
 
Repeat Rate
Simulated repeat rate when clicking and rotating the encoder 
Scope Traces
 
Style
 
Custom Colours
Fill
 
Frame Outline
 
Frame Fill
 
Pointer Outline
 
Pointer Fill
 
Text
 
Tick Mark Outline
 
Tick Mark Fill
 
Cap Outline
 
Cap Fill
 
Main Image
 
Cap Image