Chapter 5 Instruction specifications

(6)"t" parameter

t+B

t

 

[B]

[A]

[9]

[8]

[7]

[6]

[5]

[4]

[3]

[2]

[1]

[0]

: Set by user

 

 

 

 

 

 

 

 

 

 

 

 

 

[0]Execution bit:

Set "1" by user program to send data. This bit is reset after communication completed.

[1]Communication completed :

This bit is set "1" when communication completed without error, and reset at communication starting.

[2]Communication failed :

This bit is set "1" when communication fails, and reset at communication starting.

[3]Initialize :

Set "1" by user program to initialize RECV 0 command. If this bit is on while communication, the communication is forced to be stopped.

[4] Initialize completed :

This bit is set "1" when initializing completed without error. Initialize bit [3] is reset at this timing.

[5] Send enabled :

Set "1" by user program if CPU needs to send data after data receiving. This bit is reset after communication completed.

[6] Parity error flag :

This bit is set "1" when parity error detected.

[7] Framing error :

This bit is set "1" when framing error detected.

[8] Overrun error :

This bit is set "1" when overrun error detected.

[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 RECV 0 executed.

(7) Sending/receiving data format (See TRNS 0 command)

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, sent data could be failed depending on timing. In such a case, RECV command with "send enabled" is recommended.

zNo contact nor condition is allowed to use with RECV 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.

RECV 0 (d, s, t)

5-123

Page 173
Image 173
Hitachi NJI-350B manual 123