- 51 -
(3) Example of programming
The example is programmed on the following condition.
(Comparing result signal (RX1) is not used in the following program.)
Using channel ................................................ CH1
Instruction code .............................................. WD (4457H)
First writing address of code tag .................. 10
Number of writing word ............................... 10
Store area of writing data ............................ D2000...D2009
Store area of error code ................................ D0
External External
Signal
interlock signal
Start
SET
M1
SM400
Reading other data link condition
FROM
H0
H680
K4M100
K4
M1
M100
M331
M211
M212
M340
Setting instruction code
MOVP
H4457
D100
(link) (RX7B)
(RX3) (RX4) (RY4)
MOVP
K10
D101
10)
Setting first address of writing (K
MOVP
K10
D102
(K10)
Setting number of writing word
Sets D2000...D2004 as writing data
BMOVP
D2000
D103
K5
Writing of setting digit
TOP
H0
H1E0
D100
K3
Write writing data
TOP
H0
H1E3
D103
K5
Start executing instruction
SET
M340
(RY4)
Initialization index register
MOVP
K5
Z0
M215
M343
M340
Set after D2005 as writing data
BMOVP
D2000Z0 D103
K5
(RX7)
(RY7) (RY4)
Write writing data
TOP
H0
H1E3
D103
K5
Add K5 to index register
+P
K5
Z0
Set flag for finish divided reading
SET
M343
M215
M343
M340
(RY7)
et flag for finish divided reading
RST
M343
Res
(RX7)
(RY7) (RY4)
(RY7)
M212
M340
Finish executing instruction
RST
M340
(RX4)
(RY4)
(RY4)
Finish
RST
M1
M213
M340
Reading error code
FROMP
H0
H2E1
R0
K1
(RX5)
(RY4)
Summary of Contents for BIS C-489-1 KBT02 Series
Page 7: ... 4 2 3 Dimension ...