Appendix A: Text Formatting; Text Formatting Codes For Bargraphs - AMX Modero G5 Instruction Manual

X series g5 touch panels
Hide thumbs Also See for Modero G5:
Table of Contents

Advertisement

Appendix A: Text Formatting

Text Formatting Codes for Bargraphs

Text formatting codes for bargraphs provide a mechanism to allow a portion of a bargraphs text to be dynamically
provided information about the current status of the level (multistate and traditional). These codes are entered into the
text field along with any other text.
The following is a code list used for bargraphs:
Bargraph Text Code Inputs
Code
$P
$V
$L
$H
$S
$A
$R
$$
By changing the text on a button (via a VT command), you can modify the codes on a button. When one of the Text
Formatting Codes is encountered by the firmware, it is replaced with the correct value. These values are derived from the
following operations:
Formatting Code Operations
Code
$P
$V
$L
$H
$S
$A
$R
Given a current raw level value of 532, a range low value of 500, and a high range value of 600, the following text
formatting codes would yield the following strings as shown in the table below:
Example
Format
$P%
$A out of $R
$A of 0 - $R
$V of $L - $H
Modero G5 Touch Panels - Configuration and Programming
Bargraph
Display the current percentage of the bargraph
(derived from the Adjusted Level Value as it falls
between the Range Values)
Raw Level Value
Range Low Value
Range High Value
N/A
Adjusted Level Value (Range Low Value
subtracted from the Raw Level Value)
Low Range subtracted from the High Range
Dollar sign
Operation
(Current Value - Range Low Value / Range High Value - Range Low Value) x 100
Current Level Value
Range Low Value
Range High Value
Current State (if regular bargraph then resolves to nothing)
Current Value - Range Low Value
Range High Value - Range Low Value
Display
32%
32 out of 100
32 of 0 - 100
532 of 500 - 600
Appendix A: Text Formatting
Multi-State Bargraph
Display the current percentage of the bargraph
(derived from the Adjusted Level Value as it falls
between the Range Values)
Raw Level Value
Range Low Value
Range High Value
Current State
Adjusted Level Value (Range Low Value subtracted
from the Raw Level Value)
Low Range subtracted from the High Range
Dollar sign
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents