Let’s begin to create a simple AOI that will convert Celsius to Fahrenheit and Kelvin temperature.
We will use all of the steps required in developing an AOI.
- The equation to convert Celsius to Fahrenheit is: (°C * 1.8) + 32
- The Equation to convert Celsius to Kelvin is: °C + 273.15
- The Equation to convert Fahrenheit to Kelvin is: (°F - 32) / 1.8 + 273.15
For these equations, we create variables and constant tag names with the constant data provided.
1. Select “Create - New Project”.
2. Select “Studio 5000 Logix Emulate Controller” for the controller type. Call the program Name: “RealParsAOI”.
3. We use the “Studio 5000 Logix Emulate” software, a virtual PLC running on the PC, to download and run and test our AOI program. AOI development is...
We will create the “Input-Output” parameter tags.
- Let’s define an input tag as “Celsius”. Celsius will be configured as a REAL data type and as a Float style tag. The default value will be 0. The Required and Visibility column checkboxes will be checked because the tags are requiring an argume...
We will create three constants that will be used in our calculations. Let’s create “Constant_1”, “Constant_2”, and “Constant_3” as REAL data types and as Float style tags.
The default values will be respectively 1.8, 32, and 273.15.