Converting a Fully binary serial string

Good Morning all,

I am reading a serial string in Beckhoff twincat from an RS232 motion sensor.
My problem is that the motion sensors communications protocol is fully binary so I am receiving this as the serial string:-

'úÿ2$12>wœÄ»$P=œ;Æ’ì¿xeÀ,Ÿbúÿ2$12>w‡µ»$Pž+;Å£•¿xg$12, ˆúÿ2$12>wp\»$0Fî;Ç$14í¿xh€,¡$12úÿ2$12>w}˜»$12j'

Does anyone know how a function in Twincat to convert this to ASCII or have seen some code to do this?

Thanks

Matt
 
Realised that this is not full binary as it is ASCII but using the extended instructions hence all the funny characters.

So looking at ASCII to hex conversion, any one knows if this exists in Twincat, cant find it within Twincat information system (help documentation)
 
What does your encoder send? That would be my first question. Is it a fixed digit number with a decimal point? You gotta have some information as to formatting of that stream of bits. Without that info, you might have to post to a cryptology forum :)
 

Similar Topics

Hi All I make small air handlers for lab use. The air handlers are for creating and maintaining certain air pressure and air flow to what its...
11
Replies
540
Views
Hi everyone, I have an old Modicon PLC program saved as an .FMD file, which was created using FasTrak PLC WorkShop for Modicon. I can open the...
1
Replies
187
Views
Hi, I'm going to be converting a wet well apprx 8' deep from a 4 float 120vac signal loop tree wired to float terminals of a conventional panel to...
27
Replies
1,170
Views
Good morning all. I have a question on how to convert the MULT function in Modicon to Logix 5000, due to how Modicon distributes the product. In...
2
Replies
312
Views
I take a .PVA of the PV550 and import it into Panelview32 , then save that as .PBA per recommendations. Then import that into View Studio where...
0
Replies
253
Views
Top