Example program:Each function testing
The first command will be transfer timing when turning on.
0
M1002
On only for 1 scan a
When feedback is finished without error, switch to next command
6
M1077
M1078 M1079
485 R/W
485 R/W
rite is co
rite is fail
When occurring Time out or feedback error, M1077 will be ON, and after 30 times scan cycle,
commanding again
14
M1077
485 R/W rite is co
D30 K40
33
M1002
ON only for 1 scan a
M200
Delay cycle
36
M100
M0
ReqTXOnce
M1
M2
M3
M4
After finishing all commands, repeat again
102
M5
D30 K40
121
Example:
485 R/W
rite is time 0
MODRW
MODRW
MODRW
MODRW
MODRW
16-140
Chapter 16 PLC Function C2000 Series
K4M0
MOV
K1
K4M0
ROLP
K1
K1
D30
ADD
D30
D30
K0
MOV
( M200 )
Delay cycle
( M100 )
ReqTXOnce
K2
H1
H500 D200
K2
HF
H500 D100
K2
H2
H410 D201
K3
H3
H2100 D300
K2
H2
H410 D201
MOV
K1
K4M0
INC
D1
K1
K4M0
MOV
END