Omron trajexia CJ1W-MCH72 Operation Manual page 135

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

Advertisement

All BASIC commands
4-2-56 CONTROL
4-2-57 COPY
4-2-58 COS
124
Arguments
name
Any user-defined name containing lower case alpha, numerical or
underscore characters.
value
The value assigned to name.
Example
CONSTANT "nak", $15
CONSTANT "start_button", 5
IF IN(start_button)=ON THEN OP(led1, ON)
IF key_char=nak THEN GOSUB no_ack_received
See also
N/A
/i
Type
System parameter (read-only)
Syntax
CONTROL
Description
The CONTROL parameter returns the type of controller in the system.
The value of this system parameter for the CJ1W-MCH72 is 264.
Note: When the Motion Controller is locked, 1000 is added to the value,
so a locked CJ1W-MCH72 will return 1264.
Arguments
N/A
Example
No example.
See also
N/A
/i
Type
Program command
Syntax
COPY program_name new_program_name
Description
The COPY command copies an existing program in the controller to a
new program with the specified name. The program name can be spec-
ified without quotes.
Note: This command is implemented for the Command Line Terminal.
Arguments
program_name
Name of the program to be copied.
new_program_name
Name to use for the new program.
Example
>> COPY "prog" "newprog"
See also
DEL, NEW, RENAME.
/i
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.
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents