Chapter 7 Automatic Sending/Receiving function (ASR)
Sample program 7
To execute event sending
Slot No.
0 1
2
(for EHV-CPU)
EH-ETH2
* -
-
(00001)
R7E3
WM003 = H2
WM004 = H2F
DM005 = ADR (WM10)
WM007 = 13
R100 = 1
R100
Parameters setting of SCRW(s) for reading out SR.
Request to read out SR
Area setting (unit:0, slot:0)
Transmission I/O address is starting from WM10
Transmission data size is 13 words
Setting 1 to control bit for reading SR
SCRW for reading out SR
SCRW (WM000, R100)
(00003)
(00002)
R100
S
(00006)
R7E3
WM00B = H3
WM00C = H0
DM00D = ADR (WM20)
WM00F = 10
SCRW (WM008, R103)
(00007)
Reading out SR at R100 = 1
Parameters setting of SCRW (s) for writing CR.
Request to write CR.
Area setting (unit:0, slot:0)
Transmission I/O address is starting from WM20.
Transmission data size is 10 words.
SCRW for writing CR.
(00004)
R21
Set 1 to “Request for event sending bit”.
Set 1 to “request to write CR bit”.
This circuit disabled.
Next circuit enabled.
M230 = 1
R103 = 1
R21 = 0
R22 = 1
M175
M230
(00005)
R22
Clear “Request for event sending bit”.
Set 1 to “request to write CR bit”.
This circuit disabled.
M230 = 0
R103 = 1
R22 = 0
M230
M171
7-25