8-33
8 CPU Unit Functions
NJ-series CPU Unit Software User’s Manual (W501)
8-5 Debugging
8
8-5-1 Forced Refreshing
Status of Forced Refreshing during Operating Mode Changes or Power
Interruptions
By default, the forced refreshing is cleared when the operating mode changes between RUN mode
and PROGRAM mode and when the power is interrupted.
Forced refreshing is retained and cleared according to changes in the status of the CPU Unit as shown
below.
If forced refreshing is set in the user program, the status of variables for which forced refreshing is spec-
ified are overwritten by the user program. Therefore, the status that is specified for forced refreshing is
not maintained in the user program. However, refreshing to external devices uses the values that were
specified for forced refreshing, and not the status of the variables in the user program. If forced refresh-
ing is used in a program, the values of variables in the program may be different from the status of the
external outputs.
Example: When a Is Refreshed to TRUE with Forced Refreshing
When There Is Another Input that is Controlled by the Forced Input
Holding/Clearing Forced Refreshing
Change in status Forced refreshing status
When power is turned ON Cleared
When operating
mode changes
RUN to PROGRAM mode
PROGRAM to RUN mode
Cleared
After downloading Cleared
When a major fault level Controller error occurs Cleared
During online editing Retained
Programming Precautions for Forced Refreshing
a
OFF
When FALSE
External output
of a: TRUE
x
• a is FALSE in the program.
• When the output is refreshed, information from forced
refreshing is reflected and the external output of a is
TRUE.
TRUE for forced refreshing, but
FALSE in the program.
External output
of a: TRUE
x
OFF
a
OFF
a
OFF
b
OFF
When FALSE
a
is FALSE in the program.
As a result, b is FALSE.
• a is FALSE in the program. Because of this, b is FALSE.
TRUE for forced refreshing, but
FALSE in the program.
• When the output is refreshed, information from forced
refreshing is reflected and the external output of a is
TRUE.