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

Conditional stop
Pulse generation stops after sensors receive data indicating the need for the stop condition
to take effect.
1) The STOP command executes after the MOVL command. You can use normal input
ports (on the MIP, IOP board) for the stop parameters.
10 PG &H400
20 ACCEL 1000
30 FEED ALL_A 0
40 MOVL 5000 5000 VOID VOID
50 WAIT SW(192)==1
60 STOP ALL_A STP_I /* STP_I : without deceleration, STP_D : with deceleration
70 WAIT RR(ALL_A)==0
2) You can set the stop conditions before executing the MOVL command. In this case
you have to define specific input ports (IN3, LMT, ALM) on the MPG-314 board for the
stop parameters.
10 PG &H400
20 ACCEL 1000
30 FEED ALL_A 0
40 STOP ALL_A IN3_ON /* set stop condition. if X-IN3(J2 connecter pin1) turn on then stop.
50 MOVL 5000 5000 VOID VOID
60 WAIT RR(ALL_A)==0
70 IF RR(IN3_)<>0 THEN : PRINT "IN3stop" : END_IF /* confirming reason for stop
80 STOP ALL_A VOID /* reset stop condition
32