Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

curConvert Options

...

The user can then choose Cur Convert and select an option from the dropdown.
Note: One can be selected and then changed to something different than what is available in the list if needed.

Once selected it will be applied to the point. The user can modify the property tags in two ways:

...

The user can pick one from the list, then modify it and apply. Or they can pick one from the list, apply, and then change it in the Property Tags.

Convert Celsius to Fahrenheit or vice versa

To convert Celsius to Fahrenheit, you'll need to do the below steps. If you want the reverse conversion, just switch the units around.

...

If there is a point that has units on the connector but isn't showing up in DB, there is a special curConvert that can be added to add the unit and then convert it to something else.

Number to Enum

Info

We have now created tools to do this that would make it easier for the user to configure and apply. You can find the doc for this here: Number to Enum. (Available in v183 or newer)

For those that have numeric points and want to convert them to enum, we have a certain way to accomplish that right now manually. Soon, it'll be made easier.

...

  1. In this part, first, create a new record in folio with the enumMeta marker tag and save it. Once you get that, you need to specify the function and values. 
  2. Below is an example where "fanStatus" is the name of the function and each curly bracket set separated by a comma is a value. "code" specifies the numerical value and "name" specifies the text value. So if the value is 2 on the numeric, it'll be "stop" on the enum point in FIN Stack. Note: You can add multiple functions and values as needed on this enumMeta record.
    1. read(enumMeta).diff({fanStatus: [{code: 0, name: "auto"}, {code:1, name: "start"}, {code: 2, name: "stop"}].ioWriteZinc("")}).commit

...

Should look like something below for writable points. Exampe: kind:"Str", curConvert:"enumNumberToStr(fanStatus)", writeConvert:"enumStrToNumber(fanStatus)", enum:"auto,start,stop"
Image Removed

...