Read From (WORD)
Instruction Parameters
Supported PLC Series
| XPnA/1R | XPnB | XPnE | XPnF | CP3A/B/P/U CP4A~D/U | CPnE | CPnF | BP | PLC-S |
|---|---|---|---|---|---|---|---|---|
| ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| n1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| n2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| D | ✓ | - | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ | - | ✓ | ✓ | ✓ | ✓ |
| n3 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | - |
| Carry | F11.2 | - |
Number of Steps
| Steps |
|---|
| 5 |
Operands
| Operand | Description |
|---|---|
| n1 | The first operand. Entries are Hexadecimal WORD data registers or constants. This is the base and slot number of the expansion module to read from. This number depends on the amount of expansion modules the chassis contains. |
| n2 | The second operand. Entries are WORD data registers or constants. This is the address of buffer memory where the data is read from. The value range depends on the buffer memory to read from. |
| D | The third operand. Entries are only WORD data registers. This is the storage location, on the CPU module, for the data being read. |
| n3 | The fourth operand. Entries are WORD data registers or constants. This is the amount of WORD data to read. The value range is 0 ~ 255. |
Assignment Example
The following example shows how to assign values to n1 and Base/Slot.
n1
| Base Number | Slot Number | |
|---|---|---|
| H | 0A | 0B |
| Hexadecimal | 2 Digits in Hexadecimal | 2 Digits in Hexadecimal |
The base number and slot number depend on the chassis type.
Since the CM3 chassis can only go up to 11 or 15 expansion modules, the base number is always 00.
Base/Slot (CM1)
| Base Number | Slot | Example |
|---|---|---|
| Local Base | Slot Number 5 | H0005 or 5 |
| 1st Expansion | Slot Number 3 | H0103 |
| 10th Expansion | Slot Number 7 | H0A07 |
| 14th Expansion | Slot Number 12 | H0E0C |
| 16th Expansion | Slot Number 10 | H100A |
Module/Slot (CM3)
| Module | Slot | Example |
|---|---|---|
| CPU | Slot 0 | H0000 or 0 |
| 1st Expansion | Slot 1 | H0001 or 1 |
| 5th Expansion | Slot 5 | H0005 or 5 |
| 10th Expansion | Slot 10 | H000A |
| 15th Expansion | Slot 15 | H000F |
Notice
The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type.
F11.0 turns ON when access to the expansion module fails.
F11.0 turns ON when the base and slot number assigned to n1 is not an expansion module.
F11.0 turns ON when the number of data in n3 exceeds the range of the data register assigned to D.
It is recommended that the FROM instruction be used with a pulse contact as an execution condition, or use the FROMP instruction.