PMAC Product Guide 00C000 00C004 00C008 00C00C 00C010 00C014 00C018 00C01C 400723 0000295 000000 000000 ; PMAC responds in hex S Function : Execute one move (step) of motion program Scope : Coordinate-system specific Syntax : S This command causes the addressed PMAC coordinate system to start single-step execution of the motion program addressed by the coordinate system’s program counter from the location of the program counter. Addressing of the program counter is done initially using the B{constant} command. At the default I53 value of zero, a STEP command causes program execution through the next move or DWELL command in the program, even if this takes multiple program lines.
When I53 is set to 1, a STEP command causes program execution of only a single program line, even if there is no move or DWELL command on that line. If there is more than one DWELL or DELAY command on a program line, a single STEP command will only execute one of the DWELL or DELAY commands. Regardless of the setting of I53, if program execution on a Step command encounters a BLOCKSTART statement in the program, execution will continue until a BLOCKSTOP statement is encountered. If the coordinate system is already executing a motion program when this command is sent, the command puts the program in single-step mode, so execution will stop at the end of the latest calculated move.
In this case, its action is the equivalent of the Q command. The coordinate system must be in a proper condition in order for PMAC to accept this command. Otherwise PMAC will reject this command with an error; if I6 is 1 or 3, it will report the error number. The same conditions that cause PMAC to reject an R command will cause it to reject an S command; refer to those conditions under the R command specification. Examples: &3B20S ; Coordinate System 3 points to beginning of PROG 20 and step P1 ; Ask for value of P1 1 ; PMAC responds S ; Do next step in program P1 ; Ask for value of P1 again -3472563 ; PMAC responds --probable problem SAVE Function :
Copy setup parameters to non-volatile memory Scope : Global Syntax : SAVE This command causes PMAC to copy setup information from active memory to non-volatile memory, so this information can be retained through power-down or reset. Its exact operation depends on the type of PMAC used. For standard PMACs with battery-backed RAM, only the basic setup information is stored with the SAVE command: I-Variables, encoder conversion table entries, and VME/DPRAM address entries. This information is copied back from flash to active memory during a normal power-up/reset operation. User programs, buffers, and definitions are simply held in RAM by the battery backup; there is no need to save these.
190 Online Commands