JarnoQ
Member
I want to print Russian (Cyrillic) text with Siemens S7 and a CP340 to a Zebra printer. The text is fixed, and has to be written into a DB (ARRAY with type CHAR).
Now it is not possible to just copy a Cyrillic character, from for example Word, into a DB position on it's actual value.
I catch the string which is send to the printer, and noticed that 1 Cyrillic character consists out of 2 bytes! So now i understand that I just can't copy it into a CHAR position in the DB.
ц results into ц, and this is D1 86
I think I just have to convert every Cyrillic character into 2 bytes and then write them from the PLC-code into the DB.
Does somebody have a better idea?
Now it is not possible to just copy a Cyrillic character, from for example Word, into a DB position on it's actual value.
I catch the string which is send to the printer, and noticed that 1 Cyrillic character consists out of 2 bytes! So now i understand that I just can't copy it into a CHAR position in the DB.
ц results into ц, and this is D1 86
I think I just have to convert every Cyrillic character into 2 bytes and then write them from the PLC-code into the DB.
Does somebody have a better idea?