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

Array variable
A DIM command secures specific array variable partitions in the memory.
10 DIM ARRY(100) /* secure ARRY(0)ARRY(99)
20 FOR I=0 TO 99
30 ARRY(I)=I
40 NEXT I
You can use two-dimensional arrays.
10 DIM ARRY(2,3)
Point data is also a kind of array variable.
You can save (load) the point data to the PC. The PLS command displays the point data list.
#NEWP /* point data clear
#X(1)=999
#Y(1)=998
#U(1)=997
#Z(1)=996
#PLS
p1 X= 999 Y= 998 U= 997 Z= 996
---
p21 X= 0 Y= 0 U= 0 Z= 0
p22 /* Qkey quits display. other key continue
String array variable
There is a string array variable named 'AR$'.
A DIM_AR$ command secures memory for AR$.
10 DIM_AR$ 35 4000 /* AR$(0)AR$(3999): 4000 variables
20 AR$(3000)="ACCEL"
730 PRINT AR$(3000)
#run
ACCEL
Caution: A string array variable shares the point data memory area.
#DIM_AR$ /* just 'DIM_AR$' = confirm using memory
Length=35 Count =4000 P(MAX)=4249 /* 35 characters * 4000 arrays, 4249 available point data
Memory I/O
A negative number denotes memory I/O.
ON ‒ 1 /* turn on bit -1
WAIT SW(-1)==1 /* wait for bit to turn on
OUT 255 ‒ 2 /* 255 loads to bank -2 (bit ‒ 9-16)
23