Getmytaskinterval - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

GetMyTaskInterval

The GetMyTaskInterval instruction reads the task period of the current task.
Instruction
Name
GetMyTask
Read Current
Interval
Task Period
Variables
Name
Meaning
Out
Task period
*1 Negative numbers are excluded.
Out
Function
The GetMyTaskInterval instruction reads the task period of the current task and stores it in task period
Out if the task that executes the instruction is the primary periodic task or a periodic task.
If an event task executes the instruction, the value of Out will be T#0s.
The following figure shows a programming example. If the task period of the current task is 1 ms, the
value of abc will be T#1ms.
LD
EN
NY-series Instructions Reference Manual (W560)
FB/FUN
FUN
(@)GetMyTaskInterval
EN
I/O
Description
Output
Task period of current task
Bit strings
GetMyTaskInterval
ENO
abc
Graphic expression
ENO
Out
Valid range
Depends on
data type.
Integers
ST
abc:=GetMyTaskInterval();
2 Instruction Descriptions
ST expression
Out:=GetMyTaskInterval();
Unit
Default
ms
---
*1
Times, durations,
dates, and text
strings
OK
2
2-1375

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents