STE 80722
– 70 –
: Write global variable (Host computer → Controller) MW
MW, Flag
Variable name
Variable type
Write data ···
This function requests writing of data into the user’s defined variable.
The flag is a control flag for restoring or non-restoring of data in the program file, as
shown below.
Flag Description
0 Restoring of data in the program file is not executed.
1 Restoring of data in the program file is executed.
The variable name should consist of up to ten (10) characters. Specify the array
element (“Variable name (*, *, ··· )”) for the array variable.
Specify the variable type data and write data in the following manner.
Variable type
Variable
type data
Write data
Integer type 0 1 pc. (long)
Real number type 1 1 pc. (float)
Load type 2 2 pcs. (float
float)
Coordinate type 3 4 pcs. (float
float
float
float)
Position type 4 6 pcs. (float
float
float
float
float
float)
Array integer type 5 1 pc. (long)
Array real number type 6 1 pc. (float)
Array load type 7 2 pcs. (float
float)
Array coordinate type 8 4 pcs. (float
float
float
float)
Array position type 9 6 pcs. (float
float
float
float
float
float)