Data Description Format; Multitasking Function - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

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)
[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
Subroutine CALL
Movement to the label
Variables
Timer
Display of d023
5000*2+10
10010
Subroutine CALL between tasks is not made.
It cannot move between tasks to the label by the goto instruction and the if
instruction, etc.
The variables such as user-defined variable U (00) become common by each task.
When plural tasks carry out timer set / timer off for the same timer number, it will not
work normally.
Inverter function cord d023 displays program counter of task 1.
initial value
Description
2-2
Comment
Calculation result
Definition expression
Variable name

Advertisement

Table of Contents
loading

Table of Contents