Download Print this page

Hitachi Hidic EH-150 Applications Manual page 64

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

Advertisement

Preliminary Rev.03
Sample program
R7E3
R7E3
R100
R103
R104
TD0
R350
R104
R1
M171 M181 M191 M1A1 M1B1 M1C1
R2
R7E3
- Description in this manual might be modified without notice.
Cyclic sending with optional mode
WL2 = H01
WL3 = H11
WL4 = H21
WL5 = H31
WL6 = H41
WL7 = H51
WM22 = H3F
WM003 = H2
WM004 = H2F
ADRIO = (WM005, R100)
ADRIO = (WM006, WM10)
WM007 = 13
R100 = 1
R100
FUN201 (WM000)
TD0
WL0 = H50
WL1 = 0
FOR 1 ( WL0 )
WR0
( WL1 ) = WL2
WR50 ( WL1 ) = WL3
WRA0 ( WL1 ) = WL4
WR100 ( WL1 ) = WL5
WR150 ( WL1 ) = WL6
WR1A0
( WL1 ) =
WL7
WL1 = WL1 + 1
NEXT 1
WL2 = WL2 + 1
WL3 = WL3 + 1
WL4 = WL4 + 1
WL5 = WL5 + 1
WL6 = WL6 + 1
WL7 = WL7 + 1
WM23 = H3F
R103 = 1
R104 = 0
R1 = 1
R350 = 0
R1 = 0
R2 = 0
WM23 = 0
R103 = 1
R104 = 0
WM00B = H3
WM00C = H0
ADRIO = (WM00D, R103)
ADRIO = (WM00E, WM20)
WM00F = 10
FUN201 (WM008)
Chapter 7 Automatic data transmission
(00001)
Transmission area for connection 1 is H01.
Transmission area for connection 2 is H11.
Transmission area for connection 3 is H21.
Transmission area for connection 4 is H31.
Transmission area for connection 5 is H41.
Transmission area for connection 6 is H51.
Optional transmission is 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
8
Timer counting during stop writing to CR.
(00006)
When writing CR is completed and timer reaches a
setting value, transmission area is initialized.
Transmission area data is increased 1 every refresh
time for the optional transmission.
(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.
R2
(00008)
Check if transmission is completed for all connections.
(00009)
Optional transmission is diabled for all connections.
Request to write to CR.
Clear "OK flag for writing to CR".
(00010)
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.
(00011)
FUN 201 for writing CR.
7-17

Advertisement

loading

This manual is also suitable for:

Eh-eth