Reference Manual
PMAC 2 Software Reference
PMAC On-Line Command Specification 255
M161->D40 ; Motor 1 desired position register specified in decimal
M162->D$2C ; Motor 1 actual position register specified in hex
See Also
M-Variables (Computational Features)
On-line commands M{constant}, M{constant}->,
M{constant}={expression}
Program command M{constant}={expression}
M{constant}->DP:{address}
Function
Dual-Ported RAM Fixed-Point M-Variable Definition
Scope
Global
Syntax
M{constant}[..{constant}]->DP[:]{address}
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;
• {address} is an integer constant from 0 to 65,535 ($0 to $FFFF if specified in hex).
Note:
Spaces are not 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
point to 32 bits of data in the low 16 bits of both X and Y memory at the specified location in
PMAC’s address space. The data is interpreted as a fixed-point signed (two’s complement)
integer.
The definition consists of the letters DP, an optional colon (:), and the word address.
This format is only useful for dual-ported RAM locations $D000 to $DFFF (Option 2 is
required). With this format, the host can read or write to the corresponding location with a
standard 32-bit integer data format. The data in the X word is the most significant word,
which means on the host side the most significant word is in the higher of two consecutive
addresses (standard Intel format).
Example
M150->DP:$D200
M250->DP$D201
See Also
M-Variables (Computational Features)
Dual-Ported RAM (Writing a Host Communications Program)
On-line commands M{constant}, M{constant}->,
..........M{constant}->F:{address}, M{constant}={expression}
Program command M{constant}={expression}
M{constant}->F:{address}
Function
Dual-Ported RAM Floating-Point M-Variable Definition
Scope
Global
Syntax
M{constant}[..{constant}]->F[:]{address}
where:
• {constant} is an integer from 0 to 1023 representing the number of the M-variable;