Converting a Fully binary serial string

matt_sd

Member
Join Date
Jan 2007
Location
Australia
Posts
96
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

I am currently working on converting an Object-based ArchestrA System Platform HMI to a Tag-based InTouch HMI. Currently, the I/O is linked...
Replies
0
Views
45
Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
238
Hello PLCs Forum, I am in a bit of a pickle and was hoping someone could offer me some help. I have a .rss file and just need to see the ladder...
Replies
2
Views
150
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
404
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
412
Back
Top Bottom