What is this StandardFirmata_ModifiedAll code doing?

Ok. If I understand correctly, you want to put a start/pause button on the PC screen, so that the user can pause the processing. Is that correct?

The sketch you posted (reply #4) contains serial output. What is receiving that output?