![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585136.webp)
All BASIC commands
Section 4-2
124
4-2-56 CONTROL
/i
4-2-57 COPY
/i
4-2-58 COS
/i
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
LIST_GLOBAL
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
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
.
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.
Содержание 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...