Hallo, Ich verwende Beckhoff Twincat und würde etwas Hilfe bei der OSCAT Bibliothek fordern, wenn möglich. Ich kippe spreche Deutsches, also habe ich übersetzt, hoffe, dass es sinnvoll, ich kann alle deutschen Antworten zurück umwandeln ist. Ich lese eine Serienschnur des Bewegungs-Sensors RS232 für einen Bewegungs-Sensor, dieser bin ein völlig binäres also herauskomme in das ausgedehnte ASCII-Format, z.B. in das ' úÿ2$12 ¾ Â! V ¼ ' Ich muss dieses in Hexe umwandeln, also kann ich die Daten verwenden. Notwendigkeit IE-I ein Modul, ¾ úÿ2$12 in faff32243132c0 umzuwandeln Bietet OSCAT ein Modul an, um dies zu tun? Auch, wenn ich die OSCAT Bibliothek in Twincat hinzufüge, erhalte ich viele Störungen, da ich Twincat Standardbibliotheken anbringen lasse und diese die gleichen FunktionsSpeicherbereichsnamen haben. Gibt es eine leichte Art oder muss ich, suchen/ersetze den Namen jedes kontroversen Funktionsblockes? Dank für irgendwelche Hilfe Respekt Matt
In English:-
Subject:Fully Binary serial string (Extended ASCII) to Hex conversion
Hello,
I am using Beckhoff Twincat and would require some help with OSCAT library if possible. I cant speak German so I have translated, Hope it makes sense, I can convert back any German replies.
I am reading a motion sensor RS232 serial string for a motion sensor, this is a fully binary so comes out in the extended ascii format, eg 'úÿ2$12¾Â!V¼'
I need to convert this to hex so I can use the data.
ie I need a module to convert úÿ2$12¾ into faff32243132c0
Does OSCAT offer a module to do this?
Also when I add the OSCAT library into Twincat, I get many errors as I have Twincat standard libraries installed and these have the same function block names. Is there an easy way, or do I need to search/replace the name of every conflicting function block?
Thanks for any help
Regards
Matt.