Command Processing Summary And Usage - Hitachi EH-150 Applications Manual

Ethernet module 2 eh-eth2
Hide thumbs Also See for EH-150:
Table of Contents

Advertisement

8.3.1

Command processing summary and usage

In this section, we explain the processing summary and usage of these commands with FUN201. (similar
about SCRW)
[Operation condition]
FUN201 command is in function box without execute condition and in normal scan.
-
-
When you write a data to Control Register in EH-ETH2, set control type "H0003".
When you read a data from Status Register in EH-ETH2, set control type "H0001(handshake valid)"
-
or "H0002(handshake invalid)".
[Basic operation 1]
To write Control Register (Control type "H0003")
R7E3
Wait execute
instruction
R7E4
Command execute
R7E3
R7E4
R7E3
Wait execute
instruction
R7E4
Command execute
st
1
scan
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
R100 = 1
FUN201 ( WR000 )
:
:
:
END
nd
2
scan
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
R100 = 1
FUN201 ( WR000 )
:
:
:
END
rd
3
scan
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
R100 = 1
FUN201 ( WR000 )
:
:
:
END
8-15
Chapter 8 Register Structure
(00001)
(00002)
(00003)
FUN201 command
- Keep Execute flag R100=1
- Clear normal complete flag and abnormal
complete flag
(0000n)
(00001)
(00002)
FUN201 is in execution. so this instruction is
not executed.
Namely, data is not written to Control Register
from 2nd scan to 3rd scan.
(00003)
FUN201 command
- execute flag clear 0
- set normal complete flag or abnormal
complete flag depend on the result of
execution
(0000n)
(00001)
(00002)
(00003)
FUN201 command
- Keep Execute flag R100=1
- Clear normal complete flag and abnormal
complete flag
(0000n)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents