Entering Or Editing Programs - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Inputting, Modifying, and Checking the Program
Example
4-6-2

Entering or Editing Programs

Inputting SV for Counters
and Timers
76
If the following mnemonic code has already been input into Program Memory,
the key inputs below would produce the displays shown.
Programs can be entered or edited only in PROGRAM mode.
The same procedure is used to either input a program for the first time or to
edit a program that already exists. In either case, the current contents of Pro-
gram Memory is overwritten, i.e., if there is no previous program, the
NOP(00) instruction, which will be written at every address, will be overwrit-
ten.
To input a program, just follow the mnemonic code that was produced from
the ladder diagram, ensuring that the proper address is set before starting.
Once the proper address is displayed, input the first instruction word, press
WRITE. Next, input any operands required, and press WRITE after each, i.e.,
WRITE is pressed at the end of each line of the mnemonic code. When
WRITE is pressed, the designated instruction will be entered and the next
display will appear. If the instruction requires two or more words, the next
display will indicate the next operand required and provide a default value for
it. If the instruction requires only one word, the next address will be dis-
played. Continue inputting each line of the mnemonic code until the entire
program has been entered.
When inputting numeric values for operands, it is not necessary to input lead-
ing zeros. Leading zeros are required only when inputting function codes
(see below). When designating operands, be sure to designate the data area
for all but IR and SR addresses by pressing the corresponding data area key,
and to designate each constant by pressing CONT/# . CONT/# is not re-
quired for counter or timer SVs (see below). The AR area is designated by
pressing SHIFT and then HR. TC numbers as bit operands (i.e., completion
flags) are designated by pressing either TIM or CNT before the address, de-
pending on whether the TC number has been used to define a timer or a
counter. To designate an indirect DM address, press CH/* before the ad-
dress (pressing DM is not necessary for an indirect DM address).
The SV (set value) for a timer or counter is generally entered as a constant,
although inputting the address of a word that holds the SV is also possible.
Address Instruction
00200
LD
00201
AND
00202
TIM
00203
LD
Section 4-6
Operands
00000
00001
000
#0123
00100

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents