Simulating a REAL value

Snap25

Lifetime Supporting Member
Join Date
Dec 2014
Location
Michigan
Posts
237
I'm simulated a few different styles of dosing with my rslogix5000 emulator and a wonderware application I made for it. Everything works great and I'm about to display the dosing and all the functions but I have to manually enter the GPM value in the program ( obviously because there isn't a flow sensor, its just a simulation)..

Anyone have a good way of simulating my values to change and bounce around from the 4.00 - 8.00 GPM range.. I guess I could figure it out doing a lot of computation instructions but I figured there has to be an easier way? I basically don't want it to stay at a steady flow rate because I'm testing my deviation displays and a few other things. Plus it looks more realistic. Muchas gracias
 
I would create a sine wave generator in your logic that you can reference. The forums have some examples such as:

http://www.plctalk.net/qanda/showthread.php?t=98682&highlight=sine+wave

Personally I have added sine wave functionality to all my analog input AOI blocks. Helps when testing and simulating the process, but also helps ensure my trending and historian data are being tested as well.
 
I would create a sine wave generator in your logic that you can reference. The forums have some examples such as:

http://www.plctalk.net/qanda/showthread.php?t=98682&highlight=sine+wave

Personally I have added sine wave functionality to all my analog input AOI blocks. Helps when testing and simulating the process, but also helps ensure my trending and historian data are being tested as well.


After playing around with the instruction I was able to randomize numbers every second in the 4.00 - 8.00ish range I was looking for. Thanks for the lead.
 

Similar Topics

Hello guys! I had a earlier discussion about a simple encoder (http://www.plctalk.net/qanda/showthread.php?t=15464) but now I would like to...
Replies
18
Views
3,876
Hi Do any of you have some experience with simulating a servo drive with Emulate3D? I have tried to research and thinking of a way to do it...
Replies
0
Views
1,484
Hello all, Trying to simulate with TIA V15 because the hardware won't be ready for a few weeks. I have the PLC simulated and running. Can go...
Replies
8
Views
12,505
1)Is there a way to simulate Analog input instead of a instrument in the simulator mode to test the software? like plcsim in Siemens you are...
Replies
3
Views
2,089
Hi Everyone, As part of FAT testing, I am looking to test the PLC logic by simulating the analog inputs. Is there any way to feed analog input...
Replies
3
Views
2,838
Back
Top Bottom