PMAC Product Guide PMAC responds to bus port: 13 (Serial host gets no response) Serial host sends: P1 PMAC responds to serial port: 13 # Function : Report currently addressed motor Scope : Global Syntax : # This causes PMAC to return the number of the motor currently addressed by the host -- the one which acts upon motor-specific commands from the host. Note that a different motor may be hardware selected from the control panel port for motor-specific control panel inputs and that different motors may be addressed from programs within PMAC for COMMAND statements. Examples: # Ask PMAC which motor is addressed 2 PMAC reports that motor 2 is addressed #{constant} Function :
Address a motor Scope : Global Syntax : #{constant} where {constant} is an integer from 1 to 8, representing the number of the motor to be addressed. This command makes the motor specified by {constant} the addressed motor (the one on which on- line motor commands will act). The addressing is modal, so all further motor-specific commands will affect this motor until a different motor is addressed. At power-up/reset, Motor 1 is addressed. Note that a different motor may be hardware selected simultaneously from the control panel port for motor-specific control panel inputs, and that different motors may be addressed from programs within PMAC for COMMAND statements. Example:
#1J+ .................. Command Motor 1 to jog positive J- ....................... Command Motor 1 to jog negative #2J+ .................. Command Motor 2 to jog positive J/ ....................... Command Motor 2 to stop jogging #{constant}-> Function : Report the specified motor’s coordinate system axis definition Scope : Coordinate-system specific Syntax : #{constant}-> where {constant} is an integer from 1 to 8 representing the number of the motor whose axis definition is requested 136 Online Commands