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

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
20
Views
199
Hi everyone, I am an omron plc tec , lately I came across a siemens s7 200 cn plc . Can someone help me regarding the software required and...
Replies
26
Views
460
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
115
Hi, I have PLC S7-1200 and switch XC-208 and Iam trying to implement this SNMP library: SIOS I am not sure, what I am doing wrong, but there is...
Replies
3
Views
121
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
688
Back
Top Bottom