8-
32
8
ROBOT LANGUAGE
8-5 Sample Programs
8-5-6 Switching the program from I/O
The ERCX 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 PRM8 (No. of conditional input points) to 4.
DI0
DI1
DI2
DI3
DI8
Program selection 0
Program selection 1
Program selection 2
Program selection 3
Confirmation of selected program
General-purpose input
2 or less
4 or less
8 or less
16 or less
32 or less
64 or less
100 or less
1
2
3
4
5
6
7
DI0
DI0 to DI1
DI0 to DI2
DI0 to DI3
DI0 to DI4
DI0 to DI5
DI0 to DI6
Number of programs
to be selected
Number of
DI points
DI numbers
to be used
DO0 Program selection start
General-purpose output
c
CAUTION
In actual programming, PRM8 must be set to
match the number of programs you use. (See
the table at the right.)
<<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
ERCX 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 ERCX
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
Confirmation of selected program
Input
Output
Program selection
(DI3~DI0)
DI8
DO0
Confirmation of selected program
Execution of selected program
Execution of selected program
Summary of Contents for ERCX Series
Page 2: ......
Page 8: ...vi MEMO ...
Page 60: ...3 36 MEMO ...
Page 90: ...5 20 MEMO ...
Page 168: ...9 16 MEMO ...
Page 232: ...12 10 MEMO ...
Page 248: ...14 4 MEMO ...
Page 249: ...15 1 15 SPECIFICATIONS Chapter 15 SPECIFICATIONS ...
Page 253: ...16 1 16 APPENDIX Chapter 16 APPENDIX ...
Page 259: ...MEMO ...