3. Instruction Set K8: Transform 8-bit GPS data into 32-bit floating point data in the following rule: S+0 S+0 Hi-byte Lo-byte Hi-byte Lo-byte 32bit Floating (S+4=H4E) 32bit Floating (S+4=H4E) S+1 S+1 D+0 D+0 S+2 S+2 S+3 S+4 S+3 S+4 –dd.mm 1 mm 2 mm 3 –dd.mm 1 mm 2 mm 3 D+0 D+0 S+5 S+5 S+6 S+6 32bit Floating (S+10=H45) 32bit Floating (S+10=H45) S+7 S+8 S+7 S+8 dd 1 dd 0 .mm 1 mm 2 mm 3 dd 1 dd 0 .mm 1 mm 2 mm 3 D+2 D+2 S+9 S+9 32bit Floating (S+10 != H45) 32bit Floating (S+10 != H45) S+10 S+10 D+2 –dd 1 dd 0 .mm 1 mm 2 mm 3 –dd 1 dd 0 .mm 1 mm 2 mm 3 D+2 K9: Calculate the optimal frequency for positioning instructions with ramp up/ down function.
Users only need to set up the total number of pulses for positioning and the total time for positioning first, DTM instruction will automatically calculate the optimal max output frequency as well as the optimal start frequency for positioning instructions with ramp-up/down function such as PLSR, DDRVI and DCLLM. Points to note: 1. When the calculation results exceed the max frequency of PLC, the output frequency will be set as 0. 2. When the total of ramp-up and ramp-down time exceeds the total time for operation, PLC will change the total time for operation ( S +2) into “ramp-up time ( S +3) + ramp-down time Explanation on operands: ( S +4) + 1” automatically. S +0, S +1:
Total number of pulses for operation (32-bit) S +2: Total time for operation (unit: ms) S +3: Ramp-up time (unit: ms) S +4: Ramp-down time (unit: ms) D +0, D +1: Optimal max output frequency (unit: Hz) (32-bit) D +2: Optimal start frequency (Unit: Hz) n : Reserved Example: K9 1. Set up total number of pulses, total time, ramp-up time and ramp-down time in source device starting with D0. Execute DTM instruction and the optimal max frequency as well as optimal start frequency can be obtained and executed by positioning instructions. 3-183 dd mm 1 mm 2 mm 3 4E dd 1 dd 0 mm 1 mm 2 mm 3 45 dd.mm mm mm 1 2 3 32bit Floating (S+4 != H4E dd.mm mm mm 1 2 3