User`s manual
Table Of Contents
- MPC-684 family
- The feature of the MPC-684
- Program development environment
- How to connect
- Input commands
- I/O check
- How to input program
- Edit of a program
- How to program save to the PC, load from the PC
- I/O control
- Variable, Array variable, String variable, Memory I/O
- Calculation
- Pulse generation
- Multi-task
- RS-232 communication
- Debugging
- Use touch panel
- Command List

Debugging
Basic debugging (run/stop/check)
One useful basic process of debugging of the MPC is by executing the program, stopping
it and then checking previous tasks program steps.
For instance, if a machine that is in operation stops, you can look for the cause of
stoppage.
FTMW displays the stop lines of each task by using 'Ctrl+M'.
10 ON 0
20 WAIT SW(192)==1
30 OFF 0
#RUN /* RUN -> if the machine stopped -> program stop by using 'Ctrl+A'
*0 [20]
# /* Display stop line(s) by using 'Ctrl+M'
TASK0 20 WAIT SW(192)==1 /* Why did program stop here?
Use the PRINT command
You can monitor the variables, I/O, etc. by using the PRINT command in the program.
10 C=0
20 DO
30 C=C+1
40 PRINT "count=" C /* monitoring variable C
50 LOOP WHILE C<3
#RUN
count=1
count=2
count=3
Subroutine execute
You can execute any subroutine by using the RUN command.
10 DO
20 GOSUB *FLICK
30 LOOP
40 *FLICK
50 ON 0
60 TIME 50
70 OFF 0
80 TIME 50
90 RETURN
#RUN *FLICK /* execute the subroutine *FLICK
#90 .....Return not called from a subroutine /* end of the subroutine
35