Hitachi EH-150 Applications Manual page 78

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

Advertisement

The sample program uses the below internal I/O.
FUN 201 parameters for reading Status Register (SR)
I/O
WM0 Result (Return code)
WM1 System area
WM2 System area
WM3 Control type (Read / write / etc)
WM4 EH-ETH2 slot number, and starting address for SR
WM5 Address of control bit for reading SR
WM6 Address of data for SR (Destination to read)
WM7 Data size for reading SR
R100 Execution bit for reading SR
R101 OK flag for reading SR
R102 Error flag for reading SR
*1: In the case of EHV-CPU, the command of SCRW is used to read or write to the registers.
The following points are different in the sample programs for EHV-CPU.
a)
It does not need setting of Address of control bit for reading or writing (WM5, WMD of the above table).
b)
Starting I/O No. of Destination (or Source) (WM6, WME of the above table) is set to WM5, WMD (of the above table).
Status Register (SR) destination I/O
I/O
WM10 Data to read from MDSR
WM11 Data to read from C1ESR
WM12 Data to read from C2ESR
WM13 Data to read from C3ESR
WM14 Data to read from C4ESR
WM15 Data to read from C5ESR
WM16 Data to read from C6ESR
WM17 Data to read from C1CSR
WM18 Data to read from C2CSR
WM19 Data to read from C3CSR
WM1A Data to read from C4CSR
WM1B Data to read from C5CSR
WM1C Data to read from C6CSR
Setting for ASR connection
Own Station
Cn. No.
Usage
Protocol
Cn.1
Send
TCP/IP
Cn.2
Cn.3
Cn.4
Cn.5
Cn.6
*2: This can be set as Active or Passive.
Description
Description
Other Station
Open
Port No. IP Address Port No.
Type
(*2)
*
4101
192.168.0.11
4102
4103
4104
4105
4106
Chapter 7 Automatic Sending/Receiving function (ASR)
FUN 201 parameters for writing Control Register
I/O
WM8 Result (Return code)
WM9 System area
WMA System area
WMB Control type (Read / write / etc)
WMC EH-ETH2 slot number, and starting address for CR
WMD Address of control bit for writing CR
WME Address of data for CR (Source to write)
WMF Data size for writing CR
R103 Execution bit for writing CR
R104 OK flag for writing CR
R105 Error flag for writing CR
Control Register (CR) source I/O
I/O
WM20 Data to write to MDCR
WM21 Data to write to CNCR
WM22 Reserve
WM23 Data to write to RECR
WM24 Data to write to EXRR
WM25 Data to write to RDCR
WM26 Data to write to EC1CR
WM27 Data to write to EC2CR
WM28 Data to write to EC3CR
WM29 Data to write to CMCR
IP address : 192.168.0.10
Send Information
Type
4111
Cyclic
4112
4113
4114
4115
4116
7-20
Description
Description
Send area Info.
Cyclic
I/O / Top Size (W)
Time (s)
2
WR000
80
WR050
WR0A0
WR100
WR150
WR1A0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents