7 Application Instructions API 50-99 longitude. The conversion helps the user obtain the more accurate time difference of each location within the same time zone. Explanation on operands: S +0, S +1: Longitude (32-bit floating point value; East: positive, West: negative) S +2: Time zone (16-bit integer; unit: hour) S +3~ S +8: Year, Month, Day, Hour, Minute, Second of local time (16-bit integer) D +0~ D +5: Year, Month, Day, Hour, Minute, Second of the converted local sidereal time (16-bit integer) n : Reserved Example: Input: Longitude F121.55, Time zone: +8, Local time: AM 8:00:00, Jan/6/2011 Conversion results: AM 8:06:12, Jan/6/2011 K12:
Ramp value for multiple points (16-bit) Explanation on operands (16 bits): S : input value S +1, S +2….. S +n: input values for multiple points. The value of these values must be set by the following rule, S +1 must be the smallest value, S +2 must be larger than S +1 and so on. Therefore, S +n must be the largest value. D : ramp value n : Setting value for multiple points. The setting value is within the range between K2 ~ K50. If the setting value D +1, D +2 … D +n: Range of ramp values for multiple points exceeds the range, the instruction is not executed. The example of a curve is as follows.
(n=K4) D+1 D+1 D D D+2 D+2 D+4 D+3 D+4 D+3 S+1 S S+1 S S+2 S+2 S+3 S+3 S+4 S+4 Explanation of the example: 1. If S is larger than S +1 ( S 1 ) and is less than S +2 ( S 2 ), D +1 ( D 1 ) and D +2 ( D 2 ). D= ( ( S – S 1 ) x ( D 2 – D 1 ) / ( S 2 – S 1 ) ) + D 1 . 2. If S is less than S +1, D = D+1. If S is larger than S + n , D = D + n . 3. The floating-point numbers are involved in the operation. The output value is rounded down to the nearest whole digit, and then the 16-bit integer is output. DVP-PLC APPLICATION MANUAL 7-66