String escape sequences in IEC 61131

Hello PLCnext Team, i am trying to insert a apostrophe inside a IEC string. I found the attached escape sequences in the internet for the IEC 61131 language. Refer to the table it should be possible to do it with the $’ sequence. It seems that it is not working correctly(Attachment). Are these escape sequences supported by the PLCnext Engineer ?

Hello, I have a solution for you, I don’t know if its the best way of doing it but it works. What I did is create a byte and put in the hex number of the character you want, as in your case the apostrophe hex number 27. In the code you put it like this: bByte := 16#27; Then convert it to a string using the to_string function: sTestString := TO_STRING(bByte, ‘{0:C}’); Then it will be the apostrophe and you can concat it to your string: sTestString := CONCAT(sTestString, ‘hello’); As you can see in the picture it works.

Capture.PNG

Thank you for your workaround!