Hitachi HIDIC EH-150 Applications Manual page 30

Devicenet master module(eh-rmd)/ slave controller(eh-iocd)/ discrete i/o slave unit (rdx16d,rdy16tp,rdy16r)
Hide thumbs Also See for HIDIC EH-150:
Table of Contents

Advertisement

5.6.2
Sample program
This sample program shows a way of resetting from the user program to this module.
So it is not the one to have considered an interlock and so on.
Before use, test sufficiently and use safety after the confirmation.
In this program, it uses the following internal output.
Internal output
Use
The software reset starting flag.
R0
This flag is reset after 15 sec.
WR1000 -
Used as the S parameter area to use in the FUN201 command.
WR1007
WR1008
Set the node status of EH-RMD.
R100 -
Used as the execution flag, the normal end flag, the abnormal end
R102
flag of the FUN201 command.
R103
Uses as the flag which shows that the communication re-start.
R7E3
After RUN
1 Scan ON
R0
DIF0
Software reset
Starting
R0
Software reset
Starting
TD0
R101
15 sec wait
FUN201
normally end
TD0
15 sec wait
Table 5.12 Internal output
WR1003 = HA55A
WR1004 = H100
ADRIO ( WR1005 , R100 )
WR1006 = 0
WR1007 = 0
FUN201 ( WR1000 )
R100 = 1
R103 = 0
WR1008 = WRF0E9 AND HFF
R102
WR1008
EH-RMD
==
status
0
FUN201
abnormally end
R0 = 0
5-7
Chapter 5 Master Module Specifications
Set S parameter for the
FUN201 command.
The FUN201 command execution
Don't put an execution condition.
Set to "1" the starting flag of
FUN201 by the soft reset condition
formation.
TD0
1s 15
15 sec wait
Set the node status of EH-RMD.
The I/O No. changes by the Node No.
R103
When FUN201 finished normally,
judge the communication re-start
by EH-RMD status=0.
communication
re-start
Software reset finished.
Note

Advertisement

Table of Contents
loading

Table of Contents