Difference between revisions of "Component: Proximity Switch Template (Sensors)"
From Flowcode Help
Jump to navigationJump to search| Line 20: | Line 20: | ||
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 28: | Line 30: | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 37: | Line 41: | ||
| {{Fcfile|Detector.fcfx|Detector}} | {{Fcfile|Detector.fcfx|Detector}} | ||
| − | == | + | ==Macro reference== | 
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
Revision as of 14:13, 20 January 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 for the component source code: 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 | 
| Get the current collision state. The 'Polarity' property will affect whether a collision is represented by a high or low state. | |
|  - BYTE | Return | 









