EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-606
NJ-series Instructions Reference Manual (W502)
* _sTRACE_STA[]
Refer to the NJ-series CPU Unit Software User’s Manual (Cat. No. W501) for details on data tracing.
This instruction can be located in more than one place in the user program. Programming can be
written to generate a trigger according to specific conditions.
Programming can be written to generate triggers in ways that are not possible for normal trigger con-
ditions settings, such as programming to generate a trigger based on a comparison of two variables.
Return value Out is not used when the instruction is used in ST.
In the following cases, nothing is done and the instruction ends normally.
Data tracing is stopped.
The trigger condition has already been met.
The value of TraceNo is not the trace number set from the Sysmac Studio.
A continuous trace is specified as the trace type for the trace number that is specified with
Trac eN o.
Here, a data trace trigger is generated to store the values of variables when the current speed exceeds
the maximum speed. The TraceTrig instruction is executed when the value of Current_speed exceeds
the value of Max_speed.
Related System-defined Variables
Name Meaning Data type Description
_PLC_TraceSta[0..3] Trace Information * Trace information
Refer to the NJ-series CPU Unit Software
User's Manual (Cat. No. W501) for details.
Additional Information
Precautions for Correct Use
Sample Programming
Variable
Data type
Initial value
LD
Current_speed
Max_speed
0
20
INT
INT
Current speed
Maximum speed
GT
Current_speed
Max_speed
EN
In1
In2
USINT#1
TraceTrig
EN ENO
TraceNo
Comment
Variable
Data type
Initial value
ST
IF (Current_speed > Max_speed) THEN
TraceTrig(USINT#1);
END_IF;
Current_speed
Max_speed
0
20
INT
INT
Current speed
Maximum speed
Comment

Table of Contents

Related product manuals