Search the Community
Showing results for tags 'ctud'.
Found 2 results
Hi all, Im looking for a function to add and substract in a simple ladder program in a FX1N PLC. I use GX-Works2 V1.98c. The idea is to write a program to control the speed of a dustcollector fan in 3 steps low-mid-high speed. The more machines are switched on the higher the fan speed of the dustcollector must be and reverse. If one machine is started the fan must start too at low speed. If a second machine starts I like to add up a counter that increases a D word. If machines are stopped I like to count down and the result of the D Word must set the speed of the dustcollector by using a compare command. I tried a function [DMOVP K3X3 D3] and at the same time [DINCP D3] but that results not in adding 1 per machine (machines are conected to inputs X3-X4-X5. I like to use a PLS to the inputs to add up and PLF to substract the number of machines. I hope this explaination is clear enough for you all to make a suggestion which function is best to add and substract in the above situation. Kind regards, Theo V.