![Okuma OSP-P200L Скачать руководство пользователя страница 285](http://html1.mh-extra.com/html/okuma/osp-p200l/osp-p200l_programming-manual_3667818285.webp)
5238-E P-272
SECTION 12 USER TASK
3-2.
Variables
Three types of variable are used:
•
Common variables
•
Local variables
•
System variables
These three types of variable differ in their uses and characteristics.
3-2-1. Common Variables
The term "common" in "common variables" can be literally understood as common; they can be
used in common for main and subprograms. When the same variable is used in two or more
programs, the variable number used in those programs must be identical. Therefore, a common
variable, the result of calculation in one program, can be referred to in other programs.
[Format]
LE33013R0301400100001
Common variable designations consist of up to three digits following "V". The usable common
variables are V1 through V200.
Examples:
LE33013R0301400100002
[Details]
•
Common variables are effective both in main programs and subprograms.
•
Common variables are not affected by resetting the control or turning power off. That is, the
data are retained unless they are re-set or a control software is installed.
•
Besides setting or changing them in a program, common variables can be set or changed by
setting a parameter. For detailed information on parameter setting, refer to SECTION 4
PARAMETER SETTING, DATA OPERATION in OPERATION MANUAL.
V numerals = numerical data or expression
N101
V5 = 10
N101
V5 = V5 + 1