Chapter 5 Instruction specifications

Item number

Transfer command-2

 

 

 

 

Name

 

 

 

 

General purpose port communication command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ladder format

 

 

 

 

 

 

Condition code

 

Processing time (s)

 

Remark

 

 

 

 

 

R7F4

 

R7F3

 

R7F2

 

R7F1

R7F0

Average

Maximum

 

 

 

RECV 0 (d, s, t)

 

 

DER

 

ERR

 

 

SD

 

V

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

 

 

 

z

 

z

 

 

z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command format

 

 

 

 

 

 

Number of steps

 

80

2,064

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Condition

 

 

 

 

Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RECV 0 (d, s, t)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

 

 

 

 

 

 

 

Word

 

Double word

Constant

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Usable I/O

 

 

 

 

R,

 

TD,

SS,

 

 

 

 

 

WR,

 

 

 

 

DR,

 

Others

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

 

Y

L,

 

CU, CT

 

WX

WY

WM

 

TC

DX

DY

DM

 

 

 

 

 

 

 

 

 

M

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

d

Dummy

 

 

 

 

 

 

 

 

 

 

{

 

 

 

 

 

 

 

 

 

 

 

 

s

Parameter area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

{

 

 

 

 

 

 

s to s+14

t

Communication control

 

 

 

{

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

t to t+11

Function

(1)This is a command to send data via general purpose port. It is also possible to receive data after data sending.

(2)Parameter "d" is dummy. Assign WX0. (Actual data in X00 to X15 is not influenced.)

(3)Parameter "s" is starting address of parameter table for communication setting.

(4)Parameter "t" is starting address of bit table for communication control.

(5)"s" parameter

s, t)

s

[0]

Return code

 

s+1

[1]

System area

 

 

 

(Do not use this area.)

 

 

 

 

 

 

 

 

s+3

[2]

Timeout

 

 

 

 

s+4

[3]

Address of sending area

 

 

 

 

 

 

s+6

[4]

Reserve area for data sending (word)

 

 

 

 

 

s+7

[5]

Address of receiving area

 

 

 

 

 

 

[0]Return code : Result of RECV 0 command is set in lower 8 bits.

Completed 0

Error

≠ 0

[1]System area : This area is used by system (CPU) while RECV 0 operation. It is not allowed for users to use this area.

!If this area is written, CPU might stop operation due to system error.

RECV 0 (d,

s+9

[6]

Reserve area for data receiving (word)

 

 

s+A

[7]

Receiving data length (byte)

[2] Timeout :

Timeout setting from command executed

 

 

 

[8]

Start code

s+B

 

to completed.

s+C

[9]

End code

 

=0 : Timeout disabled

s+D

[10] Communication speed

 

≠0 : Timeout enabled [⋅10ms]

s+E

[11] Communication format

 

Max. HFFFF

 

 

: Access forbidden

: User setting area

5-121

Page 171
Image 171
Hitachi NJI-350B manual Transfer command-2, Recv 0 d, s, t, 064