Output module How to develop Logic

jcp

Member
Join Date
Feb 2010
Location
Multan
Posts
369
Hi friends;
I am new to handle the analog output module. I use ALG 391 for the PLC 90-30 series. It gives me 0 to 5 volt crossponding to 0 to 32000 counts.
Now i have input 0 to 12500 hz. I want to develop a logic but i do not how? which gives me 0 to 32000 counts and i get 0 to 5 volt at module terminal.
PLease guide me where from i start and what instructions i use to get the correct output at module terminal?
Regards
 
This is just scaling. Simple math. There isn't even an offset involved.
Your question as I read it is:
"I have a value ranging from 0 to 12500, and I want it scaled to be 0 to 32000".

When in doubt, break it down to the simplest bits, use floating point, it helps the visualization:

Assume "Ratio" is some floating point register, and you can handle floating point math...

Ratio = Value_In / Value_In_Max
Value_Out = Ratio * Value_Out_Max

In your case:
Ratio = Value_In / 12500
Value_Out = Ratio * 32000
 

Similar Topics

Preface: Kinda long, so I made section titles Intro: I just want to see if anyone here has seen anything similar. A PLC5-40 series C enhanced...
Replies
3
Views
342
I have run into a problem with my first time installing a 2080-OF2 module on a Micro820 and have a hunch that the module itself - brand new out of...
Replies
8
Views
741
Hello, I am trying to streamline an AOI that will get module/controller statuses from ethernet IO tree. Everythings fine, however, does anyone...
Replies
16
Views
1,525
Hello everyone, I am having issues with an output module connected to my 5069-L306ER PLC. The modules I have connected are a 5069-IA16 in slot 1...
Replies
1
Views
643
I have a system with a 1769-OF4CI that sends signals to I to P devices that drive control valves. Recently I ran into an issue with one of the...
Replies
10
Views
2,174
Back
Top Bottom