4-
69
4
Operation
10. “PROGRAM” mode
When registering function keys for I/O commands in “MANUAL” mode
*M_F<n>:’<character string>
<I/O statement 1>
<I/O statement 2>
<n> ............................... Function key number to be registered (n=1 to15)
<character string> ........ Character string to be assigned to the function key
(displayed on the screen).
<I/O statement 1> ........ Command statement to be executed when the key is
pressed.
<I/O statement 2> ........ Command statement to be executed when the key is
released.
Example)
*M_F2:’MOMENT ...... Character string “MOMENT” is assigned to the
F 2
key.
DO (20) =1 ................... DO (20) is turned ON when the
F 2
key is pressed.
DO (20) =0 ................... DO (20) is turned OFF when the
F 2
key is released.
*M F14:’ALTER .......... Character string “ALTER” is assigned to the
F 14
key.
DO (20) =~DO (20) ..... DO (20) is highlighted when the
F 14
key is pressed.
In the above example, “ALTER” defines an “alternate” type function, and “MOMENT” a
“momentary” type function.
A <character string> of up to 65 characters can entered. However, up to 7 characters
following the colon ( : ) are displayed on the function key menu.
Fig. 4-10-32 Registering user functions
PROGRAM
>EDIT <FUNCTION>
1
*P_F2:’MOVE,P
2 *P_F8:’DELAY
3 *M_F2:’MOMENT
4 DO(20)=1
5 DO(20)=0
SELECT
COPY
CUT
PASTE
BS
———————————————————————————————————————————
1
2
3
7) When the registration is complete, press the
ESC
key.
n
NOTE
<I/O statement 2> may be omitted. If
omitted the <I/O statement 1>will be
executed when the key is pressed, but
nothing will be executed when
released.
n
NOTE
1. In one “FUNCTION” program,
functions for program edit and I/O
functions for “MANUAL” mode
can be used together and defined.
2. Besides the above method, user
functions can also be defined with
the next method.
1) “FUNCTION” can be made
automatically according to the
user function-defined sample
program registered in the unit.
(Refer to “10.3.9 Creating a
sample program
automatically”)
2) Rewrite the contents of the
“FUNCTION” program in the
“PROGRAM>EDIT” mode to
create desired user functions.
3. When assignment was made to a
function key that has already been
assigned, the new assignment will
be valid.
Summary of Contents for RCX40
Page 1: ...User s Manual ENGLISH E YAMAHA 4 AXIS ROBOT CONTROLLER E75 Ver 12 00 RCX40 ...
Page 2: ......
Page 16: ...viii MEMO ...
Page 18: ...MEMO ...
Page 24: ...1 6 MEMO ...
Page 26: ...MEMO ...
Page 34: ...MEMO ...
Page 284: ...MEMO ...
Page 308: ...5 24 MEMO ...
Page 310: ...MEMO ...
Page 318: ...6 8 MEMO ...
Page 320: ...MEMO ...
Page 328: ...7 8 MEMO ...
Page 330: ...MEMO ...
Page 336: ...MEMO ...