7 Application Instructions API 50-99 K6: When n = 4, transform 8-bit ASCII data (higher 4 bits, lower 4 bits) into HEX data in the following rule: (ASCII value to be transformed includes 0 ~ 9 (0x30~0x39), A ~ F (0x41~0x46), and a ~ f (0x61~0x66).) Hi-byte Lo-byte Hi-byte Lo-byte Hi-byte Lo-byte Hi-byte Lo-byte K7: When n = 4, transform 8-bit ASCII data (lower 4 bits, higher 4 bits) into HEX data in the following rule: Hi-byte Lo-byte Hi-byte Lo-byte Hi-byte Lo-byte Hi-byte Lo-byte 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 –dd.mm 1 mm 2 mm 3 –dd.mm 1 mm 2 mm 3 D+0 D+0 S+3 S+4 S+3 S+4 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) D+2 S+10 S+10 –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: 2. When the total of ramp-up and ramp-down time exceeds the total time for operation, PLC will change the 1. When the calculation results exceed the max frequency of PLC, the output frequency will be set as 0. total time for operation ( S +2) into “ramp-up time ( S +3) + ramp-down time ( S +4) + 1” automatically. Explanation on operands:
(For DVP-EH3 series PLCs whose version is 1.60 or below) S +0, S +1: Total number of pulses for operation (32-bit) DVP-PLC APPLICATION MANUAL 7-64 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