User`s manual

Variable, Array variable, String variable, Memory I/O
MPC-684 has a lot of variables, array variables, string variables and memory I/Os.
These are in integers of 4 bytes.
Variables and array variables are used for calculation, counting as usual. Memory I/Os
are usually used for interlocking tasks.
Most commands and functions can use constants, variables and array variables in their
parameters.
You can control memory I/Os as usual by using ON, OFF, OUT, SW commands.
You can view their current state by entering ‘VLIST’.
Variable
You can set the parameters of a command using variables or numbers.
Parameters, commands, functions, constants and reservation strings cannot share the
same name.
You don't need to define them in the program as ‘Language C’, but you have to initialize
variables in the program.
10 SOL1=0 /* SOL1 is a variable
20 ON SOL1 /* turn on
You can make constants by ‘CONST’.
10 CONST SOL1 0
20 ON SOL1
You can't change constant's value.
10 CONST SOL1 0
20 ON SOL1
30 SOL1=1 /* changes the value.
#RUN
#30 .....Attempted modification of a constant.
Local variable
The local variables are available for each task. They are assigned to the specific
memory areas of each of the individual tasks. Each of the tasks can share a subroutine.
A!=B!+C! /* !indicate local variable.
22