It's been many years, but here goes:
Put the control into MEMORY mode
Press & hold the red CAN key, then press ERASE key (this clears the memory)
To read in a tape, put the tape on the reader, select MEMORY mode and press READ key. To punch a tape, select MEMORY mode and press the PUNCH key.
To enter your program data manually:
Switch to EDIT mode
Use the two "left-right" keys to move the address LED across the top of the display.
Run the address LED under the letter "S", enter "22", then press INSERT
Run the address LED under the letter "M", enter "04", then press INSERT
Press the EOB (End of Block) key, then press INSERT
Run the address LED under the letter "M", enter "08" then press INSERT
Press the EOB key, then press INSERT
(keep going until your program is entered. No need to enter the "%" sign)
To edit something within the program, use the SCAN+ and SCAN- buttons to scan to where you want to be, enter some new data, and press INSERT, ALTER or ERASE.
Note: The EOB character is displayed as a funny symbol on the LED display. The EOB is necessary at the end of each block, and after your M30.
When done entering the program, press RESET to jump to the begining of the program, then switch to MEMORY mode an press CYCLE START to run the program. The first cycle should be with SBK (Single Block) on so you can verify the program for errors. Keep one finger on the FEED HOLD button or use the feedrate override to watch for unexpected moves.
NOTE: When erasing the program memory, some 5T/5M controls required that you press and hold the CAN key while pressing ERASE. Other models let you press CAN, then press ERASE separately. The control should show "CCCC" (or something like that) when the program is being erased.