sCRLF := BYTE_TO_STRING(BYTE#16#0D,‘%c’);
sCRLF := CONCAT(sCRLF,BYTE_TO_STRING(BYTE#16#0A,‘%c’)); How can I do this in PLCnextEngineer? To_String((BYTE#16#0D,‘’) or To_String((BYTE#16#0D,‘{0:C}’) does not seem to work.
Try to use only one bracket at the beginning of your definition, e.g. stCR := To_String(BYTE#16#0D,‘{0:C}’); and stLF := To_String(BYTE#16#0A,‘{0:C}’);. With the concat function adding this to your string it works fine for me.