Delta Electronics — 6.3.2 Explanation of Data Conversion Instructions

AS Series Programming Manual Symbol S 1 : Data source S 2 : Parameter D : Destination device _6 Explanation 1. This instruction finds a scaled linear value for the value in S 1 using two points in S 2 to define the scaling factor, and stores the result in D . 2. Only the 32-bit instructions can use the 32-bit counter, but not the device E. 3. The following table list the constant usage for the operand S 1 The flag SM685 (whether to use floating point operation or not) can only be used for 32-bit instructions.

6-110 API Instruction code Operand Function 0217 D SCLP P S1,S2,S3,D Finding a scaled value (two points) Device X Y M S T C HC D FR SM SR E K 16# “$” F S1             S2        D        BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1       S2       D       Pulse instruction 16-bit instruction 32-bit instruction AS AS AS 32-bit instruction Constant 16-bit instruction SM685 ON SM685 OFF Constant  X  Hexadecimal  X  Floating number X  X