Chapter 11: SEND/RECEIVE function
Chapter 11: SEND/RECEIVE function
The SEND/RECEIVE functions are exclusive SHARP functions. These can only be used between PCs equipped with
Note: The SEND/RECEIVE functions can be used only when a JW30H, JW50H/70H/100H, or a J- board
The SEND/RECEIVE functions allow the exchange of data between certain nodes within a specified maximum time. The SEND function is used to declare a target node and write data from that node. The RECEIVE function is used to declare which node will return data to the node issuing the call and then it receives the data.
[An example of the SEND function]
|
|
|
|
| Request to write |
|
|
|
|
|
|
| Response |
|
|
| |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Node |
|
|
|
|
|
|
|
| Node | Node | Node | |||||
1 | 2 |
| 3 | 4 |
| |||
[An example of the RECEIVE function] |
|
|
| |||||
|
|
|
|
| Request to read |
|
|
|
|
|
|
| Response |
|
|
| |
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Node |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| Node | Node | Node | |||||
1 | 2 |
| 3 | 4 |
|
- Dedicated instructions are used to execute the SEND/RECEIVE functions. |
| ||||
|
|
|
|
| |
| Dedicated | Detail |
|
| |
| instruction |
|
| ||
|
|
|
| ||
|
|
|
|
| 11 |
| (OPCH) | Declare a station to communicate with (single layer) |
| ||
| (SEND) | Write data to the target station |
|
| |
| |||||
|
|
|
|
|
|
| (RCV) | Read data from the target station |
|
| |
|
|
|
|
|
|
Enter the module No. (port No.)/channel of the host module (board) by using the
- When using the SEND/RECEIVE functions, the data route between the control module (CPU board) and
[Ex.] | Control module |
|
| ||||||||
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| CH0 |
|
|
|
|
|
|
|
| |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| CH1 |
|
|
|
|
|
|
|
| |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| CH2 |
|
|
|
|
|
|
|
| |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| CH3 |
|
|
|
|
|
|
|
| |
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Node 3 Node 4 Node 5 | Node 6 |