5-15
5 Designing Tasks
NJ-series CPU Unit Software User’s Manual (W501)
5-2 Task System
5
5-2-4 Event Task Execution Conditions
This method executes the event task once when the specified condition expression is met for the value
of a variable that was specified on the Sysmac Studio. The event task is not executed repeatedly while
the value of the variable matches the condition expression. It is executed only once when the value of
the variable first changes so that it meets the condition expression. This method of execution does not
require user programming to execute the event task.
Variables for Which You Can Specify Condition Expressions
The following table lists the variables that you can specify for condition expressions.
*1 The following variables cannot be used. EN, ENO, P_Off, P_CY, P_First_RunMode, P_First_Run and
P_PRGER
*2 In-out variables cannot be used.
Data Types of Variables for Condition Expressions
The following table lists the data types of variables that you can specify for condition expressions.
*1 The elements of the array must be Boolean variables, bit strings, integer data, or real data.
*2 The members must be Boolean, bit strings, integer data, or real data.
Executing Event Tasks When Condition Expressions for Variables
Are Met
Type of variables
Specifica-
tion
System-defined variables
Possible.
*1
Semi-user-defined variables Possible.
User-defined vari-
ables
Global variables Possible.
Variables used in a program Possible.
Variables used in a function block
Possible.
*2
Variables used in a function Not possi-
ble.
Classification of data
type
Data type Specification
Basic data types
Boolean, bit string, integer, and real Possible.
Duration, date, time of day, date and time, or
text string data
Not possible.
Data type specifica-
tions
Array specification
Arrays Not possible.
Elements
Possible.
*1
Derivative data type
Structures
Structures Not possible.
Members
Possible.
*2
Unions
Unions Not possible.
Members
Possible.
*2
Enumerations Possible.