Chapter 11: SEND/RECEIVE function

[2] RECEIVE

This function operates by the combination of F-203 (OPCH) and F-205 (RCV).

(1) When the module is used (host PC: JW30H, J-board (Z-500 series))

F-203

UN-

fileN S

OPCH

CH-ST

 

 

 

 

F-204

n

D

 

SEND

 

 

 

 

UN

: Module No. switch set value (0 to 6) of the communication

 

module

CH

: Channel number within the specified module (board) (0 to 3).

 

In the PC program, the same port number can be called 4

 

times, once for each channel (CH0, CH1, CH2, and CH3).

ST

: Target node number (01 to FE(H))

fileN

: Data area in the target node PC (file number)

S

: Top file address of the data area in the target node PC

n: Number of data bytes transmitted (000 to 377(8), 256 bytes at 000)

D : Data area top register of source station data

- Setting range of D

0000 to 1577 2000 to 7577 b0000 to b1777 b2000 to b3777 09000 to 99777 E0000 to E7777

File1 000000 to 037777

@0000 to @1574 @2000 to @7574 @b0000 to @b1774 @b2000 to @b3774 @09000 to @99774 @E0000 to @E7774

File1 @000000 to @037774

 

 

This node

 

 

 

 

 

 

 

 

 

Setting target node

 

 

 

 

Target node

 

 

 

 

 

CH number

 

 

 

 

 

 

 

 

 

file 0

 

file N

 

 

corresponding to

 

 

 

 

 

 

 

 

 

 

 

D

 

 

 

the UN number

S

 

 

 

 

 

 

 

 

 

 

 

Send

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n

 

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Flag

 

11

 

 

 

 

 

 

 

 

 

 

Flag status during and after the operation

 

 

Zero

Carry

Error

Non-

 

 

carry

Description

 

07357

07356

07355

 

07354

 

 

 

 

 

 

No response

 

 

 

 

Set value on the UN and module No. switch set

from the module

0

0

1

0

value of the communication module are different.

(board)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This condition may instantaneously occur while

Communi-

 

 

 

 

other receive instruction is being executed.

0

0

0

1

However, as soon as the condition becomes clear

cation jam

 

 

 

 

for the execution of an instruction, the status will

 

 

 

 

 

 

 

 

 

 

turn to "Communicating."

 

 

 

 

 

 

Communi-

 

 

 

 

The communicating is being run. Once the

1

0

0

1

communication completes, the status will change

cating

 

 

 

 

to either "normal end" or "abnormal end."

 

 

 

 

 

 

 

 

 

 

 

Normal end

0

1

0

0

When the receive instruction has successfully

completed.

 

 

 

 

 

 

 

 

 

 

 

Abnormal end

0

1

1

0

When there is no response from target node.

(timeout)

 

 

 

 

 

 

 

 

 

 

 

11-5