![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hs/sysmac-c200hs_operation-manual_742436103.webp)
93
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-7-2 Entering and Editing Programs
Programs can be entered and edited only in PROGRAM mode with the write-
protect switch (pin 1 of the CPU’s DIP switch) set to OFF (OFF=“WRITE”).
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 Program
Memory is overwritten, i.e., if there is no previous program, the NOP(00) instruc-
tion, which will be written at every address, will be overwritten.
To enter a program, input the mnemonic code that was produced from the ladder
diagram step-by-step, ensuring that the correct address is set before starting.
Once the correct address is displayed, enter the first instruction word and press
WRITE. Next, enter the required operands, pressing WRITE after each, i.e.,
WRITE is pressed at the end of each line of the mnemonic code. When WRITE is
pressed at the end of each line, the designated instruction or operand is 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 displayed.
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 leading
zeros. Leading zeros are required only when inputting function codes (see be-
low). 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 desig-
nate each constant by pressing CONT/#. CONT/# is not required 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, depending 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 address (pressing DM is not necessary for
an indirect DM address).
Example
Inputting, Modifying, and Checking the Program
Section 4-7
Содержание SYSMAC C200HS
Страница 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...
Страница 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...
Страница 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...
Страница 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...