plc programming tip

An advice on how to PLC programming and merely one-shot one. A one-shot is a coil in which the true whenever the enabling act, it is true is sounded, and there remains a single scan, no matter how long the enabling law rang true, true . The sudden it is useful when a condition that goes from top to bottom and want to take the SPS, which will maintain the state for analysis every time the enabling legislation have come from true to false.

For instant you want to count the number of times an event that occurred more than one scan, but the total will exceed the capacity of the integrated controller in the fight against it. One way to address this problem if your PLC has floating point register is available, it will add a floating point register whenever the sound is true.

A couple of brands PLC are not useful feature one-shot. In this case, you can create your own one shot with a few levels of logic:

This is one of the few cases PLC joint programming, where the order in which the bars is important. In the photo above, if you begin to have the input I: 3 / 0, bit memory B3: 0 / 2, and bit one-shot output B3: 0 / 1 as false. When the entry is correct, the memory is always something wrong, the 2nd Rung true, and the two pavilions and a stroke output bit 2 phrase sounded.

Tags: fanuc plc programming, , , , , , , idec plc, plc, PLC programming, PLC training, programmable logic controllers plc, write plc code