Yamaha RCX142 User Manual page 131

4-axis robot controller
Table of Contents

Advertisement

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
• In one "FUNCTION" program,
functions for program edit and I/O
functions in "MANUAL" mode can
be used together and defined.
• Besides the above method, user
functions can also be defined by 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.
• When assignment was made to a
function key that has already been
assigned, the new assignment will
be valid.
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
<I/O statement 1> ........ Command statement to be executed when the key is
<I/O statement 2> ........ Command statement to be executed when the key is
Example)
*M_F2:'MOMENT ...... Character string "MOMENT" is assigned to the
DO (20) =1 ................... DO (20) is turned ON when the
DO (20) =0 ................... DO (20) is turned OFF when the
*M_F14:'ALTER ......... Character string "ALTER" is assigned to the
DO (20) = ~ DO (20) ..... DO (20) is highlighted when the
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
———————————————————————————————————————————
1
*P_F2:'MOVE,P
2 *P_F8:'DELAY
3 *M_F2:'MOMENT
4 DO(20)=1
5 DO(20)=0
SELECT
COPY
7) When the registration is complete, press the
10. "PROGRAM" mode
(displayed on the screen).
pressed.
released.
key.
<FUNCTION>
1
2
CUT
PASTE
key.
ESC
4
F 2
key is pressed.
F 2
key is released.
F 2
key.
F 14
key is pressed.
F 14
3
BS
69
4-

Advertisement

Table of Contents
loading

Table of Contents