1 operation of send/receive instruction, 1] send, 1 operation of send/receive instruction -2 – Sharp Z-336J User Manual

Page 132: 1] send -2

Advertising
background image

11-2

Chapter 11: SEND/RECEIVE function

11

F-203

OPCH

UN-
CH-ST fileN

F-204

SEND

n

S

D

Flag status during and after the operation

Zero

07357

Carry

07356

Error

07355

Non-

carry

07354

Description

No response

from the module

(board)

0

0

1

0

Set value on the UN and module No. switch set

value of the communication module are different.

Communi-
cation jam

0

0

0

1

This condition may instantaneously occur while
other send instruction is being executed.

However, as soon as the condition becomes clear

for the execution of an instruction, the status will
turn to "Communicating."

Communi-

cating

1

0

0

1

The communicating is being run. Once the
communication completes, the status will change
to either "normal end" or "abnormal end."

Normal end

0

1

0

0

When the send instruction has successfully
completed.

Abnormal end

(timeout)

0

1

1

0

When there is no response from target node.

Abnormal end

(error)

1

1

1

0

The target node cannot be written to.

Flag

Send

Response

S ->

D ->

n

Target node

file N

This node

file 0

CH number
corresponding to
the UN number

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

11-1 Operation of SEND/RECEIVE instruction

[1] SEND

This function operates by the combination of F-203 (OPCH) and F-204 (SEND).

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

UN

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

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)

D

: 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)

S

: Data area top register of source station data

Advertising
This manual is related to the following products: