3. Instruction Set
M100 0
M101 0
M102 0
M
103 0 M70
M104 0 1
M105 0
M106 0 0
M107 0
K36: Read the last written register to the D device (target value) (last in first out).
Diminish the index value (S+0) by 1 and then read and store the data stored from
S+[S+0] to the D device and put K0 to the source value S+[S+0].
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:
4. If M0 switches OFFON, execute the instruction DTM will copy the values stored in D105
to D0.
5. As the image shown below, execute the instruciton DTM to copy the value K16 stored in
D105 to D0 and put K0 to D101.