Component: Proximity Switch Template (Sensors)
From Flowcode Help
Jump to navigationJump to search| 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_Proximity_base.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_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









