How Can I Store more than 5 variables from an incoming message?

The incoming variable parser can only hold up to 5 individually created device variables.

Option 1: Use an Array Variable

When using integer data, the easiest way to handle this would be to read the values into a variable array using "ScanList" function.

In the attached example, the original string is saved in a variable called "incomingString". The "temp" is just to make sure the "ScanList" function is executed. The final 9 byte values are saved into individual positions within the array called "value"

Option 2: Regexp Event in WinScriptLive

 A different option when using strings is to save the full incoming string and then to use the "RegExp" event in WinScriptLive to parse the string into individual variables.

Have more questions? Submit a request