PMAC Product Guide Examples: &1 ; Address Coordinate System 1 #1-> ; Ask for axis definition of Motor 1 10000X ; PMAC responds #2-> ; Ask for axis definition of Motor 2 10000Y ; PMAC responds UNDEFINE ; Erase axis definitions &2 ; Address Coordinate System 2 #1->10000X ; Redefine Motor 1 as X-axis in Coordinate System 2 #2->10000Y ; Redefine Motor 2 as Y-axis in Coordinate System 2 UNDEFINE ALL Function : Erase coordinate definitions in all coordinate systems Scope : Global Syntax : UNDEFINE ALL UNDEF ALL This command causes all of the axis definition statements in all coordinate systems to be cleared. It is a useful way of starting over on a reload of PMAC’s coordinate system definitions.
Examples: &1#1-> ; Request axis definition of Motor 1 in Coordinate System 1 1000X ; PMAC responds &2#5-> ; Request axis definition of Motor 5 in Coordinate System 2 1000X ; PMAC responds UNDEFINE ALL ; Erase all axis definitions &1#1-> ; Request axis definition of Motor 1 in Coordinate System 1 0 ; PMAC responds that there is no definition &2#5-> ; Request axis definition of Motor 5 in Coordinate System 2 0 ; PMAC responds that there is no definition 1 V Function : Report motor velocity Scope : Motor specific Syntax : V This command causes PMAC to report the present actual motor velocity to the host, scaled in counts/servo cycle, rounded to the nearest tenth.
It is reporting the contents of the motor actual velocity register (divided by [Ix09*32]). To convert this reported value to counts/msec, multiply by 8,388,608*(Ix60+1) and divide by I10. It can be further converted to engineering units with additional scaling constants. Note: The velocity values reported here are obtained by subtracting positions of consecutive servo cycles. As such, they can be very noisy. For purposes of display, it is probably better to use averaged velocity values held in registers Y:$082A, Y:$08EA, etc., accessed with M-Variables. Online Commands 193