denny Posted November 30, 2006 Report Posted November 30, 2006 Hi All I am trying to calculate and output a digital pulse train for a missing leg (D) of a 4 legged network as below. I have pulse inputs for the total load (T) and 3 of the legs (A B C) I need to calculate what (D) is and output this result in pulse format every minute. T=A+B+C+D D=T-(A+B+C) At the moment I have an FX1N PLC counting the pulses from each of the channels and calculating the difference every minute. The counters then reset and start counting data for the next interval period. My problem is that I can not figure out how to output the result value I am getting in the form of a pulse train. (Please see example below) Example of 1 minute result, D= 160-(40+30+50) = 40 How can I output this result in the form of pulses? Would appreciate any help on this. Regards Denny Quote
Gambit Posted November 30, 2006 Report Posted November 30, 2006 What about the PLSY instruction? This instruction will output a specified number of pulses at a set freqeuncy. For instance PLSY K1000 D0 Y0 K1000 = 1000Hz D0 = Nr of pulses Hope this helps Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.