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 |
| Module No. Switch : 2 | |
| |||
|
| Channel used | : 0 |
00000 |
|
|
|
|
|
| |||||
| 14000 |
|
| ||||||||
|
|
| ↑ |
|
|
|
|
| |||
|
|
|
|
| SET |
|
| ||||
Switch |
|
|
|
| |||||||
|
|
|
|
|
| ||||||
14000 |
|
|
|
|
|
|
|
|
| ||
|
|
|
| 0 | 001000 | ||||||
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
| OPCH | ||||
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| F | 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 |
|
|
|
|
| |||
|
|
|
|
| 000 | (Flags do not change for one second.) | |
| Carry | Zero |
| ||||
|
|
|
|
T000 |
|
|
|
| ||||
| 14000 |
| ||||||
|
|
| ↑ |
|
| Resets 14000 when the execution | ||
|
|
|
|
| RST | |||
|
|
|
|
| ||||
|
|
|
|
|
|
| completes. | |
07355 |
|
|
|
|
| |||
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Error |
|
|
|
| ||||
07356 |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Carry |
|
|
|
|
Note
- The entry condition of | 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