2-5
2 CPU Unit Operation
NJ-series CPU Unit Software User’s Manual (W501)
2-2 Software
2
2-2-2 Operation of Software
The software in the CPU Unit performs the following four processes. Which process is performed
depends on the status of the CPU Unit and the execution conditions of the process itself.
Refer to 2-6-1 CPU Unit Status for information on the CPU Unit status.
This section describes the operation of the processes.
Initialization is performed only when the power supply is turned ON.
The following processing is performed for initialization.
*1 Refer to 12-1-2 Fatal Errors in the CPU Unit for information on the following errors: Power Supply Error, CPU
Unit Reset, CPU Unit Watchdog Timer Error, and Incorrect Power Supply Unit Connected.
2-2-2 Operation of Software
Type of CPU Unit pro-
cessing
Status of CPU Unit Execution conditions
Processing exam-
ple
Initialization Startup state Initialization is performed only when
the power supply is turned ON.
Self diagnosis at
startup
Processing executed
with tasks
Normal operation
and error states
The processing is executed within the
assigned task. These tasks are exe-
cuted either periodically or only once
when the specified condition is met.
User program exe-
cution and I/O
refreshing
Tag data link service These services are performed only
upon requests from the hardware or
other external devices.
Tag data links
System services USB port service
and SD Memory
Card service
Initialization
Processing Description
Self diagnosis at startup Operation is monitored for the following errors: Power Supply
Error, CPU Unit Reset, CPU Unit Watchdog Timer Error, and
Incorrect Power Supply Unit Connected.
*1
Data check The _RetainFail (Retention Failure Flag) system-defined variable
changes to TRUE at the following time: when the values of vari-
ables for which the Retain attribute was set to retain the values
and the values in DM, EM, and HR Areas in the memory used for
CJ-series Units were not retained after a power interruption.
Detecting CJ-series Units The CJ-series Units mounted in the Controller are detected.
Recording Power Turned ON and Power
Interrupted events
The Power Turned ON and Power Interrupted events are
recorded.