Zahl aus RS-232 via NPort in Variable schreiben

Guten Tag liebe Gemeinde,

ich habe eine ältere Waage und möchte den Wiegewert in IPS bekommen. Dazu habe ich die Wiegesteuerung dementsprechend konfiguriert, dass die via RS-232 eine ständige Gewichtsaussagbe macht. Diese Funktion ist eigentlich für eine Extrerne Anzeige gedacht. Aber so muss ich mich nicht mit Steuerbefehlen rumärgern und die Daten kommen ohne Aufforderung an.

Mit meinem Wissen am Ende, bin ich beim einbinden ins IPS. Im Debug kommen die Werte. Aber ich schaffe es nicht, den Wert durch einen Cutter in eine (Register)Variable zu schreiben. Dazu hoffe ich hier etwas Hilfe zu erhalten.

Den Moxa Nport habe ich als TCP Server laufen. Man anscheinend sogar dort schon im WebGui einen Cut durchführen lassen, dann könnte man sich das in IPS sparen?! und direkt wegschreiben vielleicht? Dazu der Screenshot.

Hier mal die Debug Ausgaben in allen Ansichten von dem Client Socket.
Als Dump

TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR><STX>0
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 02 30 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 013<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 30 31 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR><STX>0
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 02 30 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 013<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 30 31 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR><STX>0
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 02 30 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 013<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 30 31 33 0D 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:50.00 |             RECEIVED | 3<CR>
HEX: 25.08.2016 16:14:50.00 |             RECEIVED | 33 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 3<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 33 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR><STX>0
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 02 30 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 012<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 30 31 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR><STX>0
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 02 30 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 012<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 30 31 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR><STX>0
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 02 30 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 012<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 30 31 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:51.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:51.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:52.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | 2<CR><STX>0
HEX: 25.08.2016 16:14:52.00 |             RECEIVED | 32 0D 02 30 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | 012<CR>
HEX: 25.08.2016 16:14:52.00 |             RECEIVED | 30 31 32 0D 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:52.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | 2<CR>
HEX: 25.08.2016 16:14:52.00 |             RECEIVED | 32 0D 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | <STX>001
HEX: 25.08.2016 16:14:52.00 |             RECEIVED | 02 30 30 31 
TXT: 25.08.2016 16:14:52.00 |             RECEIVED | 2<CR>

hex.JPGtxt.JPG

Die Gewichtszahl ist die (wenn es nicht mal kurz geschwankt hat) die „0011“ - die möchte ich gerne speichern können.

Da ich noch nie mit Registervariablen und Cuttern was zustande gebracht habe, steh ich wie der Ochs vorm Berg und würde mich über Hilfe freuen:o

mit dem Cutter habe ich geschafft, jedoch nicht den Wert in eine Variable zu bekommen über die Registervariable mit einem Script;(

cutter.JPG

Das habe ich dann auf die RegVar gelegt. Im Debug kommen die Daten auch aktuell immer rein.