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.
When the CONSTANT is declared, the declaration remains active until
the next CJ1W-MCH72 reset by switching the power off and back on, or
by executing the EX command.
A maximum of 128
CONSTANT
s can be declared.
Summary of Contents for trajexia CJ1W-MCH72
Page 69: ...Specifications Section 2 4 58...
Page 83: ...FINS commands Section 3 4 72...
Page 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 277: ...All BASIC commands Section 4 2 266...
Page 371: ...360 Index...
Page 373: ...362...