Chapter 11: SEND/RECEIVE function

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

00000 F-44

 

 

 

 

 

 

 

F-32

14000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SET

 

 

Switch

 

 

 

 

 

 

 

 

 

 

14000

 

 

 

 

 

 

 

 

 

 

 

 

 

F-203

2-0-03

0

001000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPCH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

F

-205

010

09000

 

 

 

 

 

 

 

 

 

SEND

 

Set the sending relay 14000.

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

File address 001000

Transfers 8 bytes of the range 09000 to 09007.

14000

07354

07355

07356

07357

TMR

0010

Detects non-execution at power ON.

 

 

 

 

 

 

 

 

 

 

000

(Flags do not change for one second.)

 

Non-carry Error

Carry

Zero

 

 

 

 

 

T000 F-44

 

 

 

 

 

F-33

14000

 

 

 

 

 

 

Resets 14000 when the execution

 

 

 

 

 

RST

 

 

 

 

 

 

 

 

 

 

 

 

completes.

07355

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Error

 

 

 

 

07356

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Carry

 

 

 

 

Note

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

11

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.

11-7