![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585135.webp)
All BASIC commands
Section 4-2
123
/i
4-2-55 CONSTANT
/i
Example
Axis 0 is required to run a continuous forward. Axis 1 must connect to
axis 0. If
CONNECT
is called, it results in a step change. Therefore,
CLUTCH_RATE
is used, together with an initial and final connect ratio
of zero, to get the required motion.
FORWARD AXIS(0)
BASE(1)
CONNECT(0,0) 'set intitial ratio to zero
CLUTCH_RATE=0.5 'set clutch rate
CONNECT(2,0) 'apply the required connect ratio
WA(8000)
CONNECT(0,0) 'apply zero ratio to disconnect
WA(4000) 'wait for deceleration to complete
CANCEL 'cancel connect
See also
AXIS
,
CANCEL
,
CLUTCH_RATE
,
CONNECT
,
RAPIDSTOP
.
Type
System command
Syntax
CONSTANT "name", value
Description
Declares the name as a constant for use both within the program con-
taining the
CONSTANT
definition and all other programs in the Trajexia
Studio solution.
Note: The program containing the
CONSTANT
definition must be run
before the name is used in other programs. In addition, only that pro-
gram should be running at the time the
CONSTANT
is executed, other-
wise the program error will appear and the program will stop when trying
to execute this command. For fast startup the program should also be
the only process running at power-up.
Using
CONSTANT
with only the name will erase the specified constant.
Using
CONSTANT
with no parameters will erase all
CONSTANT
decla-
rations. This also happens when the CJ1W-MCH72 is reset by switch-
ing the power off and back on, or by executing the
EX
command.
A maximum of 128
CONSTANT
s can be declared.
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...