Good evening, I currently have a university project for a coil winder (it makes coils) and they ask me to use ignition. I am new to this platform and I would like to know if it is possible to enter 3 different numerical data on the display screen, each in a box, to be able to program the mathematical operations and to have the result displayed when pressing another "calculate" button (calculator type) and that I can send that result data to the PLC. Thanks.
Absolutely. This can be accomplished with expressions or python scripts depending on how complex of a calculation you want to perform.
I suggest you go through Inductive Univeristy to get started and learn more about Ignition.
Hello, thank you for your reply. I was checking this week and I know that Ignition allows me to put a text box in the visualization. What I don't know is how to add the value that is entered in each text box to the programming console (python). That's what I haven't seen how to do. If you can advise me, I would appreciate it.
A lot depends on if you're using Perspective or Vision. Scripting videos on both can be found here to watch and learn from.
On your button you'll need an event script to execute when it's clicked that will either use system.tag.writeBlocking
with an Ignition OPC tag, system.opc.writeValue
to write directly to the PLC without using Ignition OPC tags, or use a bi-directional binding on a property on some component of your view/window that's bound to an Ignition OPC tag, and just set that property to the calculated value. So there's several ways to do what you're asking, but you'll have to watch videos and read the manual on the scripting functions to find out how you want to accomplish it.
There's a lot of moving parts besides just the script that writes to the PLC. You'll need to set up the device inside the Ignition OPC server as well. Possibly create OPC tags depending on how you go about it. That's why I recommend going through Inductive University because just looking at a couple of manual pages or videos won't teach you enough to do everything you'll probably need to do.
Good morning, what is the difference between Perspective or Vision? And which of the two is useful for displaying the user interface?
(the person who will enter the data)
Vision is a PC based user interface, and Perspective is the web based interface. You really need to go through the videos as this will explain everything you need to know.
But both of them work for my mobile?
Because I saw that a QR code is generated, but I didn't know that there were 2 types of "working methods (Perspective or Vision) so I have a doubt if with both I can generate the QR code for the mobile or just 1 of them.
And last question, do you know if the PLC can be connected to Bluetooth? I want the communication between the machine and my PLC to be Bluetooth where it sends and receives data. Could you share a link like the ones you have shared with me so that I can help you please?
You'll need Perspective for using Ignition with a mobile device. I don't know of any PLC that can connect with Bluetooth, so I doubt you'll be able to do that. Most all modern PLCs connect with an Ethernet cable.
You will be able to access the Ignition gateway that is running perspective from any browser that is connected to the same network as the gateway and has the correct permissions.
You should be able to run through a bit of UI and get the basics that you would need for this.
You're looking at a day or 2 to get a good start on what you need for development in perspective. Here are the relevant sections. You may not need to watch every video from every section.
Once you know the basics, here's one way to do it:
- Create your perspective page.
- Add your 3 numeric input text boxes.
- Add a "Calculate" button.
a. On your calculate button you can use an expression binding to check if each input has a valid value and then perform your calculation.
b. The action for the button will be to write that expression binding value to a tag.