Hitachi EH-150 Applications Manual page 67

Ethernet module 2 eh-eth2
Hide thumbs Also See for EH-150:
Table of Contents

Advertisement

Sample program 3
R7E3
R100
R1
M170 M110
R2
R2
M210
R3
TD1
M170
R3
M170 M210
R4
R7E3
*1: SR is abbreviation of Status Register
*2: CR is abbreviation of Control Register.
See "Chapter 8 Register Structure" for detailed.
To open the connection to other station
(for EHV-CPU)
WM003 = H2
WM004 = H2F
DM005 = ADR ( WM10)
WM007 = 13
R100 = 1
R100
SCRW (WM000, R100)
R1 = 0
M210 = 1
R103 = 1
R1 = 0
R3 = 1
M210 = 0
R103 = 1
R3 = 0
WM00B = H3
WM00C = H0
DM00D = ADR (WM20)
WM00F = 10
SCRW (WM008, R103)
Chapter 7 Automatic Sending/Receiving function (ASR)
(00001)
Parameter area setting of SCRW 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.
(00002)
S
Reading out SR at R100 = 1
(00003)
SCRW for reading out SR
R2
(00004)
Request to open connection 1 at R1 = 1.
Check status (M170) and error (M110) of
connection 1
(00005)
Cancellation the connection open if connection 1 is
open (M170=1) or error (M110=1).
(00006)
Set 1 to "request to open bit" of connection 1.
Set 1 to "request to write to CR
Set 0 to "request to open contact" (R1).
Enable the circuit for cancellation the request to open.
(00007)
TD1
0.1
10
Timer counting from the request to open.
(00008)
R4
Set 1 to R4 if the connection is not opened after 1
second.
(00009)
Clear "request to open bit" for connection 1.
Set 1 to "request to write CR bit".
Disable the circuit for cancellation the request to open.
(00010)
Parameter area setting of SCRW 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.
(00011)
SCRW for writing CR.
7-9
Slot No.
0
1
2
EH-ETH2
*
-
-
*1
.
*2
bit"

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents