Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC On-line Command Specification 356
the optional second{constant} must be at least as great as the first {constant} -- it represents
the number of the end of the range;
{address} is an integer constant from $000000 to $FFFFFF (0 to 16,777,215 if specified in
decimal).
This command causes Turbo PMAC to define the specified M-variable or range of M-variables to point to
a long word (48 bits) of data both X and Y memory at the specified location in Turbo PMAC's address
space. The data is interpreted as a floating-point value with Turbo PMAC’s own 48-bit floating-point
format.
The definition consists of the letter L, an optional colon (:), and the word address.
Memory locations for which this format is useful are labeled with 'L:' in the memory map.
Example:
M5147->L:$002047
M5148->L$02048
M5148->L8264
See Also:
M-Variables (Computational Features)
On-line commands M{constant}, M{constant}->,
.......... M{constant}->D:{address}, M{constant}={expression}
Program command M{constant}={expression}
M{constant}->TWB:{address}
Function: Binary Thumbwheel-Multiplexer Definition
Scope: Global
Syntax: M{constant}[..{constant}]->TWB[:]{multiplex address},
{offset},{size},{format}
where:
{constant} is an integer from 0 to 8191 representing the number of the M-variable;
the optional second{constant} must be at least as great as the first {constant} -- it represents
the number of the end of the range;
{multiplex address} is an integer constant in the range 0 to 255, representing the byte address
in the multiplexing scheme on the thumbwheel port of the least significant bit to be used in the M-
variables;
{offset} is an integer constant from 0 to 7, representing which bit of this byte is the least
significant bit to be used in the M-variable;
{size} is an integer constant from 1 to 32, representing the number of consecutive bits to be used in
the M-variables;
{format} (optional) is either U for unsigned, or S for signed (two's complement). If no format is
specified, U (unsigned) is assumed.
This command causes Turbo PMAC to define the specified M-variable or range of M-variables to a
consecutive of input bits multiplexed on the thumbwheel port with Accessory 18 or compatible hardware,
including the Advantage 500 NC control panel.
Example:
M0->TWB:0,0,1
M1->TWB:0,1,1
M10->TWB:3,4,4,U
M745->TWB:4,0,16,S
M872->TWB:0,4,1