Delta DVP-ES3 — 6.1.2 Explanation of Comparison Instructions

Chapter 6 Applied Instructions Symbol S : Pointer register n : Number of devices D : Check result 6_ Explanation 1. This instruction checks whether the value in S and (the value in S )+ n -1 exceed the device range. If the result is that the value in S and (the value in S )+ n -1 do not exceed the device range, the device D is ON. Otherwise, it is OFF. 2. S supports the pointer registers D, T, C, HC (POINTER/T_POINTER/C_POINTER/HC_POINTER). 3. The operand n must be between 1–1024. 4. You can use the CHKADR instruction only in a function block. Use CHKADR during the initial program development phase or when you are not sure if the device range will be exceeded.

After the program is written and debugged, you can delete this instruction. Example 1. Create a program (Prog0) and a function block (FB0) in ISPSoft. 6-37 API Instruction code Operand Function 0065 CHKADR S,n,D Checking the addresses in a pointer register 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 -