Reference Manual
PMAC 2 Software Reference
PMAC On-Line Command Specification 257
Example
M165->L:$081F
M265->L$0820
M265->L2080
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:{multiplex 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 1023 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-variable(s);
• {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-variable(s);
• {format} (optional) is either U for unsigned, or S for signed (two’s complement). If
no format is specified, U (unsigned) is assumed
Note:
No spaces are permitted between the M-variable name and the
“arrow” double character in this command.
Remarks
This command causes 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.
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
See Also
M-Variables (Computational Features)
On-line commands M{constant}, M{constant}->,
..........M{constant}->TWD:{address}
Thumbwheel Multiplexer Board (ACC-18) Manual
M{constant}->TWD:{address}
Function
BCD Thumbwheel-Multiplexer M-Variable Definition