Chapter 5 Instruction specifications

Item number

Transfer command-1

 

 

 

 

Name

 

 

 

 

General purpose port communication command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ladder format

 

 

 

 

 

 

Condition code

 

Processing time (s)

 

Remark

 

 

 

 

 

R7F4

 

R7F3

 

R7F2

 

R7F1

R7F0

Average

Maximum

 

 

 

TRNS 0 (d, s, t)

 

 

DER

 

ERR

 

 

SD

 

V

 

 

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

 

 

 

z

 

z

 

 

z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command format

 

 

 

 

 

 

Number of steps

 

80

2,078

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Condition

 

 

 

 

Steps

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TRNS 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 WY10. (Actual data in Y100 to Y115 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 TRNS 0 command is set in

lower 8 bits.

Completed 0

Error

≠ 0

[1]System area : This area is used by system (CPU) while TRNS 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.

TRNS 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-115

Page 165
Image 165
Hitachi NJI-350B manual Usable I/O Others