Delta CT2000 Series User Manual page 589

Table of Contents

Advertisement

Chapter 16 PLC Function CT2000 Series
When the reported message indicates no error, it will switch to the next transmitted command
6
M1077
M1078 M1079
485 R/W
485 R/W
rite is co
rite is fail
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
485 R/W rite is co
33
M1002
ON only for 1 scan a
M200
Delay cycle
36
M100
ReqTXOnce
It will repeat after sending all commands
102
M5
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
CT2000:The default PLC station number is set as 2 (09-35)
09-31=-12(COM1 is controlled by the PLC ), 09-01=115.2(The communications speed is 115200 )
09-04=13(The format is 8,N,2, RTU)
RTU485: The station number = 8 (give example)
ID7 ID6 ID5 ID4 ID3 ID2 ID1 ID0
485 R/W
rite is time 0
D30 K40
M0
M1
M2
M3
M4
D30 K40
ROLP
K4M0
D30
ADD
MOV
K2
H1
H500 D200
MODRW
H500 D100
MODRW
K2
HF
H410 D201
MODRW
K2
H2
K3
H3
H2100 D300
MODRW
K2
H2
H410 D201
MODRW
MOV
MOV
PA3 PA2 PA1 PA0 DR2 DR1 DR0 A/R
16-148
K1
K1
D30
D30
K0
( M200 )
Delay cycle
( M100 )
ReqTXOnce
K4M0
K1
D1
INC
K4M0
K1
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents