Chapter 6 Applied Instructions Symbol S 1 : Negative deviation S 2 : Positive deviation S 3 : Input value D : Output value 6_ Explanation 1. This instruction adds the negative deviation in S 1 or the positive deviation in S 2 to the input value in S 3 , and stores the sum in D . If the input value in S 3 is less than 0, the instruction adds the negative deviation in S 1 to the input value in S 3 , and stores the sum in D . If the input value in S 3 is larger than 0, the instruction adds the positive deviation in S 2 to the input value in S 3 , and stores the sum in D . If the input value in S 3 is equal to zero, the instruction stores zero in D .
6-389 API Instruction code Operand Function 1223 D ZONE P S1, S2, S3, D Controlling the zone Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 S3 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 S3 D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3