Reference Manual
PMAC 2 Software Reference
458 PMAC(1) Suggested M-variable Definitions
PMAC(1) SUGGESTED M-VARIABLE DEFINITIONS
This file contains a suggested set of M-Variable definitions. These definitions can be very useful for
getting access to important I/O and registers. It is not required that you use these particular definitions.
Most example programs will use these definitions.
CLOSE ; To ensure commands are on-line
M0..1023->* ; To clear all existing definitions
M0->X:$0,0,24,U ; Servo cycle counter
; General Purpose inputs and outputs (PMAC-PC,-Lite,-VME)
M1->Y:$FFC2,8,1 ; Machine Output 1
M2->Y:$FFC2,9,1 ; Machine Output 2
M3->Y:$FFC2,10,1 ; Machine Output 3
M4->Y:$FFC2,11,1 ; Machine Output 4
M5->Y:$FFC2,12,1 ; Machine Output 5
M6->Y:$FFC2,13,1 ; Machine Output 6
M7->Y:$FFC2,14,1 ; Machine Output 7
M8->Y:$FFC2,15,1 ; Machine Output 8
M9->Y:$FFC2,8,8,U ; Machine Outputs 1-8 treated as byte
M11->Y:$FFC2,0,1 ; Machine Input 1
M12->Y:$FFC2,1,1 ; Machine Input 2
M13->Y:$FFC2,2,1 ; Machine Input 3
M14->Y:$FFC2,3,1 ; Machine Input 4
M15->Y:$FFC2,4,1 ; Machine Input 5
M16->Y:$FFC2,5,1 ; Machine Input 6
M17->Y:$FFC2,6,1 ; Machine Input 7
M18->Y:$FFC2,7,1 ; Machine Input 8
M19->Y:$FFC2,0,8,U ; Machine Inputs 1-8 treated as byte
; Control-Panel Port Input Bits (so can be used as general I/O if I2=1)
; (These definitions valid for PMAC-PC, -Lite, & -VME)
M20->Y:$FFC0,8,1 ; Jog Minus Input
M21->Y:$FFC0,9,1 ; Jog Plus Input
M22->Y:$FFC0,10,1 ; Prejog Input
M23->Y:$FFC0,11,1 ; Start (Run) Input
M24->Y:$FFC0,12,1 ; Step/Quit Input
M25->Y:$FFC0,13,1 ; Stop (Abort) Input
M26->Y:$FFC0,14,1 ; Home Command Input
M27->Y:$FFC0,15,1 ; Feed Hold Input
M28->Y:$FFC0,16,1 ; Motor/C.S. Select Input Bit 0
M29->Y:$FFC0,17,1 ; Motor/C.S. Select Input Bit 1
M30->Y:$FFC0,18,1 ; Motor/C.S. Select Input Bit 2
M31->Y:$FFC0,19,1 ; Motor/C.S. Select Input Bit 3
M32->Y:$FFC0,16,4,C ; Selected Motor/C.S. Number
; Thumbwheel Port Bits (So they can be used as general-purpose I/O)
; (These definitions valid for PMAC-PC, -Lite, & -VME)
M40->Y:$FFC1,8,1 ; SEL0 Output
M41->Y:$FFC1,9,1 ; SEL1 Output
M42->Y:$FFC1,10,1 ; SEL2 Output
M43->Y:$FFC1,11,1 ; SEL3 Output