76
If the following mnemonic code has already been input into Program Memory,
the key inputs below would produce the displays shown.
00000
00200
00200READ OFF
LD 00000
00201READ ON
AND 00001
00202READ OFF
TIM 000
00202
TIM #0123
00203READ ON
LD 00100
Address
Instruction
Operands
00200
LD
00000
00201
AND
00001
00202
TIM
000
#0123
00203
LD
00100
4-6-2
Entering or Editing Programs
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.
Example
Inputting SV for Counters
and Timers
Inputting, Modifying, and Checking the Program
Section 4-6