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