Reference Manual
PMAC 2 Software Reference
274 PMAC On-Line Command Specification
See Also
On-line commands <CTRL-P>, F, V
Suggested M-variable definitions Mx62, Mx64, Mx67, Mx69
Memory map registers D:$002B, D:$0813, D:$002D, D:$0046, etc.
P{constant}
Function
Report the current P-variable value(s).
Scope
Global
Syntax
P{constant}[..{constant}]
where:
• {constant} is an integer from 0 to 1023 representing the number of the P-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;
Remarks
This command causes PMAC to report the current value of the specified P-variable or range
of P-variables.
Example
P1 ...................... ; Host asks for value
25 ...................... ; PMAC responds
P1005
3.444444444
P100..102
17.5
-373
0.0005
See Also
P-Variables (Computational Features)
On-line commands I{constant}, M{constant}, Q{constant},
P{constant}={expression}
P{constant}={expression}
Function
Assign a value to a P-variable.
Scope
Global
Syntax
P{constant}[..{constant}]={expression}
where:
• {constant} is an integer from 0 to 1023 representing the number of the P-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;
• {expression} contains the value to be given to the specified P-variable(s)
Remarks
This command causes PMAC to set the specified P-variable or range of P-variables equal to
the value on the right side of the equals sign.
Example
P1=1
P75=P32+P10
P100..199=0
P10=$2000
P832=SIN(3.14159*Q10)
See Also
P-Variables (Computational Features)
On-line commands I{constant}={expression}, M{constant}={expression},
Q{constant}={expression}, P{constant}
Program command P{constant}={expression}