Download Print this page

Hitachi Hidic EH-150 Applications Manual page 87

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

Advertisement

Preliminary Rev.03
8.3
How to access registers
The notation of the FUN201 command specification and FUN200 usage for this module are described here.
Format
FUN 201 ( s )
Parameter
Starting I/O No. of the S parameter area
Function
These are the commands to access registers.
- This is the command to read or write Status and Control register between CPU module and this module.
- The control type supported by this command is only "With hand shaking" for writing. Don't specify and execute "Without hand
shaking" for writing.
- When status register is read, select the control type "With hand shaking" or "Without hand shaking". ("Without hand shaking" is
recommended.)
The description of S parameter area
s + 0 (1) Error code
s + 1 (2) System area
s + 2
(Not be allowed to use by user)
s + 3 (3) Control type
s + 4 (4) The start of the area
s + 5 (5) Control bit I/O No. of starting sending or
receiving
s + 6 (6) Starting I/O No. of Destination (or Source)
s + 7 (7) Size
The description of control bit table for writing or reading.
+ 0 (8) Starting execution flag
+ 1 (9) The completion flag without error
+ 2 (10) The completion flag with error
The description of the frame
The area should be set by user
The area inhibited to set by user
(8) Starting execution flag
When to start sending or receiving with FUN201 command,
please set "1" by user program.
This bit will be reset by system execution when the sending or
receiving is completed.
(9) The completion flag without error
This bit will be set to "1" when the sending or receiving by
FUN201 command is completed without error. This will be
reset by system when FUN201 start to execution.
(10) The completion flag with error
This bit will be set to "1" when the sending or receiving by
FUN200 command is completed with error. This will be reset
by system when FUN201 start to execution.
The contents of this manual might be changed without notice.
FUN201 command
(1) Error code
The execution result of FUN201 command is set.
Completed without error -> = H0000
Completed with error -> != H0000
(2) System area
This area is used by system execution when FUN200
command is executed. Don't use this area by user.
(3) Control type:
H0001: The request to get value from Status register ("With
hand shaking" is supported.)
H0002: The request to get value from Status register
("Without hand shaking" is supported.)
H0003:The request to put value to Control register.
H0004 to HFFFF: Don't set these values.
(4) The start of the area :
b15
Unit No.
Unit No.: Always "0" is required
Slot No.: One of 0 to 2 is required
The position of word: Always "0" is required
[When control type is selected H0001 or H0003]
Always "0" is required
[When control type is selected H0002]
Always "H2F" is required
(5) Control bit I/O No. of starting sending or receiving
The actual address value of R, L or M which has the starting
I/O No. of the sending or receiving control bit area should be
set using ADRIO command.
(6) Starting I/O No. of Destination (or Source)
The actual address value of WR, WL or WM which has the
starting I/O No. of the source or destination area should be
set using ADRIO command.
(7) Size
The size of using area for sending or receiving should be set.
For this module, maximum size is 54 words.
8-18
Chapter 8 Register Structure
b11
b7
Slot No.
The position of word
b0

Advertisement

loading

This manual is also suitable for:

Eh-eth