3. Instruction Set K33: 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 will the index value (S+0) have any change. Example: 1. If M0 switches OFF ON, execute the instruction DTM will copy the values stored in D105 to D0. 2.
As the image shown below, execute the instruciton DTM to copy the value K16 stored in D105 to D0 and put K0 to D101. 3. Execute the instruciton DTM for 5 times to have the results: D0=K12 and values in D101~105 are K0. 3-191