Sharp Z-336J User Manual

Page 137

Advertising
background image

11-7

Chapter 11: SEND/RECEIVE function

11

Sample of program (for the JW30H)

When transferring 8 bytes of data from source station register 1000 to the register 09000 of the
target station number 3 :

Local node JW-20FL

Module No. Switch : 2
Channel used

: 0

Note

- The entry condition of F-203/205 instruction needs to be kept ON until the execution of the instruc-

tion completes (or until any error occurs or the carry flags turns ON). If the entry condition turns
OFF while the instruction is being run, the instruction will end in an incomplete condition. Once this
condition occurs, a "communication jam" occurs when an instruction execution is attempted the
next time, and the instruction will not run properly. To restore the condition, power OFF the PC,
and turn it ON again.

- If the entry condition turns OFF, due to an instantaneous power failure, turn the entry condition to

"latched relay" as a remedy. If, however, any power loss occurs while an instruction is being run
using "latched relay," turning the power ON again will cause F-203/205 instructions process being
run to disappear, and the entry condition will stay ON. Therefore, the start of the entry may not be
detected. Since, in this case, all flags will be turned OFF, detect the continuation of the OFF
condition of all flags using the timer, and then reset the entry condition before running the next
instruction.

TMR

000

0010

F-32

SET

14000

Switch

F-44

F-203

OPCH

2-0-03

0

F-205

SEND

010 09000

Set the sending relay 14000.

00000

F-33

RST

14000

F-44

T000

14000

001000

14000 07354

07355 07356

07357

Non-carry Error

Carry

Zero

07355

Error

07356

Carry

UN 2, CH0, target node number 3,
File number 0
File address 001000

Transfers 8 bytes of the range
09000 to 09007.

Detects non-execution at power ON.
(Flags do not change for one second.)

Resets 14000 when the execution
completes.

Advertising
This manual is related to the following products: