Details
According to the manual, we know that the instruction to switch programs is:
SET_PROGRAM [program no.]
However, after actual testing, it was found that the program number may not be padded with zeros in the actual send. That is
SET_PROGRAM[01] is invalid, the
SET_PROGRAM[1] is available.
And you need to return to line feed after the instruction, and then send it again. It can complete the program switch.
Example:
Open the network port debugging assistant, enter the SnAPP IP address, port 23. to establish a TCP client connection.
Enter SET_PROGRAM[1], enter to change lines, and send the
Switch to Job 01.
Type SET_PROGRAM[2], enter to change lines, and send.
Switch to job 02.
The above two sample operations, the command is followed by a carriage return line feed.
Take the debugging assistant I use as an example, press ctrl+enter to enter the line. Some debugging assistants directly enter
can enter the line, different tools may differ in operation.
If you are in doubt, you can add \r\n at the end of the instruction without any additional action.
As shown in the above figure, sending SET_PROGRAM[1]\r\n instruction directly can also complete the program switching.
SET_PROGRAM[2]\r\n
SET_PROGRAM[3]\r\n
END