3. Instruction Set
Note1: when the target index value (D+1) is less than 0, change D+1 to 0 and the actions of
data copy and accumulation begin. When the target index value (D+1) is bigger than n-1,
change D+1 to n; the action of data copy will not begin.
Note 2: M1000~M1999 cannot be used as M devices.
Example:
1. Set D0=K50 and D100=K100, and execute the instruction DTM will copy the values stored
in M50 to M100~107. After the execution of DTM is complete, add one to the value stored in
D101.
2. Execute the instruciton DTM for 8 times to have the results as shown below:
K35: Read the first written BIT data to the BIT device (target value) and move the succeeding
BIT data forward, for example, move the second BIT data to where the first written BIT data was
and so on. (first in first out)
S: the source start number of the M device
D: the target start number of the M device
Read and store the state stored from M[S+0]+0 to the M[D] (target value) and move the state of
the succeeding forward and change the state of the last to OFF and then diminish the index
value (S+1) by 1.