KAS- Parse values in a string in to variables
Often it is useful to store or send multiple values to the PxMM organized into one string. The following program takes the string (DataLine) with values separated by commas and place them in the array ( Values):
The program is attached. To test the program import into a .kas project and run the project in the KAS simulator or KAS controller.
You can force values direction from the IDE Dictionary by double clicking on the variable DataLine and forcing a new value:
Then you can see the new values stored in the array using the IDE Watch Window: