DVP-ES3 Series Programming Manual Symbol S : Source device D : Conversion result _6 Explanation 1. This instruction converts the binary value in the device specified by S into a Gray code, and stores the conversion result in the device specified by D . 2. Only the DGRY instruction can use the 32-counter, but not the device E. 3. The value in S should be within the available range. The value in S in the 16-bit instruction must be between 0–32,767. The value in S in the 32-bit instruction must be between 0–2,147,483,647. Example When M0 is ON, the instruction converts the constant 6513 into a Gray code, and stores the conversion result in D0.
6-92 API Instruction code Operand Function 0208 D GRY P S, D Converting a binary number into a Gray code Device X Y M S T C HC D FR SM SR E K 16# “$” F S D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3