Siemens S7 - Cyrillic text in a DB

JarnoQ

Member
Join Date
Sep 2008
Location
Nieuwegein
Posts
1
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?
 

Similar Topics

Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
4
Views
69
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
107
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
164
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
111
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
12
Views
330
Back
Top Bottom