Chapter 5 Instruction specifications

5-118

[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. [2] Sending/receiving data byte is odd.
Sending/Receiving data byte (N)
1st b
y
te 2nd b
y
te
3rd b
y
te 4th b
y
te
5th b
y
te 6th b
y
te
7th b
y
te 8th b
y
te
N-1th b
y
te Nth b
y
te
Reserve area
for data
sending/receiving
Sending/Receiving byte (N)
1st b
y
te 2nd b
y
te
3rd b
y
te 4th b
y
te
5th b
y
te 6th b
y
te
7th b
y
te 8th b
y
te
Nth b
y
te
(
i
g
nored
)
N-2th b
y
te N-1th b
y
te
Caution
z Be sure to switch port type at first from dedicated port to general purpose port by FUN 5 command in user program.
z 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.
z No contact nor condition is allowed to use with TRNS 0 command.
z Be sure to set [0] Execution bit high in 2nd scan or later. (Not in 1st scan)
z If parameter setting is wrong, error code H52 (TRNS/RECV command error) is set in WRF000 in some cases.
z ER signal is set on in the following condition.
Communication executed properly.
z ER signal is set off in the following condition.
- Initialized bit being set "1" while communication.
- CPU status changed RUNSTOPRUN while communication
- Timeout while communication.
- s, t parameters overwritten and range error while communication.
TRNS 0 (d, s, t)