# send mathematical calculations

**URL:** <https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059>\
**Category:** Ignition\
**Created:** [October 10, 2024, 12:57am UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059 "2024-10-10T00:57:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [October 10, 2024, 12:57am UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/1 "2024-10-10T00:57:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [October 10, 2024, 1:11am UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/2 "2024-10-10T01:11:09Z")

</div>

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.

> **[Learn Ignition at Your Own Pace](https://www.inductiveuniversity.com)**
>
> Learn SCADA software (and get a credential!) for free with Inductive
> University’s online Ignition SCADA courses, taught by industrial automation experts.

---

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [October 10, 2024, 2:20am UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/3 "2024-10-10T02:20:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [October 10, 2024, 3:50am UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/4 "2024-10-10T03:50:35Z")

</div>

A lot depends on if you're using Perspective or Vision. Scripting videos on both can be found here to watch and learn from.

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/scripting-in-ignition/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

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.

> **[system.tag.writeBlocking | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-writeBlocking)**
>
> Writes values to tags at the given paths.

> **[system.opc.writeValue | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-opc/system-opc-writeValue)**
>
> Writes a value directly through an OPC server connection synchronously.

---

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [October 10, 2024, 1:11pm UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/5 "2024-10-10T13:11:40Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [October 10, 2024, 1:17pm UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/6 "2024-10-10T13:17:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jennifer\_sanchez](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jennifer\_sanchez](https://forum.inductiveautomation.com/u/jennifer_sanchez)\
**Post date:** [October 10, 2024, 1:28pm UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/7 "2024-10-10T13:28:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [October 10, 2024, 1:30pm UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/8 "2024-10-10T13:30:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [October 10, 2024, 1:46pm UTC](https://forum.inductiveautomation.com/t/send-mathematical-calculations/97059/9 "2024-10-10T13:46:00Z")

</div>

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.

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/ignition-overview/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/ignition-editions/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/ignition-gateway/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/opc-ua-and-devices-in-ignition/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/ignition-designer/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/clients-and-sessions/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/tags-in-ignition/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/perspective-pages-views-and-containers/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/perspective-components-and-bindings/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

> **[Inductive University Course List - Learn Ignition Free](https://www.inductiveuniversity.com/courses/ignition/scripting-in-ignition/8.1)**
>
> Learn the fundamentals and advanced features of Ignition while earning your IU credential

Once you know the basics, here's one way to do it:

1. Create your perspective page.
2. Add your 3 numeric input text boxes.
3. 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.
