Jump to content

Simulate an analog input


Salem

Recommended Posts

Hello Salem,

what you mean about "simulate" ? ...by real signal (mA,Volt etc) or by software?...in first case you need a proper module to manage the signal, maybe from a potetiometer...in second case you can insert two buttons in the HMI to increase and decrease the value of a tag... at the end, for example, you can use one or both of these two reference to manage one or more bargraph or gauges...

Link to comment
Share on other sites

Hi,

Thanks for you answer, i'm potentially in the second case but when my incrementation button is created, i can't link it to my Analogic Input in order to simulate, the only values selectable are Analogic Outputs, 

I want to modify values in order to manage a bargraph.

 

Here is what i did :

I selected a UIA-0800N module which will be connected to a Level Sensor. I affected an input with my alias name but the sensor isn't connected yet. I want to test my functions before connecting it

screen.png

Link to comment
Share on other sites

hi,

that I know you can't do this.  You can't manage in this way the input...these need real signal...

have you also analog output?  if you have a module that manage an analog output, maybe, you can connect the output with the input; create buttons to manage the output value and with the input read the signal...

Link to comment
Share on other sites

  • MVP 2023

If you are getting into Analogue values on a PLC, or anything that uses Analogue I/Os, you are much better off buying a signal generator to physically test things.  Google "4-20mA/0-10V Signal Generator" and you will have myriad choices of how much you want to spend.   Points to look for: self-powered, easy to setup/connect, easily adjust amounts on the fly, easily change type etc.

cheers,

Aus

  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...
  • MVP 2023
5 hours ago, Flex727 said:

That allows you to change the value when you're in online mode.

So does that in some ways allow what the OP wanted to do, just to check what other things in the program display/react to etc?  Or does the real input over-ride any user input immediately?

cheers, Aus

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.