Hitachi NJI-350B User Manual

Page 171

Advertising
background image

Chapter 5 Instruction specifications

5-121

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

Condition

Steps

RECV 0 (d, s, t)

-

5

80

2,064

Bit

Word

Double word

Usable I/O

X

Y

R,
L,
M

TD, SS,
CU, CT

WX WY

WR,
WM

TC DX DY

DR,
DM

Others

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

[0] Return code

s

s+1

s+4

s+6

s+7

s+9

s+A

s+B

s+C

s+D

s+E

[1] System area
(Do not use this area.)

[2] Timeout

[3] Address of sending area

[4] Reserve area for data sending (word)

[5] Address of receiving area

[6] Reserve area for data receiving (word)

[7] Receiving data length (byte)

[8] Start code

[9] End code

[10] Communication speed

[11] Communication format

: Access forbidden

: User setting area

s+3

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

[2]

Timeout :

Timeout setting from command executed
to completed.
=0 : Timeout disabled
≠0 : Timeout enabled [×10ms]
Max. HFFFF

R

E

C

V

0

(

d, s, t)

!

If this area is written, CPU might stop operation due to

system error.

C

ons

ta

nt

Advertising