Sample Ladder Program - Omron C200H-MC221 Operation Manual

Motion control unit
Hide thumbs Also See for C200H-MC221:
Table of Contents

Advertisement

Controlling the MC Unit from the PC

6-3-3 Sample Ladder Program

Program Flow
Memory Run Flag
120
The following sample program incorporates the procedure to execute the MC
program. This program is the minimum required to execute the MC program.
Add the program elements needed for your actual application.
R1
R2
n+11 05
Memory Run
Completed Flag
R4
n+13 09
R3
n+11 02
Cycle Start
Automatic Mode Flag
Completed
Flag
n+1 02
Cycle Start Bit
Use Auxiliary Area bits for inputs R1, R2, R3, and R4.
In the sample program, program number P001 is executed in task 1. Change the
task and program number if necessary.
Turn ON input R1 to specify automatic mode.
Turn ON input R2 in the following situations:
• The first time that the program is executed after the power is turned ON.
• When executing the program from the beginning.
• When the program number has been changed.
Execution of the MC program will begin when R4 goes ON.
The Memory Run Flag is equivalent to the manual mode's Busy Flag. This flag is
ON while the MC program is being executed; it is OFF when program execution
is completed or stopped.
Cycle Start Bit
Memory Run Flag
Section 6-3
OUT
n+1
(Specifies
01
automatic
mode.)
MOV(21)
(Sets the
program
#0001
number.)
n+0
OUT
(Reads the
n+1
program
07
number.)
End of MC
program
DIFU(13)
R3
execution
n+1
OUT
02
(Start of MC
program
execution.)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents