DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
-206
2. Adding one to the value stored in D100, after the execution of the DTM instruciton is
complete.
K32: Read the first written register to the D device (target value) and move the succeeding
registers forward, for example, move the second register to where the first written register
was and so on. (first in first out)
Read and store the data stored from S+1 to the D device and move the value in S+2
forward to S+1. Put k0 to the last and then diminish the index value (S+0) by 1.
Note:
When the value in S+0 is less than 2, it means there is no data to be read/moved and no
action will be taken. When the value in S+0 is bigger than n+1, it means the data is full
and no action will be taken. “No action will be taken” means no error will be displayed nor
the index value (S+0) will have any change.
Example:
1. If D100=6.
2. If M0 switches OFFON, execute the instruction DTM will copy the values stored in
D101 to D0.
3. As the image shown below, execute the instruciton DTM to copy the value K12 stored in
D101 to D0 and put K0 to D105.