Math (Decimal) is a ladder-program instruction that evaluates a user-defined formula using decimal values and stores the result in a memory address. The formula is built on a Math dialog using a keypad and address picker, and parenthetical expressions can be nested up to eight levels. If floating point is used in any operation, all operations use floating-point math, and the result is converted to the data type of the assigned memory address.
| Language | ladder |
|---|---|
| Code | Math (Decimal) |
| Group | Math |
| Name | Data type | Description |
|---|---|---|
| Result | Memory Address | Memory address where the Result is stored; the Result value is adjusted to the data type of the Memory Address. |
| Type | Selecting Decimal or Hex determines the mathematical operations available on the Math instruction dialog; changing this selection after beginning the formula erases the formula. | |
| One Shot | Solves the formula only once after each OFF-to-ON transition of the enabling rung. | |
| Error Flags | System Bits | System Bits that turn ON when the specified condition has occurred. |
| Address or Nickname | Data Registers can be identified in the formula by Memory Address or Nickname. | |
| Formula Pad | Create the mathematical expression using the onscreen keypad, the keyboard, and Address Picker. |