Fun201Command - Hitachi HIDIC EH-150 Applications Manual

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

Advertisement

8.3.1

FUN201command

[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-ETH, set control type "H0003".
-
When you read a data from status register in EH-ETH, 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-14
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)

Advertisement

Table of Contents
loading

Table of Contents