Mitsubishi Electric AJ71C24-S6 User Manual page 316

Melsec-4 computer link module
Table of Contents

Advertisement

APPENDICES
MELSEC-A
(2) Sequence program example
CALLP
I
P I
M O
MOVPI D l W
I
Dl12
XOCOYOW
MOVPI
Z
I
D l 0
TOP
1
HWOC
1
H O O O O
1
D l 0
I
KO2
1
- 1
SET
I
YOW
t
105
I
- 1
RST
I
YOW
/-
t
- 1
FROM
1
HWOC
1
H0116
1
D4
I
K l
t
P1123
1 1
- 1
RST
I
V
/-
128
- I
FOR
I
K4
t
-
<>
1
DOV
I
DlOV
I
I
SET
I
M O
t
P2
147
..
RS-232C CD terminal check is disabled.
..
Bidirectional mode is set.
..
Time-out check time at response is set. (10 sec)
...
Checksum is disabled.
...
Data to check received data is stored in D l to D4.
...
The received data length (number of words) is
read by the received data read request.
...
The received data length is stored in
2.
...
Received data is read.
...
The read completed signal is turned ON.
...
Processing jumps to the received data check
routine.
,..
When received data is normal, the received
data, data in D l
W,
and the send data length
(number of words) are wriiten to the AJ71C24
send area.
,..
Send
request is set.
,..
Send request is reset when send is completed.
...
Send result is read.
...
If
the processing is not completed normally,
M I is set.
' 1
...
Received data "AJ71C24=" is checked.
If
an error is found, M O is
set.
149
1 -
CIRCUIT END
*
1 When an error occurs in the data send result
Perform error correction according to the error code read from buffer
memory address 11 6H.
APP
-
32

Advertisement

Table of Contents
loading

Table of Contents