Welcome to the fourth in our SenixVIEW Video Tutorial series: Setting Up Analog Outputs.
As before, we begin in the main Workspace window. And the first thing we need to do is to connect to a sensor. This time, we will do it using the shortcut, simply clicking on the sensor icon. This takes me to the setup of the last sensor I was connected to and will allow me to connect and to copy the sensor setup to Workspace if I choose. These were both in the default configuration before beginning.
What we are going to do is make changes now to the analog output. And let’s suppose that we have a tank, and we have fluid in the tank that varies from 8 feet when it’s empty to about 1 foot from the sensor when it is full. So let’s start by changing the near value endpoint to 12 inches that is the low-value endpoint at present, and let’s take the high-value endpoint, or more distant endpoint and let that be 8 feet away, and let’s assume that we really want to have the output high when the fluid is high. So we will right click on either the low value or high-value endpoint lines and choose to invert.
So now, we have 10 volts or 20 milliampheres here at 12 inches or high level, and 0 volts or 4 mils at the low-value end point or low fluid level. You will notice that we have not equal signs here between the Workspace and the sensor and the Workspace and the file. Let’s right click on the Workspace icon and drag the pencil to the sensor and we could right click here and drag the pencil to the file, as well. That will allow me to name this file, and I actually have an analog setup. An analog setup configuration here, so I am going to use that name, and I will overwrite the prior file. Yeah, let’s edit it. You could put in anything that makes sense obviously.
So now, we theoretically have a sensor setup the way we want it to be. In the previous sessions, we have configured the sensor, perhaps slowed it down and put in some signal averaging. Now we want to know whether our wiring from the sensor to our indicating device -be it a meter or PLC – is set up properly and whether the meter or PLC is scaled properly. We have an output test for that. Again come to the Workspace, click on the sensor menu, and come all the way down to the bottom. And in this case, let’s say we are taking 4 to 20 milliamps, I’ll choose the current test. We can start at any value we choose, the default is 4 mils, the ending default is 20 mils, it steps in one milliamphere increments so we can tell it something else. And it currently is delaying three seconds per step, you could make that be a very long step and have the start and stop be the same value and just output a single value that way if you wanted. But I want to go from 4 to 20 and let’s speed it up a little bit, spend a second on each point, and I’ve got a particularly long system wiring with some junctions in between, so let’s loop on the test to give me plenty of time to verify. And you can see that on the replica meter here, that our current value is stepping up in one milliamphere increments. And, this will continue as long as you needed to until you are able to verify the wiring and the scaling on your display device. So let’s stop the test. That test is done totally independent of the analog signal that might come from the sensor. And now, we could see that our fluid level or our ubiquitous wall is still 6 feet away. And that corresponds to something on the order about 8.5 milliamps, we can find exactly what that is by clicking on the large display and choosing current – I did that when you weren’t looking – that’s why it came up, normally it would be in the distance mode, but we see that it is 8.59 milliamps.
So, that’s the basics of setting up a sensor analog output, one of the things to touch base on is the analog window, the analog icon. Here you can choose the value that the analog output will go to upon power up, could be voltage low or current low or current high, as the case maybe. And, for right now, I am going to assume that it is current high. The reason is, perhaps, the PLC is controlling a pump. We do not want the pump to turn on immediately until we had a good setup data given to it. Perhaps, we are taking a running average, and then we take 10 seconds to get solid data. There’s no point in oscillating the pump, while that happens. Also, if you lose target, and in some circumstances, you can lose it in a temporary way like, for example filling a tank might cause some turbulence. We might want to hold the last reading, or go to a low value or high value and, we’re going to leave it on hold since that’s the default. We can all program a delay if the target is lost, we can tell it to wait a minute before it does anything. Let’s okay out of that. And in both cases, we have not equal signs, so let’s copy it to the sensor and in this case I am going to go to the file menu, going to click on the Workspace first, and then go to the file menu and save Workspace to disk, and I am going to overwrite that same file one more time and I am not going to edit it this time.
So, those are the basics involved in setting up an analog output, current or voltage. In our next session, we will look up setting up the switches.
For more information on sensor outputs, visit our Ultrasonic Sensor Outputs page. If you have any questions, please contact Senix customer service. We’re here to help!