Omron NY532-5400 Reference Manual page 1431

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

Advertisement

Sample Programming
In this sample, the instruction determines whether periodic task Tc2 is active when the value of variable
A changes to TRUE. If it is active, the value of variable B changes to TRUE.
LD
Variable
A
B
Tc2_Run
A
EN
'Tc2'
TaskName
A
Tc2_Run
ST
Variable
A
B
Tc2_Run
IF (A=TRUE) THEN
// Determine task status.
Tc2_Run:=Task_IsActive('Tc2');
// Make variable B TRUE if Tc2 is running.
IF (Tc2_Run=TRUE) THEN
END_IF;
END_IF;
NY-series Instructions Reference Manual (W560)
Data type
Initial value
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
Tc2_Run
Task_IsActive
B
Data type
Initial value
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
B := TRUE;
2 Instruction Descriptions
Comment
Task Tc2 execution status
Comment
Task Tc2 execution status
2
2-1379

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents