In the Arduino environment, you need to process the string to get the algorithm of the engine. For example, from the line "a15,s150,p10;a45,s200,p30;"
There should be 3 arrays:
int stepperAngles[] = {15, 45}; int stepperSpeeds[] = {150, 200}; int stepperPauses[] = {10, 30};
The string is specified in this format. The number of engine states may vary. Maybe it is worth creating a class, for example Frame in which to store 3 parameters for each state and to make an array from class instances? If so, how is this better done?