TO
TO, TOP, DTO, DTOP
TO instruction reads a value of device address and saves its value to the buffer memory of module.
DTO and DTOP are Double word.
| |
n1 | Slot number of module to be written |
n2 | Buffer memory to be written |
S | Source value to write |
n3 | Number of words to be written |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
TO TOP DTO DTOP | n1 | o | o | o | o | o | o | o | o | - | o | o | o | o | 5 | o | - | - |
n2 | o | o | o | o | o | o | o | o | - | o | o | o | o | |||||
S | o | o | o | o | o | o | o | o | - | o | o | o | o | |||||
n3 | o | o | o | o | o | o | o | o | - | o | o | o | o |
The TO instruction copies the source value and saves it to the buffer memory of module.
Example)
If M00 is ON, the TOP instruction copies the value (1000) of D0 and saves 1000 to buffer memory 13 of slot number 1 module (H0001).
In this example, CM3-SP04EAA module is installed at the slot number 1 and the buffer memory 13 is High alarm value of Channel 1.
*Please refer to buffer memory of each module for more details.
If you check memory monitor, you can find out D0 has 1000 value.
Slot number and address assignment for CM1 and CM3 series.
Slot number of CM1 series
Slot number of CM3 Series