Delta DVP-ES3 — 6.21.2 Explanation of String Processing Instructions

DVP-ES3 Series Programming Manual Symbol S : String n : Number of characters to be retrieved D : Device where the characters retrieved are stored Explanation _6 1. This instruction retrieves n characters from the string in S from the right, and stores the retrieved characters in D . When the data type of S (source value) is string, the maximum length for the value in S is 31 characters. When the data type of S (source value) is not string, the maximum length for the value in S is 255 characters. 2. If n is 0, the value in D is 0. The maximum length for n is 255 characters. . S b15 b0 b7 b8 +1 S ..................... ~ ~ D .....................

+1 D ~ 6-660 API Instruction code Operand Function 2111 $RIGHT P S, n, D Retrieving characters from a string beginning from the right.

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 ES3 - Second A SCII code First ASCII code Fourth ASCII code Third AS CII code n-1 th A SCII code from the last n th ASCII code from the last n-3 th A SCII code from the last n-2 th A SCII code from the last Second ASCII code from the last Third AS CII code from the last 16#00 First ASCII code from the last n-1 th A SCII code from the last n th ASCII code from the last n-3 th A SCII code from the last n-2 th A SCII code from the last Second ASCII code from the last Third AS CII code from the last 16#00 First ASCII code from the last