In Case Eh-Eth Requests To Open - Hitachi HIDIC EH-150 Applications Manual

Programable controller; ethernet module(eh-eth)
Hide thumbs Also See for HIDIC EH-150:
Table of Contents

Advertisement

Sample program 3
R7E3
R100
R1
M170 M110
R2
M210
R2
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 construction" for detailed.

In case EH-ETH requests to open

connection to the other station
WM003 = H2
WM004 = H2F
ADRIO = (WM005, R100)
ADRIO = (WM006, WM10)
WM007 = 13
R100 = 1
FUN201 (WM000)
R1 = 0
M210 = 1
R103 = 1
R1 = 0
R3 = 1
M210 = 0
R103 = 1
R3 = 0
WM00B = H3
WM00C = H0
ADRIO = (WM00D, R103)
ADRIO = (WM00E, WM20)
WM00F = 10
FUN201 (WM008)
Chapter 7 Automatic Sending/Receiving function (ASR)
(00001)
Parameter area setting of FUN201(s) for reading out
*1
SR
.
Request to read out SR
Area setting (unit:0, slot:0)
Control bit address is R100
Transmission I/O address is starting from WM10
Transmission data size is 13 words
Setting 1 to control bit for reading SR.
R100
(00002)
S
Reading out SR at R100 = 1
(00003)
FUN201 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
Clear "OK flag for writing to CR"
Set 0 to "request to open contact" (R1).
Enable the circuit for cancellation the request to open.
TD1
(00007)
0.1
10
Timer counting from the request to open.
R4
(00008)
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".
Clear "OK flag for writing CR".
Disable the circuit for cancellation the request to open.
(00010)
Parameter area setting of FUN201(s) for writing CR.
Request to write CR.
Area setting (unit:0, slot:0)
Control bit address is R103.
Transmission I/O address is starting from WM20.
Transmission data size is 10 words.
(00011)
FUN 201 for writing CR.
7-8
Slot No.
0
1
2
EH-ETH
*
-
-
*2
bit"

Advertisement

Table of Contents
loading

Table of Contents