- 45 -
(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 .............................................. RD (4452H)
First reading address of code tag................... 10
Number of reading word ............................... 10
Store area of reading data ............................ D1000...D1009
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
H4452
D100
(link) (RX7B) (RX3) (RX4) (RY4)
MOVP
K10
D101
10)
Setting first address of reading (K
MOVP
K10
D102
(K10)
Setting number of reading word
Writing of setting digit
TOP
H0
H1E0
D100
K3
Start executing instruction
SET
M340
(RY4)
Initialization index register
MOVP
K0
Z0
M215
M343
M340
Store the reading data to after D1000
FROMP
H0
H2E3
D1000Z0
K5
(RX7)
(RY7) (RY4)
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
Store the reading data to after D1000
FROMP
H0
H2E3
D1000Z0
K5
Only last)
(RX4)
(RY4)
(
Finish executing instruction
RST
M340
(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 ...