You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing training@inductiveautomation.com.
Version:
LESSON LIST
-
2:47Property Binding
-
2:15Property Binding – Bidirectional
-
2:19Tag Binding
-
2:17Tag Binding – Drag and Drop
-
2:19Tag Binding – Bidirectional
-
1:40Tag and Component Overlays
-
3:20Indirect Tag Binding
-
2:17Tag Historian Binding
-
3:21Expression Binding
-
1:24Expression Binding – Concat Strings
-
1:01Expression Binding – Celsius to Fahrenheit
-
2:01Expression Binding – Format Date
-
2:46Expression Binding – Date Manipulations
-
1:23Expression Binding – Bit Functions
-
2:06Expression Binding – Switch
-
1:43Expression Binding – Checking Conditions
-
2:40DB Browse Binding
-
2:05DB Browse Binding – Dynamic Filters
-
1:16SQL Query Binding
-
2:26SQL Query Binding – Polling
-
1:47SQL Query Binding – Dynamic Filters
-
1:55SQL Query Binding – Scalar Query and Fallback
-
1:47SQL Query Binding – Scalar Query and Update
-
2:24Cell Update Binding
-
2:07Function Binding
-
4:22Component Styles
Take topic challenge
Take topic challenge
Supplemental Videos
-
2:27Named Query Binding
LESSON
Expression Binding – Celsius to Fahrenheit
Description
Learn how to convert a temperature from Celsius to Fahrenheit using an expression binding.
Video recorded using: Ignition 7.7
Transcript
(open in window)[00:00] Let's use the expression language to convert a temperature tag from Celsius to Fahrenheit on a window. Right now I have the temperature tag over here in my tag browser called Temp C, so it's in Celsius. I'm displaying that value on the screen here directly. What I want to do is take another numeric label, put it on the screen. I'm going to bind that to an expression that will do the conversion for me. I'm going to go down to the Value property. I'm going to bind that to an expression. Since I'm going to use the temperature C tag, the first thing I'm going to do is bring it in. I'm going to go over here to the top right and click on the tag button to bring in temperature C. Now that it's in, I can put the math around it to convert it from Celsius to Fahrenheit. The beginning, it's going to be 9/5 times temperature C. Then at the end, we're going to add 32. Now that I have the expression in there, I'm going to go ahead and press OK. You're going to see it now converted to Fahrenheit. Here's the Celsius value, here's the Fahrenheit value. Very simple to do this calculation using the expression language.