Chapter 5 Instruction specifications

*1 Received data is defined by either of following 4 ways depending on setting in [7] s+A to [9] s+C.

(a)

Start code and data size*2

 

 

Data length

 

s+A : Data length (Byte)

 

 

 

 

 

 

 

 

 

 

s+B : H80†† (††=Start code)

 

 

 

 

 

Start code

 

s+C : H0000

(b)

Start and end code *2

 

 

 

 

s+A : H0000

s+B : H80†† (††=Start code)

s+C : H80†† (††=End code)

(c)End code s+A : H0000 s+B : H0000

s+C : H80†† (††=End code)

(d)Data length

s+A : Data length (Byte) s+BH0000 s+CH0000

 

 

 

 

 

Start code

End code

 

 

 

 

 

 

 

 

 

 

End code

Data length

*2 In case of start code used, CPU can fail to receive due to buffer size full if data with wrong start code is sent.

(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 TRNS 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] Receive enabled :

Set "1" by user program if CPU needs to receive data after data sending. 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.

TRNS 0 (d, s, t)

5-117

Page 167
Image 167
Hitachi NJI-350B manual +A Data length Byte +B H80 †† ††=Start code, +C H0000