From the help file....
Use the Pressure Switch block to automatically regulate a compressor in a pneumatic system.
The Pressure Switch function should be called a single time prior to your use of the compressor in a pneumatic system. The best place to use this block may be in 'Initialize'. The function will automatically monitor the state of the pressure switch (every 500ms), and will activate the spike to power the compressor whenever the pressure switch closes (at about 95 psi). The compressor will stop when it reaches it's maximum pressure of 115 psi.
edit: Also Alan if you read my earlier post
Quote:
You don't need both, you only need to call InitPressureSwitch(psInput, psRelay); in the Initialize function.
It will take care of everything after that.
|
My post you quoted made more sence.