EasyManua.ls Logo

Hitachi EH-150 Series - Page 181

Hitachi EH-150 Series
194 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix
A - 17
Task code
H40
Monitoring with I/O number designation
(Series N points)
Classification
I/O Control
Function
Reads N continuous points (words) of monitor data, starting with the specified I/O number.
* This task code can also be executed when the CPU is not occupied. However, the response task code will
be “H02” (local station is not occupying the CPU).
* The I/O data of EH-150 outside the range returns all off (0).
Execution condition
CPU Status
Occupation
STOP RUN HALT
ERROR
READ occupation
WRITE occupation
Not occupied
Request format
H 4 0
(a)
(b)
(c)
(a) I/O code (refer to the I/O code table)
(b) I/O number (refer to I/O number
decimal/hexadecimal conversion chart)
(c) Number of bits H01 to HF0 (1 to 240)
Number of words H01 to H78 (1 to 120)
Response format
(a)
H 4 0
(b)
(a) Response task code (H00 when executed normally)
For task codes other than the normal task codes, refer to
the “response list by task code” at the end of this chapter.
(b) Monitor data
(Bit data)
1st point
2nd point
3rd point
8th point
Binary image (H00 to HFF)
bit7
bit0
Number of points / 8
* When the number of monitor points is
less than 8 points, the open bits are set
to 0 (H00 to HFF).
(Word data)
Binary image (H0000 to HFFFF)
Number of words
H
L
1st word
Nth word
Example
Read 16 words from WR20. (WR20=H1234, WR21 - 2F=H0000)
Request : STX 2 FFFF0000 40 0A 000020 10 62 CR
Request (ASCII) : 02 32 4646464630303030 3430 3041 30303030303230 3130 3632 0D
Response : STX FFFF0000 00 40 1234 0000 0000 0000 0000 ……0000 SUM CR

Table of Contents

Related product manuals