Entering Or Editing Programs - Omron CPM1A Operation Manual

Sysmac series programmable controllers
Hide thumbs Also See for CPM1A:
Table of Contents

Advertisement

Programming Console Operations

4-3-8 Entering or Editing Programs

00002
1, 2, 3...
This operation is used enter or edit programs. It is possible in PROGRAM mode
only.
RUN
MONITOR
No
No
The same procedure is used to either input a program for the first time or to
change a program that already exists. In either case, the current contents of
Program Memory is overwritten.
The program shown in the following diagram will be entered to demonstrate
this operation.
TIM 000
#0123
MOV(021)
#0100
LR 10
ADB(050)
#0100
#FFF6
DM 0000
1. Press the CLR Key to bring up the initial display.
2. Specify the address where the program will begin.
3. Input the address where the program will begin and press the Down Arrow
Key. It is not necessary to input leading zeroes.
C
A
A
2
0
0
4. Input the first instruction and operand.
LD
5. Press the WRITE Key to write the instruction to Program Memory. The next
program address will be displayed.
WRITE
If a mistake was made inputting the instruction, press the Up Arrow Key to
return to the previous program address and input the instruction again. The
mistaken instruction will be overwritten
To specify the Completion Flag for a timer or counter, press the LD, AND,
OR, or NOT Key followed by the TIM or CNT Key, and then input the timer/
counter number last.
6. Input the second instruction and operand. (In this case it isn't necessary to
enter the timer number, because it's 000.) Press the WRITE Key to write the
instruction to Program Memory.
TIM
Timer number
WRITE
PROGRAM
OK
Address Instruction
00200
LD
12.3 s
00201
TIM
00202
MOV(021)
00203
ADB(050)
C
2
Section 4-3
Operands
IR
00002
000
#0123
#0100
LR
10
#0100
#FFF6
DM 0000
95

Advertisement

Table of Contents
loading

Table of Contents