![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243143.webp)
128
Command, function and parameter description
Section 6-3
CONNECT works on the default basis axis (set with BASE) unless AXIS is
used to specify a temporary base axis.
Arguments:
ratio
The connection ratio of the gearbox. The ratio is specified as the encoder
edge ratio (not units). It holds the number of edges the base axis is required to
move per edge increment of the driving axis. The ratio value can be either
positive or negative and has sixteen bit fractional resolution.
driving_axis
The Master axis which will drive the base axis.
See also:
AXIS, CANCEL, CLUTCH_RATE, CONNECT, RAPIDSTOP
Example:
In a press feed, a roller is required to rotate at a speed one quarter of the
measured rate from an encoder mounted on the incoming conveyor. The
roller is wired to axis 0. An input channel monitors the encoder pulses from
the conveyor and forms axis 1. The following code can be used.
BASE(1)
SERVO = OFF
’This axis is used to monitor the conveyor
BASE(0)
SERVO = ON
CONNECT(0.25,1)
6-3-43
CONTROL
Type:
System Parameter
Description:
The CONTROL parameter contains the type of MC Unit in the system. For
both the MCW151-E and MCW151-DRT-E it will returns value 260.
Note This parameter is read-only.
6-3-44
COPY
Type:
Program Command
Syntax:
COPY
“program_name” “new_program_name”
Description:
The COPY command copies an existing program in memory to a new pro-
gram with the specified name. The program names can also be specified
without quotes.
Precautions:
This command is implemented for an offline (VT100) terminal. Within Motion
Perfect users can select the command from the Program menu.
Arguments:
program_name
Name of the program to be copied.
new_program_name
Name to use for the new program.
See also:
DEL, NEW, RENAME
Example:
>> COPY "prog" "newprog"
6-3-45
COS
Type:
Mathematical Function
Syntax:
COS(
expression
)
Description:
The COS function returns the cosine of the expression. Input values are in
radians and may have any value. The result value will be in the range from -1
to 1.
Arguments:
expression
Any valid BASIC expression.