9 DEDICATED INSTRUCTIONS
9.2 ONDEMAND Instruction
The ONDEAMAND instruction transmission data using the
|
|
|
|
|
|
|
|
|
|
|
|
| Applicable device |
|
|
|
|
|
|
|
|
|
|
| ||||||
Set | Internal device |
|
|
|
|
| MELSECNET/H, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
| MELSECNET/10 | Special module |
|
|
|
|
|
|
|
|
|
|
| |||||||||||||
data | (System, user) |
| File register |
| Index register Zn | Constant | Others | |||||||||||||||||||||||
|
| Direct J | \ |
|
| U | \G |
| ||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
| Bit |
| Word |
|
|
|
|
| Bit |
| Word |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
(S1) | — |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| — |
|
|
|
|
|
|
|
| ||
(S2) | — |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| — |
|
|
|
|
|
|
|
| ||
(D) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| — |
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
| [Instruction |
| [Executing |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
| code] |
| condition] |
|
| Command |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
| ONDEMAND |
|
|
|
|
|
|
|
|
|
|
|
| G.ONDEMAND | Un |
| (S1) | (S2) |
| (D) |
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||
| ONDEMAND |
|
|
|
|
|
| Command |
|
| GP.ONDEMAND |
| Un |
|
| (S1) |
| (S2) |
|
| (D) |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set data
Set data | Description | Set by | Data type | |
Un | Start I/O signal of the module | User | BIN16 bit | |
(00 to FE: Top | ||||
|
|
| ||
(S1) | Head number of the devices in which control data is stored. | User, |
| |
system | Device name | |||
|
| |||
(S2) | Head number of the devices in which transmission data is stored. | User |
| |
(D) | Bit device number to be turned on at completion of execution. | System | Bit |
The file register per local device and program cannot be used as the set data.
Control data
Device | Item | Set data | Setting range | Set by | 3 |
| |||||
| • | Set transmission channel |
|
|
|
(S1) + 0 | Transmission channel | 1: Channel 1 (CH1 side) | 1, 2 | User |
|
2:Channel 2 (CH2 side)
•Result read by an ONDEMAND instruction is stored.
9 |
| (S1) + 1 | Transmission result | 0: | Normal | 1 |
| — | System |
|
|
| Other than 0: Error code |
|
|
| |||
|
|
|
|
|
|
| |||
|
| (S1) + 2 | Transmission data count | • Set the transmission data count. | 2 | 1 or more | User | ||
|
|
|
1 For error codes relating to abnormal completion, see Chapter 10 of the User's Manual (Basic).
2 When setting "Word/byte units designation" by GX
3 The settings are done by either of the following:
•User: Data set by the user before executing the ONDEMAND instructions.
•System: The PLC CPU stores the execution result of the ONDEMAND instructions.
9 - 2 | 9 - 2 |