Switching The Program From I/O - Yamaha DRCX User Manual

2-axis robot controller
Hide thumbs Also See for DRCX:
Table of Contents

Advertisement

8-5 Sample Programs
8
38
8-
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

8-5-6 Switching the program from I/O

The DRCX series controller does not accept dedicated command inputs for program switching. To
switch the program through the I/O, use the program selection signal as a conditional jump input as
explained below.
The following method is an example for switching among 16 kinds of programs.
Parameter
Since the number of programs to be selected is 16, set
the PRM0 (No. of conditional input points) to 4.
c
CAUTION
In actual programming, PRM0 must be set to
match the number of programs you use. (See
the table at the right.)
General-purpose input
DI0
DI1
DI2
DI3
DI8
<<Program description>>
When using the JMPF statement to select a program, select the general-purpose input/output points
(DI8 and DO0 in this case) one at a time and perform the handshake. This is for synchronizing the
DRCX controller program with an external device such as a PLC. If this part is omitted, the wrong
program might be selected during program selection with the JMPF statement.
In specific operations, an external device should turn on DI8 after confirming DI3 to DI0. The DRCX
controller then turns on DO0 just after detecting that DI8 is on, and informs the external device that
the program is being selected. When the external device detects that DO0 is on, DI8 should turn off.
(DI3 to DI0 should be retained.) Then, when DO0 turns off, this means that the program selection is
complete, so it is okay to change DI3 to DI0. The program selection is now complete and actual
program operations are executed.
When each selected program has been executed, the operation returns to the top of the program (L0
in the program NO0). The operation returns to the top of the program when there is no program
matching the program selection input.
Time chart
Input
Program selection
Confirmation of selected program
(DI3~DI0)
DI8
Output
DO0
Program selection 0
Program selection 1
Program selection 2
Program selection 3
Confirmation of selected program
Confirmation of selected program
Execution of selected program
Number of programs
Number of
to be selected
DI points
2 or less
1
4 or less
2
8 or less
3
16 or less
4
32 or less
5
64 or less
6
100 or less
7
General-purpose output
DO0 Program selection start
Execution of selected program
DI numbers to
be used
DI0
DI0 to DI1
DI0 to DI2
DI0 to DI3
DI0 to DI4
DI0 to DI5
DI0 to DI6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Drcx2005

Table of Contents