Jump to content
Salem

Simulate an analog input

Recommended Posts

Hello,

I'm new at Automation Programming and i would like to know how to simulate an Analogic Input in Unilogic, in-time modification to test levels etc.

Is it possible  ?

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
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

Share this post


Link to post
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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
13 hours ago, Ausman said:

Or does the real input over-ride any user input immediately?

Only when there is an actual I/O module attached to the PLC.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...