Download Print this page

Hitachi Hidic EH-150 Applications Manual page 56

Ethernet module
Hide thumbs Also See for Hidic EH-150:

Advertisement

Preliminary Rev.03
Sample program
R7E3
R100
R11
M180
R12
R12
R104
R13
TD12 M180
R13
M180
M219 R104
R14
R7E3
Description in this manual might be modified without notice.
In case EH-ETH requests to close connection to other station.
WM003 = H2
WM004 = H2F
ADRIO = (WM005, R100)
ADRIO = (WM006, WM10)
WM007 = 13
R100 = 1
FUN201 (WM000)
R11 = 0
M219 = 1
R103 = 1
R104 = 0
R11 = 0
R13 = 1
M219 = 0
R103 = 1
R104 = 0
R13 = 0
WM00B = H3
WM00C = H0
ADRIO = (WM00D, R103)
ADRIO = (WM00E, WM20)
WM00F = 10
FUN201 (WM008)
Chapter 7 Automatic data transmission
(00001)
Setting parameter of FUN201(s) for reading out 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
R12
(00004)
Request to close connection 2 by R11 = 1.
Check the status of connection 2 (M171)
(00005)
Cancellation the request to close if the connection 2 is
closed (M180=0).
(00006)
Set 1 to "Request to close bit" for connection 2
Set 1 to "request to write CR bit"
Clear "OK flag for writing CR"
Set 0 to "request to open contact" (R11).
Enable the circuit for cancellation the request to close.
TD12
(00007)
0.1
10
Timer counting from the request to close.
R14
(00008)
Set 1 to R14 if the connection 2 is not closed after 1
second.
(00009)
Clear "request to close bit" for connection 2.
Set 1 to "request to write CR bit".
Clear "OK flag for writing CR"
Disable the circuit for cancellation the request to close.
(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-9

Advertisement

loading

This manual is also suitable for:

Eh-eth