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

I/O control
You can control an I/O Port for every bit or byte.
Bit operating is for simple device control. ex. solenoid valves, relays and switches etc.
Byte operating is used for reading DSW, data exchange with external devices etc.
Bit control
ON 0 /* output #0 turn on
OFF 1 /* output #1 turn off
WAIT SW(192)==1 /* wait for input #192 to turn on
IF SW(1)==1 THEN : GOTO *LABEL : END_IF /* conditional branch
ON -1 /* negative number = memory I/O.
WAIT SW(-2)==0 /*
Byte control
OUT 170 0 /* 170(decimal) is outputted to bank #0.
A=IN(0) /* the value of bank#0 loads to variable A.
OUT A B /* the value of A loads to out-port B.
WAIT IN(1)==255 /* wait to reach 255.
IF IN(2)==&H0F THEN : GOTO *LABEL : END_IF /* conditional branch
OUT &HFF -1 /* negative number is memory I/O.
WAIT IN(-1)==&HAA /*
21