Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Related System-defined Variables
Name
_PLC_TraceSta[0..3]
* _sTRACE_STA[]
Additional Information
• 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.
Precautions for Correct Use
• 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
TraceNo.
Sample Programming
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.
LD
Variable
Current_speed
Max_speed
Current_speed
Max_speed
ST
Variable
Current_speed
Max_speed
IF (Current_speed > Max_speed) THEN
TraceTrig(USINT#1);
END_IF;
2-606
Meaning
Trace Information
Comment
Data type Initial value
Current speed
INT
0
INT
Maximum speed
20
GT
EN
In1
USINT#1
In2
Comment
Data type Initial value
Current speed
INT
0
Maximum speed
INT
20
Data type
*
Trace information
Refer to the NJ-series CPU Unit Software
User's Manual (Cat. No. W501) for details.
TraceTrig
EN
ENO
TraceNo

NJ-series Instructions Reference Manual (W502)

Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents