Delta DVP-ES3 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions Symbol S 1 : String source 1 S 2 : String source 2 S 3 : Splitter 6_ D 1 : Device in which the merged string is stored D 2 : Device in which the quantity of merged strings is stored Explanation 1. S 1 and S 2 are the string source 1 and 2 respectively. S 3 is the splitter that separates strings. Only values in the lower 8-byte are valid for S 3 . S 1 merges S 2 directly, when S 3 is 0 (16#00). S 1 adds the splitter and then merges S 2 , when S 3 is not 0. 2. D 1 is where to store a merged string. The merging order is string 1 + splitter + string 2 + ending character 0 (16#00). You can self-define an ending character.

This self-defined ending character will be added before the official one, 0 (16#00). 3. If the values in S 1 , S 2 , S 3 are all 0, D 1 is 16#0000. 4. D 2 is the sum of all the merged strings (ending character 16#00 excluded). The accumulated length for the string is the length of string 1 or the length of string 1 + splitter + the length of string 2.

6-685 API Instruction code Operand Function 2123 MERGE P S1,S2,S3,D1,D2 Merging strings Device X Y M S T C HC D FR SM SR E K 16# “$” F S1    S2    S3     D1  D2  BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1     S2     S3     D1    D2    Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -