Difference between revisions of "Component: Proximity Switch Template (Sensors)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/Proximity_base.fcfx FC_Comp_Source_temp/Proximity_base.fcfx] | 
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/Proximity_base.fcfx FC_Comp_Source_temp/Proximity_base.fcfx] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 58: | Line 58: | ||
| Simple example showing the proximity detector component at work, when a proximity is detected the direction of the motor is reversed. | Simple example showing the proximity detector component at work, when a proximity is detected the direction of the motor is reversed. | ||
| {{Fcfile|Detector.fcfx|Detector}} | {{Fcfile|Detector.fcfx|Detector}} | ||
| + | |||
| + | |||
Revision as of 12:02, 3 February 2023
| Author | Matrix Ltd | 
| Version | 1.2 | 
| Category | Sensors | 
Contents
Proximity Switch Template component
Polls a chosen panel object to test it's distance from this component. When the test object is within the detection range, the state of a pin is changed, and a User event generated. Used for building models of reed swicthes and hall sensors.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/Proximity_base.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/Proximity_base.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Simple example showing the proximity detector component at work, when a proximity is detected the direction of the motor is reversed.
 Detector
Detector
Macro reference
ReadState
|   | ReadState | 
| Get the current collision state. The 'Polarity' property will affect whether a collision is represented by a high or low state. | |
|  - BYTE | Return | 
SetTarget
WaitUntilHigh
WaitUntilLow









