Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

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

Advertisement

Bit strings
IsComplete
OK
ParamErr
OK
IsTrigger
OK
Function
The GetTraceStatus instruction reads the execution status of the data trace that is specified with trace
number TraceNo. The status that is read is output to execution flag IsStart, completed flag IsComplete,
parameter error flag ParamErr, and trigger flag IsTrigger.
The value of ParamErr changes to TRUE when one of the following errors is found in the trace settings.
• A variable that is specified in the trigger or sampling settings does not exist.
• Sampling is set to be performed on a specified task period, but the specified task does not exist.
The following figure shows a programming example. The GetTraceStatus instruction reads the execu-
tion status of the data trace with trace number 1.
LD
USINT#1
The GetTraceStatus instruction reads the execution status of the data trace that is specified with trace number TraceNo.
TraceNo
USINT#1
-------------- --------------
-------------- --------------
Data trace
Related System-defined Variables
Name
*1
Trace Information
*1 NX701 or NJ501 CPU Unit, and NY-series Controller: The variable name is _PLC_TraceSta[0..3].
NX1P2, NJ301 or NJ101 CPU Unit: The variable name is _PLC_TraceSta[0..1].
*2 _sTRACE_STA[]
*3 Refer to the NJ/NX-series CPU Unit Software User's Manual (Cat. No. W501) or NY-series Industrial Panel PC / Industrial
Box PC Software User's Manual (Cat. No. W558) for details.

NY-series Instructions Reference Manual (W560)

ST
GetTraceStatus
EN
ENO
TraceNo
abc
IsStart
def
IsComplete
ghi
ParamErr
jkl
IsTrigger
IsStart
Read.
IsComplete
ParamErr
IsTrigger
Meaning
Data type
*2
Integers
GetTraceStatus(USINT#1, abc, def, ghi, jkl);
*3
Trace information
2 Instruction Descriptions
Times, durations, dates,
and text strings
Description
2
2-803

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents