Omron trajexia CJ1W-MCH72 Operation Manual page 134

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
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.
/i
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 CONSTANTs can be declared.
Section 4-2
123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents