Reference Manual
PMAC 2 Software Reference
212 PMAC On-Line Command Specification
entering (c+1) columns. If there is any possibility that you may go beyond an edge of the
table, matching entries of Column 0 and Column c should have the same value to prevent
a discontinuity in the correction. Column c in the table may simply be an added column
beyond your real range of concern used just to prevent possible discontinuities at the
edges of your real range of concern.
• Because the outside rows and outside columns must match each other to prevent edge
discontinuities, the three explicitly entered corner corrections must be zero to match the
implicit zero correction at the first corner of the table.
Example
#1 DEFINE COMP 40.30,#1,#2,#3,300000,400000
........................... ; Create table belonging to Motor 1
ERR007............. ; PMAC rejects this command
DELETE GATHER ; Clear other buffers to allow loading
&1 DELETE ROTARY
&2 DELETE ROTARY
#2 DELETE COMP
#3 DELETE COMP
#4 DEFINE COMP 30.40,#1,#2,#3,400000,300000
........................... ; Create same table, now belonging to Motor 4;
........................... ; #1 & #2 are sources, #3 is target;
........................... ; 30 rows x 40 columns, spacing of 10,000 counts
(1270 entries)..... ; (30+1)*(40+1)-1 entries of constants
#3 DEFINE COMP 25.20,#2,#3,#1,200000,250000
........................... ; Create table belonging to Motor 3;
........................... ; #2 and #3 are sources, #1 is target;
........................... ; 25 rows x 20 columns, spacing of 10,000 counts
(545 entries)....... ;(25+1)*(20+1)-1 entries of constants
#2 DEFINE COMP 10.10,#1,#4,10000,20000
........................... ; Create table belonging to Motor 2; #1 and #4 are
........................... ; sources, #2 (default) is target; 10 rows x10 columns,
........................... ; spacing of 1000 cts between columns; pacing of
........................... ; 2000 cts between rows
(120 entries)....... ; (10+1)*(10+1)-1 entries of constants
#1 DEFINE COMP 12.10,#4,1280,1200
........................... ; Create table belonging to Motor 1, #4 and #1 (default)
........................... ; are sources, #1 (default) is target 12 rows x 10 columns
........................... ; spacing of 128 cts between columns spacing of 100 cts
........................... ; between rows
(142 entries)....... ; (12+1)*(10+1)-1 entries of constants
I51=1 ...... Enable compensation tables
See Also
Leadscrew compensation (Setting Up a Motor)
I-variable I51
On-line commands {constant}, LIST COMP, LIST COMP DEF, DELETE COMP,
DELETE GATHER, DELETE ROTARY, SIZE
DEFINE GATHER
Function
Create a data gathering buffer.
Scope
Global
Syntax
DEFINE GATHER [{constant}]
DEF GAT [{constant}]
where:
• {constant} is a positive integer representing the number of words of memory to be
reserved for the buffer