Omron Programmable Controller Video Game Controller User Manual


 
6-2SectionProgramming Console Operations
89
The program shown in the following diagram will be entered to demonstrate
this operation.
00002
00200 LD IR 00002
00201 TIM 000
#0123
00202 MOV(021)
#0100
LR 10
00203 ADB(050)
#0100
#FFF6
DM 0000
MOV(021)
#0100
LR 10
TIM 000
#0123
12.3 s
ADB(050)
#0100
#FFF6
DM 0000
Address Instruction Operands
1, 2, 3... 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
2
A
0
A
0
00200READ
NOP (000)
4. Input the first instruction and operand.
LD
C
2
00200
LD 00002
5. Press the WRITE Key to write the instruction to Program Memory. The next
program address will be displayed.
WRITE
00201READ
NOP (000)
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 isnt necessary to
enter the timer number, because its 000.) Press the WRITE Key to write the
instruction to Program Memory.
TIM
Timer number
WRITE
00201 TIM DATA
#0000
7. Input the second operand (123 to specify 12.3 seconds) and press the
WRITE Key. The next program address will be displayed.
B
1
C
2
D
3
WRITE
00202READ
NOP (000)
If a mistake was made inputting the operand, press the Up Arrow Key to
return to display the mistaken operand and input the operand again.
Note a) Counters are input in the same basic way as timers except the
CNT Key is pressed instead of the TIM Key.
b) Timer and counter SVs are input in BCD, so it isnt necessary to
press the CONT/# Key.