5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-94
If a communication timeout occurs, M1129 will be ON. If M1129 is ON, M1122
will be set to ON. The number of times the sending of data is retired is stored in
D0. The default value in D0 is 3.
If the data received is incorrect, M1140 will be ON. If M1140 is ON, M1122 will
be set to ON. The number of times the sending of data is retired is stored in
D0. The default value in D0 is 3.
If the values of parameters of the instruction MODWR is incorrect, M1141 will
be ON. If M1141 is ON, M1122 will be set to ON. The number of times the
sending of data is retired is stored in D0. The default value in D0 is 3.
Processing the data received
Communication protocol: 9600,8,E,1
The communication protocol set is retained.
M1127 is reset.
Request for sending data
Communication command:
Device address: 01
Data address: H0100
Data: H1770
The reception
of data is complete.
When a communication timeout occurs, the sending of data is retried.
When the data received is incorrect, the sending of data is retried.
When the values of parameters of MODRD are incorrect, the sending of data is retried.
Communication timeout: 100 ms
The data received is stored in
D1070~D1085 in the form of ASCII characters.
M1129 is reset.
M1002
MOV H87
D1120
SET
M1120
SET M1122
MOV
K100 D1129
RST M1127
M1127
X0
MODWR
K1
H0100 H1770
X0
M1129
M1140
M1141
RST
M1129
MOV
K3
D0
LD>= D0 D100
M1122
INC
D100
RST
D100
M1129
M1140RST
M1140
M1141RST
M1141
Additional
rema
rk
If LDP/ANDP/ORP or LDF/ANDF/ORF precedes the instruction MODRD
(function code: H06 or H10), M1122 must be set to ON before MODRD is
executed.
The instruction can be used several times in a program, but one instruction is
executed at a time.