8-47
8 CPU Unit Functions
NJ-series CPU Unit Software User’s Manual (W501)
8-5 Debugging
8
8-5-5 Differential Monitoring
Refreshing task
Accessing task
External variable GVar1
Program P2
Reading
Global variable GVar1
Read/write
External variable GVar1
Program P1
TRUE
FALSE
P1
0
P1 P1
P1 P1
P1 P1
P1
P2 P2 P2
TRUE
FALSE
TRUE
FALSE
1
2
3
4
0
1
2
GVar 1
(global
variable)
Primary period
P1.GVar1
(external
variable)
Number of times
condition for GVar1 is
met (change to TRUE)
Periodic task
(accessing task)
Task period
The value of the P2.GVar1 external variable is updated only when
P2 is executed.
P2.GVar1
(external
variable)
Number of times
condition for P2.GVar1 is
met (change to TRUE)
TRUE is
written.
FALSE is
written.
TRUE is
written.
FALSE is
written.
TRUE is
written.
FALSE is
written.
TRUE is
written.
FALSE is
written.
Primary periodic task
(refreshing task)
Timing for condition evaluation by differential monitoring
The GVar1 global variable is updated as soon as P1 writes a value to the
P1.GVar1 external variable.