Chapter 16 PLC Function ApplicationsC2000 Plus
16-160
When the reported message indicates no error, it will switch to the next transmitted command
6
M1077
ROLP
K4M0
K1
485 R/W
rite is co
M1078 M1079
485 R/W
rite is fail
485 R/W
rite is time 0
If time out occurs or an error is reported, the M1077 will change to On. At this time, after a delay of 30
scanning cycles, it will re-issue the original command once
14
M1077
D30
D30
K1
MOV
D30
K0
485 R/W rite is co
33
M1002
Delay cycle
ON only for 1 scan a
M200
ADD
D30
K40
( M200 )
Delay cycle
( M100 )
ReqTXOnce
H500
D200
M0M100
H1K2
MODRW
ReqTXOnce
H500
D100
M1
HFK2MODRW
H410
D201
M2
H2K2MODRW
H2100
D300
M3
H3K3
MODRW
H410 D201
M4
H2K2
MODRW
36
It will repeat after sending all commands
102
M5
D30
K40
MOV
K4M0
K1
INC
D1
MOV
K4M0
K1
END
121
Practical applications:
Actual use to control the RTU-485 module.
Step 1: Set the communications format. Assume that the communications format is 115200, 8,N,2,
RTU
C2000 Plus:The default PLC station number is set as 2 (09-35)
Pr. 09-31=-12 (COM1 is controlled by the PLC ), Pr. 09-01=115.2 (The communications speed is
115200 )
Pr. 09-04=13 (The format is 8,N,2, RTU)