EasyManua.ls Logo

Omron NJ Series

Omron NJ Series
668 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...
8 CPU Unit Functions
8-40
NJ-series CPU Unit Software User’s Manual (W501)
Processing for data traces (sampling and trigger detection) are performed in System Common Process-
ing 1, between I/O refreshing and user program execution.
Example: If sampling is specified in the primary periodic task, data tracing is executed in System Com-
mon Processing 1, as shown in the following diagram.
Display examples for data trace operations and execution results is given below for sampling in a spec-
ified task period.
Additional Information
I/O refreshing, user program execution, and motion control processing are all executed in the
same task period. For data tracing, user program execution and motion control processing for
the current task period and I/O refreshing for the next task period are displayed at the same time.
The timing charts in the NJ-series Motion Control Instructions Reference Manual (Cat. No.
W508) are based on the task periods, so the display are not the same as those for data tracing.
Example 1:
In this example, the SysRun variable is changed to TRUE in the user program when the Sensor1 vari-
able (assigned to the sensor input signal) changes to TRUE.
The data trace operations and display of the execution results are given below.
1. In data trace processing in System Common Processing 1, TRUE is obtained for Sensor1.
2. SysRun is changed to TRUE in the user program.
3. In data trace processing in System Common Processing 1 in the next primary period, TRUE is
obtained for SysRun.
Therefore, in the data trace display, SysRun is shown as TRUE one task period after Sensor1.
Data Trace Display
Additional Information
If the values of variables change during user program execution, the changes in the values and
changes for output processing for I/O refreshing are changed in the same task period.
Data Trace Operation
Primary period Primary period
Primary periodic
task
I/O
refreshing
User program
execution
Motion
control
I/O
refreshing
System
common
processing 1
Motion
control
System
common
processing 2
System
common
processing 2
System
common
processing 1
User program
execution
Sensor1
SysRun
1 task period
Delayed.
TRUE
TRUE

Table of Contents

Other manuals for Omron NJ Series

Related product manuals