PMAC Product Guide Examples: &1B1R ; Coordinate System 1 point to PROG 1 and run &2B200.06 ; Coordinate System 2 point to N6000 of PROG 200 and run Q ; Quit this program R ; Resume running from point where stopped H ; Do a feed hold on this program R ; Resume running from point where stopped R[H]{address} Function : Report the contents of a specified memory addresses Scope : Global Syntax : R[H]{address} [,{constant}] where {address} consists of a letter X , Y , or L ; an option colon (:); and an integer value from 0 to 65535 (in hex, $0000 to $FFFF); specifying the starting PMAC memory or I/O address to be read.
{constant} (optional) is an integer from 1 to 16 specifying the number of consecutive memory addresses to be read; if this is not specified, PMAC assumes a value of 1. This command causes PMAC to report the contents of the specified memory word address or range of addresses to the host (it is essentially a PEEK command). The command can specify either short (24-bit) words in PMAC’s X-memory, short (24-bit) words in PMAC’s Y-memory, or long (48-bit) words covering both X and Y memory (X-word more significant). This choice is controlled by the use of the X, Y, or L address prefix in the command, respectively.
If the letter H is used after the R in the command, PMAC reports back the register contents in unsigned hexadecimal form, with six digits for a short word and twelve digits for a long word. If the letter H is not used, PMAC reports the register contents in signed decimal form. Examples:
RHX:49152 ; Request contents of X-register 49152 ($C000) in hex 8F4017 ; PMAC responds in unsigned hex (note no '$') RHX:$C000 ; Request contents of X-reg $C000 (49152) in hex 8F4017 ; PMAC responds in unsigned hex RX:49152 ; Request contents of same register in decimal -7389161 ; PMAC responds in signed decimal RX:$C000 ; Request contents of same register in decimal -7389161 ; PMAC responds in signed decimal RX0 ; Request contents of servo cycle counter in decimal 2953211 ; PMAC responds in signed decimal RL$0028 ; Request contents of #1 cmd. pos.
reg in decimal 3072000 ; PMAC responds (=1000 counts) RHY1824,12 ; Request set-up words of the conversion table Online Commands 189 Both limits set for a motor in coordinate system (ERR010) Clear limits Another move is in progress (ERR011) Stop move (e.g.
With j/) Open-loop motor in coordinate system (ERR012) Close loop with J/ or A Inactivated motor in coordinate system (ERR013) Change Ix00 to 1 or remove motor from coordinate system No motors in the coordinate system (ERR014) Put at least 1 motor in coordinate system Fixed motion program buffer open (ERR015) Close buffer and point to program No program pointed to (ERR015) Point to program with B command Program structured improperly (ERR016) Correct program structure Motor(s) not at same position as stopped with / or \ command (ERR017) Move back to stopped position with J=