Chapter 2 Syntax
(2) Data Description Format
Each variable is described on a line that consists of the “Variable,” “Define,” “Answer,” and “Comment” fields.
(Example)
㩷
U (00)
5000*2+10
10010
initial value
㩷
Comment
㩷
Calculation result
㩷
Definition expression
㩷
Variable name
[1] Variable :
Use the “Variable” field to describe a variable name to be defined.
[2] Definition :
Use the “Definition” field to describe a definition expression for a variable. A definition expression can be a variable
name. Clicking the [Calculate] button in the “Data Window” after entering a definition expression starts calculation. (If
the calculation executed for a variable by clicking the [Calculate] button results in a value that is outside the range of
numeric values defined for the variable, the “Data range is invalid!!” message will appear and the “Result” field will
indicate “<Range is invalid.>.”)
[3] Result :
The “Result” field displays a calculation result. You cannot rewrite the calculation result.
[4] Comment :
You can describe a comment about the variable described on the line.
Note :
The item that can be uploaded is only Result. Definition and Comment cannot be uploaded.
(3) Multitasking function
In WJ200 series, two or more programs (a maximum of 5 tasks) can be simultaneously performed by the multitasking function. One
line of each task is executed at 2ms cycle. Please refer to the manual of ProDriveNext for the method of making two or more tasks.
The limitations in multitasking are shown below.
Limitations Description
Subroutine CALL
Subroutine CALL between tasks is not made.
Movement to the label
It cannot move between tasks to the label by the goto instruction and the if
instruction, etc.
Variables
The variables such as user-defined variable U (00) become common by each task.
Timer
When plural tasks carry out timer set / timer off for the same timer number, it will not
work normally.
Display of d023
Inverter function cord d023 displays program counter of task 1.
2-2
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...