Register Operation To Refresh Receiving Area - 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 6
R7E3
R7E3
R100
R103
TD100
DIF50
R104
R50
R104
R51 M172 M182 M192 M1A2 M1B2 M1C2
M172 DIF51
R52
R7E3

Register operation to refresh receiving area

WM301 = H01
WM302 = H11
WM303 = H21
WM304 = H31
WM305 = H41
WM306 = H51
WM24 = H3F
WM003 = H2
WM004 = H2F
ADRIO = (WM005, R100)
ADRIO = (WM006, WM10)
WM007 = 13
R100 = 1
R100
FUN201 (WM000)
TD100
R50
WM25 = H3F
R103 = 1
R104 = 0
R50 = 0
R51 = 1
R52
WL0 = H50
WL1 = 0
R300 = 0
FOR 20 ( WL0 )
WL10 = WR200 ( WL1 )
R320 = WL10 <> WM301
R300 = R320 OR R300
WL1 = WL1 + 1
NEXT 20
WM301 = WM301 + 1
R51 = 0
R52 = 0
WM25 = 0
R103 = 1
R104 = 0
WM00B = H3
WM00C = H0
ADRIO = (WM00D, R103)
ADRIO = (WM00E, WM20)
WM00F = 10
FUN201 (WM008)
Chapter 7 Automatic Sending/Receiving function (ASR)
(00001)
Default data of connection 1.
Default data of connection 2.
Default data of connection 3.
Default data of connection 4.
Default data of connection 5.
Default data of connection 6.
Optional receiving enabled for all connections.
(00002)
Parameters setting 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
(00003)
S
Reading out SR at R100 = 1
(00004)
FUN201 for reading out SR
(00005)
1s
4
Timer counting during stop writing to CR.
(00006)
Detection of writing CR completed and timer (4
S
seconds)
(00007)
Optional transmission is enabled for all connections.
Request to write to CR.
Clear "OK flag for writing to CR"
Set 1 to "Transmission completion" contact.
Disables the circuit 6.
Enables the next circuit.
(00008)
Check completion of optional receiving for all connections.
(00009)
Detect rising edge of "Receiving completion" flag and
compare the default data (connection 1). If received
data ! is the expected data, R300 is 1. After comparing
completed, the expected value (WM300) is added +1.
(00010)
The circuit 8 disabled.
The circuit 10 disabled.
Optional receiving disabled for all connections.
Request to write to CR.
Clear "OK flag for writing to CR".
(00011)
Parameters 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.
(00012)
FUN 201 for writing CR.
7-18
Slot No.
0
1
2
EH-ETH
*
-
-

Advertisement

Table of Contents
loading

Table of Contents