Hitachi EH-150 Series Applications Manual page 186

Table of Contents

Advertisement

Appendix
Task code
HA2
 Function
Forcibly sets and resets the designated data in N continuous points (words) of data area, starting with the
specified I/O.
* This task code can also be executed when the CPU is not occupied.
 Execution condition
 Request format
H A 2
(a)
(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 HC8 (1 to 200)
Number of words H01 to H64 (1 to 100)
(d)
Set / reset data
(Bit data)
Number of points / 8
bit7
(Word data)
H
1st word
 Response format
(a)
H A 2
 Example
Write "1" to M50 - M54.
Request
Request (ASCII)
Response
Forced set/reset with I/O number designation
(Series N points)
CPU Status
Occupation
READ occupation
WRITE occupation
Not occupied
(b)
Binary image (H00 to HFF)
bit0
Number of words
L
(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.
: STX 2 FFFF0000 A2 04 000050 05 F8 E9 CR
: 02 32 4646464630303030 4132 3034 303030303530 3035 4638 4539 0D
: STX FFFF0000 00 A2 SUM C
STOP
RUN
(c)
(d)
Binary image (H0000 to HFFFF)
Nth word
A - 22
Classification
I/O Control
HALT
ERROR
* When the number of set/reset points
is less than 8 points, the open bits
are set to "0" (H00 to HFF).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ehv seriesHx series

Table of Contents