Math (Hex) is a ladder program instruction that solves a user-defined formula using hexadecimal data. The result is stored at a selected memory address in hex format. It supports nested parenthetical expressions and a set of hex arithmetic, logical, shift, rotate, range, and random operators.
| Language | ladder |
|---|---|
| Code | Math (Hex) |
| Name | Description |
|---|---|
| Result | Memory address where the result will be stored; the result is stored in hex data format. The Browse Button opens Address Picker. |
| Type | Selecting Decimal or Hex determines the mathematical operations available; changing this selection after beginning the formula erases the formula. |
| One Shot | Solve the formula only once after each OFF-to-ON transition of the enabling rung. |
| Error Flags | System bits that turn ON when the specified condition has occurred. |
| Address or Nickname | Data registers can be identified in the formula by the memory address or nickname. |
| Formula Pad | Create the mathematical expression using the onscreen keypad, keyboard, and Address Picker. |
| Hex Keypad | Numeric and letter keys for hex numbers, Sum and Modulo, parentheses, and certain logical operators and bit operators. |