Chapter 5 Instruction specifications

[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.

TRNS 0 (d, s, t)

Sending/Receiving data byte (N)

1st byte

2nd byte

3rd byte

4th byte

5th

byte

6th byte

7th

byte

8th byte

 

 

N-1thbyte

Nth byte

Sending/Receiving byte (N)

1st byte

2nd byte

3rd byte

4th byte

5th byte

6th byte

7th byte

8th byte

 

 

 

N-2thbyte

N-1thbyte

Nth byte

(ignored)

Reserve area for data sending/receiving

Caution

zBe sure to switch port type at first from dedicated port to general purpose port by FUN 5 command in user program.

zIf 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.

zNo contact nor condition is allowed to use with TRNS 0 command.

zBe sure to set [0] Execution bit high in 2nd scan or later. (Not in 1st scan)

zIf parameter setting is wrong, error code H52 (TRNS/RECV command error) is set in WRF000 in some cases.

zER signal is set on in the following condition.

Communication executed properly.

zER 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.

5-118

Page 168
Image 168
Hitachi NJI-350B manual 118