Omron TJ2-MC64 - PROGRAMMING Programming Manual page 197

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

BASIC commands
Description
This command sets up a ratio for the output of the stepper axis. Every servo-
period the number of steps is passed through the STEP_RATIO function
before it goes to the step pulse output.
Pulse Count Out = (numerator)/(denominator) * MPOS.
STEP_RATIO affects both MOVECIRC and CAMBOX.
Notes:
The STEP_RATIO function operates before the divide by 16 factor in the
stepper axis.
Large ratios should be avoided as they will lead to either loss of resolu-
tion or much reduced smoothness in the motion. The actual physical step
size x 16 is the BASIC resolution of the axis and use of this command
may reduce the ability of the Motion Controller to accurately achieve all
positions.
STEP_RATIO does not replace UNITS. Do not use STEP_RATIO to
remove the x16 factor on the stepper axis as this will lead to poor step
frequency control.
Arguments
denominator
An integer number between 0 and 16777215 that is used to define the
denominator in the above equation.
numerator
An integer number between 0 and 16777215 that is used to define the
numerator in the above equation.
Example
Two axes are set up as X and Y but the axes ' steps per mm are not the
same. Interpolated moves require identical UNITS values on both axes in
order to keep the path speed constant and for MOVECIRC to work correctly.
The axis with the lower resolution is changed to match the higher step resolu-
tion axis so as to maintain the best accuracy for both axes.
' Axis 0: 500 counts per mm (31.25 steps per mm)
' Axis 1: 800 counts per mm (50.00 steps per mm)
BASE(0)
STEP_RATIO(500,800)
UNITS = 800
BASE(1)
UNITS = 800
See also
N/A
PROGRAMMING MANUAL
3.2.278 STEPLINE
/i
Type
Program command
Syntax
STEPLINE [ "program_name" [ , task_number ]]
Description
The STEPLINE command executes one line (i.e., "steps") in the program
specified by program_name. The program name can also be specified with-
out quotes. If STEPLINE is executed without program name on the command
line the current selected program will be stepped. If STEPLINE is executed
without program name in a program this program will be stepped.
If the program is specified then all occurrences of this program will be
stepped. A new task will be started when there is no copy of the program run-
ning. If the task is specified as well then only the copy of the program running
on the specified task will be stepped. If there is no copy of the program run-
ning on the specified task then one will be started on it.
Arguments
program_name
The name of the program to be stepped.
task_number
The number of the task with the program to be stepped. Range: [2,21].
Example
>> STEPLINE "conveyor"
Example
>> STEPLINE "maths",2
See also
RUN, SELECT, STOP, TROFF, TRON.
3.2.279 STOP
/i
Type
Program command
Syntax
STOP [ "program_name" [ , task_number ]
Description
The STOP command will halt execution of the program specified with
program_name. If the program name is omitted, then the currently selected
program will be halted. The program name can also be specified without
quotes.
In case of multiple executions of a single program on different tasks the
task_number can be used to specify the specific task to be stopped.
191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents