Title: Parsing data and output to a OPC item dependent upon a field value Post by: jeremy on January 23, 2020, 02:00:00 PM Hi I have a data string of the format
$header, value of interest, item code <cr><lf> the item code denotes which item I want to assign the value to in an opc server e.g if the item code 1 the value is fuel used, if it is 2 the value corresponds to distance travelled, if it is 3 the value corresponds to wind speed. All messsage headers are the same. What is the easiest way of doing this? Title: Re: Parsing data and output to a OPC item dependent upon a field value Post by: Arthur Grasin on June 14, 2012, 08:25:33 AM 1. Extract items VALUE and CODE using the ASCII Data Parser
2. Copy VALUE to a new item (with necessary name) using a small script in the the Script Execute plugin. Title: Re: Parsing data and output to a OPC item dependent upon a field value Post by: jeremy on June 14, 2012, 09:28:37 AM Thank you for your help.
|