Hitachi HIDIC MICRO-EH Applications Manual page 168

Table of Contents

Advertisement

[9] Timeout :
This bit is set "1" when timeout detected.
[A] Input buffer full :
This bit is set "1" when input buffer full
[B] Conflict error :
This bit is set "1" when TRNS 0 or RECV 0 commands are duplicated.
Bit [6] to [B] is reset at initializing and TRNS 0 executed.
(7) Sending/receiving data format
Set sending data as follows, and Receiving data is set as follows.
[1] Sending/receiving data byte is even.
Sending/Receiving data byte (N)
st
1
byte
rd
3
byte
5
th
byte
7
th
byte
...
th
N-1
byte
Caution
Be sure to switch port type at first from dedicated port to general purpose port by FUN 5 command in user program.
If CPU receives data by RECV command after data sending, received data could be failed depending on timing. In such a
case, TRNS command with "receive enabled" is recommended.
No contact nor condition is allowed to use with TRNS 0 command.
Be sure to set [0] Execution bit high in 2
If parameter setting is wrong, error code H52 (TRNS/RECV command error) is set in WRF000 in some cases.
ER signal is set on in the following condition.
Communication executed properly.
ER signal is set off in the following condition.
-
Initialized bit being set "1" while communication.
-
CPU status changed RUN→STOP→RUN while communication
-
Timeout while communication.
-
s, t parameters overwritten and range error while communication.
[2] Sending/receiving data byte is odd.
nd
2
byte
th
4
byte
6
th
byte
8
th
byte
th
N
byte
nd
scan or later. (Not in 1
5-118
Chapter 5 Instruction specifications
Sending/Receiving byte (N)
st
nd
1
byte
2
byte
3
rd
byte
4
th
byte
th
th
5
byte
6
byte
7
th
byte
8
th
byte
...
th
th
N-2
byte
N-1
byte
N
th
byte
(ignored)
st
scan)
Reserve area
for data
sending/receiving

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents