Reference Manual

Turbo PMAC/PMAC2 Software Reference
Turbo PMAC Suggested M-Variable Definitions 558
TURBO PMAC SUGGESTED M-VARIABLE DEFINITIONS
This file contains suggested definitions for M-variables on the Turbo PMAC. Note that these are only
suggestions; the user is free to make whatever definitions are desired.
Clear Existing Definitions
CLOSE ; Make sure no buffer is open
M0..8191->* ; All M-variables are now self-referenced
M0->X:$000000,0,24,U ; Servo cycle counter
JOPTO Port General Purpose Inputs and Outputs
M1->Y:$078802,8,1 ; Machine Output 1
M2->Y:$078802,9,1 ; Machine Output 2
M3->Y:$078802,10,1 ; Machine Output 3
M4->Y:$078802,11,1 ; Machine Output 4
M5->Y:$078802,12,1 ; Machine Output 5
M6->Y:$078802,13,1 ; Machine Output 6
M7->Y:$078802,14,1 ; Machine Output 7
M8->Y:$078802,15,1 ; Machine Output 8
M9->Y:$078802,8,8,U ; Machine Outputs 1-8 treated as byte
M11->Y:$078802,0,1 ; Machine Input 1
M12->Y:$078802,1,1 ; Machine Input 2
M13->Y:$078802,2,1 ; Machine Input 3
M14->Y:$078802,3,1 ; Machine Input 4
M15->Y:$078802,4,1 ; Machine Input 5
M16->Y:$078802,5,1 ; Machine Input 6
M17->Y:$078802,6,1 ; Machine Input 7
M18->Y:$078802,7,1 ; Machine Input 8
M19->Y:$078802,0,8,U ; Machine Inputs 1-8 treated as byte
Control Panel Port Input Bits (so they can be used as general I/O if I2=1)
M20->Y:$078800,8,1 ; Jog Minus Input
M21->Y:$078800,9,1 ; Jog Plus Input
M22->Y:$078800,10,1 ; Prejog Input
M23->Y:$078800,11,1 ; Start (Run) Input
M24->Y:$078800,12,1 ; Step/Quit Input
M25->Y:$078800,13,1 ; Stop (Abort) Input
M26->Y:$078800,14,1 ; Home Command Input
M27->Y:$078800,15,1 ; Feed Hold Input
M28->Y:$078800,16,1 ; Motor/C.S. Select Input Bit 0
M29->Y:$078800,17,1 ; Motor/C.S. Select Input Bit 1
M30->Y:$078800,18,1 ; Motor/C.S. Select Input Bit 2
M31->Y:$078800,19,1 ; Motor/C.S. Select Input Bit 3
M32->Y:$078800,16,4,C ; Selected Motor/C.S. Number
Thumbwheel Port Bits (So they can be used as general-purpose I/O)
M40->Y:$078801,8,1 ; SEL0 Output
M41->Y:$078801,9,1 ; SEL1 Output
M42->Y:$078801,10,1 ; SEL2 Output
M43->Y:$078801,11,1 ; SEL3 Output
M44->Y:$078801,12,1 ; SEL4 Output
M45->Y:$078801,13,1 ; SEL5 Output
M46->Y:$078801,14,1 ; SEL6 Output
M47->Y:$078801,15,1 ; SEL7 Output
M48->Y:$078801,8,8,U ; SEL0-7 Outputs treated as a byte