Knowledge Base
Applied Automation Using Embed...

Fan Control - Latching Circuit

5min
cooling and air distribution are essential to ensure a safe and optimal environment for workers this example illustrates how to implement a latching circuit to monitor and control an industrial fan using the scalae auto docid\ v6omxiq2cxduhtsgf3q z styled plc industrial fan operational purpose this example enables the following two objectives toggle the running state of the ceiling fan by pressing start and stop testing the ceiling fan if it is running normally by pressing test hardware device role x0 press start, xstart=on x1 press stop, x1 = off, fan = off x2 press test, xtest = on, fan = on x3 error signal, = on, fan = off y1 ceiling fan motor control signal software the following example is easily created using ldmicro i/o role rb0 start rb1 stop rb2 err rb3 test rd0 fan program description press start , and xstart = on, and the fan will receive the start signal, and in the process, the latch on of yfan will active latch the signal on while there is no error, the fan will continue to run when stop is pressed, the circuit for xon is broken and then the output signal for the fan is interrupted if there is an error, the error input is triggered and this interrupts the fan running signal and the fan will stop when the test button is pressed the fan will receive the running signal, but the signal will not latch and once the button is released, then the fun will stop the fan will run only if there is no error all code samples available on github https //github com/haventech/ldmicro examples pic16f887 https //github com/haventech/ldmicro examples pic16f887