ADDRESS name
{
@ FORMAT name @
@ FORCE < Always | Once | Off > @
@ MAX number <Abort | Warning | Truncate> @
@ MIN number <Abort | Warning | Truncate> @
@ LEADER < string | [TCL_expression] > @
@ TRAILER string @
@ INCREMENTAL < ON | OFF > @
}
Instructs Post to create an Address identified by the string name. The definition can set any of the above mentioned attributes. Post provides defaults for these (see below) so only non-default values need to be provided. These attributes can appear in any order. These attributes have the following meanings:
FORMAT name
Instructs Post to use format name to print the value of the address expression to the output.
Default is %6.3d
FORCE Always
Instructs Post to always output the value of an address expression.
FORCE Once
Instructs Post to output the value of the next address expression.
(Default)
FORCE Off
Instructs Post to not force the output of the value of an address expression. Instead, output the value of an address expression if and only if the value is different than the previous address expression value for this address.
MAX number <Abort|Warning|Truncate>
Instructs Post to use number as the maximum value to be output by this address.
Abort
If Max is violated then Abort creation of NC file.
Warning
If Max is violated then write a warning message to the system log file and continue.
Truncate
If Max is violated then write a warning message to the system log and continue using the Max value as the output value of the address.
Default is 999999999.99 Truncate
MIN number <Abort|Warning|Truncate>
Instructs Post to use number as the minimum value to be output by this address.
Abort
If Min is violated then Abort creation of NC file.
Warning
If Min is violated then write a warning message to the system log file and continue.
Truncate
If Min is violated then write a warning message to the system log and continue using the Min value as the output value of the address.
Default is -999999999.99 Truncate
LEADER string
Precede this address with string in every template in which the address appears.
Default is the Address name.
LEADER [TCL_expression]
If [TCL_expression} is used, then Post will evaluate TCL_expression just before outputting the ADDRESS value and use the value of the expression as the Address leader.
LEADER $opt_minus_zero
where opt_minus_zero is set in the event handler, eg,
if { $mom_pos(4) == 0 } { set opt_minus_zero "-" }
TRAILER
Follow this address with string in every template in which the address appears.
Default is the empty string.
INCREMENTAL ON
Instructs Post to output the incremental value from the previous absolute address value.
INCREMENTAL OFF
Instructs Post to output the absolute address value.
OMIT "value"
Instructs Post to not output the address if its value is equal to the OMIT "value".
OMIT takes precedence over FORCE.
The OMIT value will be formated using the FORMAT specified for the address before it is compared to the value about to be output.
Example
ADDRESS cutcom_register {
FORMAT Socket_2
MAX 99
MIN 0
FORCE off
LEADER "D"
OMIT "3.14159"