DVP-ES3 Series Programming Manual 6.19.2 Explanation of Communication Instructions Symbol S : First device to which the LRC is applied n : Number of bytes D : First device where the operation result is stored _6 Explanation 1. This instruction performs a longitudinal parity check on n bytes in the device specified by S . Please refer to the Additional remark for this instruction (below) for more information about the LRC check code. 2. The operand n must be an even number, and must be between 1–1000. If n is not in the range, an operation error occurs, the instruction is not executed, SM0 and SM1 are ON, and the error code in SR0 is 16#200B. 3. The 16-bit conversion mode:
When SM606 is OFF, the instruction divides the hexadecimal data in the device specified by S into the high 8-bit data and the low 8-bit data. The instruction applies the LRC to every byte, and stores the operation result in the high 8-bit and the low 8-bit in the device specified by D . The number of bytes depends on n . 4. The 8-bit conversion mode: When SM606 is ON, the instruction divides the hexadecimal data in the device specified by S into the high 8-bit data (invalid data) and the low 8-bit data. The instruction applies the LRC to every byte, and stores the operation result in the low 8-bit in the two registers. The number of bytes depends on n .
The values of the high 8 bits in the two registers are 0. 6-526 API Instruction code Operand Function 1806 LRC S, n, D Longitudinal parity check Device X Y M S T C HC D FR SM SR E K 16# “$” F S n D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S n D Pulse instruction 16-bit instruction 32-bit instruction - ES3 -