Chapter 4 CPU modules MASTER-K
4-26
Example 2) Switch On/Off the last bit of P07 word (K1000S)
a) Write the forced I/O data (h0001) to the corresponding data word. P10 is matched
to the D9807 word.
<D9807 word>
F E D C BA98765432 1 0
0 0 0 0 0000000000 0
1
b) Write the forced I/O address (last bit = h0001) to the corresponding address word.
Write h0001 to the D9707.
<D9707 word> ( 0 = disable forced I/O, 1 = enable forced I/O )
F E D C BA98765432 1 0
0 0 0 0 0000000000 0
1
c) Switch on the forced I/O request bit (M1910).
d) Output of P07 word
(P : The previous result of operation)
F E D C BA98765432 1 0
P P P P P P P P P P P P P P P P
F E D C BA98765432 1 0
P P P P PPPPPPPPPP P
1
4.5.3 Program edit in RUN mode
User can insert, delete, or change instructions of program while the CPU is running.
This function is useful to debugging or test-operation. Please refer the user’s manual
of KLD-150S or KGL-WIN for detail information.
Remark
The program edit in RUN mode can not be performed for the following instructions – JMP,
JME, CALL, SBRT, FOR, and NEXT instructions. Moreover, the program that has very long
scan time (2 seconds or more) can not be edited while the CPU is in the RUN mode.