175
Procedures
Section 6-1
6-1-7
Comparing ST Programs
It is possible to compare the edited ST program with an ST program block in
the actual PLC or another project file to check whether the two ST programs
are identical. For details on comparing programs, refer to the
CX-Programmer
Operation Manual
(W446).
6-1-8
Monitoring and Debugging the ST Program
Monitoring the ST
Program’s Variables
The ST program can be monitored.
The ST program is displayed in the left side of the window (called the ST pro-
gram monitor window).
The values of variables used in the ST program are displayed in the right side
of the window (called the ST variable monitor window).
At this point, it is possible to monitor variable values, change PVs, force-set or
force-reset bits, and copy/paste variables in the Watch Window. (These oper-
ations are described below.)
■
Monitoring Variables
Variable values are displayed in blue in the ST variable monitor window.
■
Changing PVs
To change a PV, select the desired variable in the ST variable monitor window
(displayed in reverse video when selected), right-click, and select
Set - Value
from the pop-up menu.
The Set New Value Dialog Box will be displayed. Input the new value in the
Value
field.
■
Force-setting and Force-resetting Bits
To force-set, force-reset, or clear the forced status, select the desired variable
in the ST variable monitor window (displayed in reverse video when selected),
right-click, and select
Force - On
,
Force - Off
,
Force - Cancel
, or
Force -
Cancel All Forces
from the pop-up menu.
■
Copying and Pasting in the Watch Window
1,2,3...
1.
To copy a variable to the Watch Window, select the desired variable in the
ST variable monitor window (displayed in reverse video when selected),
right-click, and select
Copy
from the pop-up menu.
Select the variable.
Summary of Contents for CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......