DLMUK
Member
Hi all,
I have an ASCII RS485 string going into a CP340 and into an S7314.
I have the string going into the PLC ok... what I want to do is separate out data from within the string.
Can anyone point me to a good starting point? I have had a scout online but cannot find anything relevant.
An example is:
T+12.55A-15.55
I need to separate out the +12.55 and the -15.55 into separate data areas.
But my string coming in (when looking at the online view in TIA portal) doesn't seem to deal with LF very well. So sometimes it would be
T+12.55A-15.55[][]T+12.55A-15.55[][]T+12.55A-15.55[][]
then another time
12.55A-15.55[][]T+12.55A-15.55[][]T+12.55A-15.55[][]
this is during constant operation, not me starting and stopping the input.
So I will also need to identify the characters T and A (coincidental combination of letters!!) and then take the data which appears after these characters occur.
Many thanks,
Thanks,
I have an ASCII RS485 string going into a CP340 and into an S7314.
I have the string going into the PLC ok... what I want to do is separate out data from within the string.
Can anyone point me to a good starting point? I have had a scout online but cannot find anything relevant.
An example is:
T+12.55A-15.55
I need to separate out the +12.55 and the -15.55 into separate data areas.
But my string coming in (when looking at the online view in TIA portal) doesn't seem to deal with LF very well. So sometimes it would be
T+12.55A-15.55[][]T+12.55A-15.55[][]T+12.55A-15.55[][]
then another time
12.55A-15.55[][]T+12.55A-15.55[][]T+12.55A-15.55[][]
this is during constant operation, not me starting and stopping the input.
So I will also need to identify the characters T and A (coincidental combination of letters!!) and then take the data which appears after these characters occur.
Many thanks,
Thanks,