Manual
Detailed Descriptions of ACL Commands 3-61
SC <x>, <y>, <varid> [, <inverse>] Scale
This command computes the microstep equivalent of the Calibrated Units position in <x>
and <y>. The computation takes into effect the current pattern rotation, calibration factors,
Origin, and linearity correction. (See, respectively, the BP, CF, SO, and CR commands.)
<x> and <y> must be in the range -32768.0000 through 32767.9999. During the conversion
from Calibrated Units to microsteps the intermediate and final computation results must be
within the range -32768 through 32767. If this condition is not met, the out-of- range
number is set to -32768 or 32767 and an error is logged.
The X microstep result is placed into the variable given by <varid>, and the Y result into the
following variable. The results are always integers, and may be outside the travel limits.
(See the TL command. For information about variables, see Chapter 10.)
If the <inverse> parameter is present and is nonzero, the inverse correction is performed; in
other words, a microstep location in <x> and <y> is converted to the equivalent Calibrated
Units position. In this case <x> and <y> are rounded to the nearest integer before the
conversion is performed, and the results will be in the range -32768.0000 through
32767.9999.
Example: suppose you desire to begin a pattern whose Origin is to be at the microstep
equivalent of (1000, 3000) Calibrated Units. You could use the following ACL commands:
MA 1000, 3000; BP;
but this produces an undesired extra move to (1000, 3000). An alternative method uses the
SC and SO ("Set Origin") commands and produces no motion:
SC 1000, 3000, 10; BP; SO @10, @11;
The SC scales into variables 10 and 11. The BP sets the Origin to the current carriage
location, but this Origin is promptly overridden by the SO command. For the remainder of
this pattern (i.e. until the EP "End Pattern" command) the Origin remains at this new
location.
SO [<xorg>, <yorg>] Set Origin
The Calibrated Unit Origin position (the MA origin) is re- established at the microstep
position given by <xorg> and <yorg>, relative to the Home position. The Origin Change
status bit is cleared. The range of <xorg> and <yorg> is 0 through 32767.
Recall that the Home position is at (0,0) microsteps, where the Home switches closed during
an FH or manual re-reference. <xorg> and <yorg> are absolute microstep values; in other
words, they are offsets from the Home position, unaffected by the calibration factors, the
linearity correction, or the previous location of the Origin position.
The origin defaults to (0,0) microsteps (i.e. the Home position) if <xorg> and <yorg> are
omitted, and at IN or power up. In a given SO command, <xorg> and <yorg> must be
either both specified or both omitted.