LOGIC ANALYZER: Monitoring the Application
This topic and its subtopics provide information about the following:
Note
|
Note
The update rate of online values depends on the set 'Polling interval' which is specified in the 'Options' dialog. The higher the interval value, the less data is transferred in the background between PLCnext Engineer and the controller, i.e., the longer the time until the next online value update in online worksheets, the WATCHES window, and the LOGIC ANALYZER. Therefore set the interval value as short as the Internet connection allows. See topic "TCP Communication Connection". |
General information
The LOGIC ANALYZER is a tool for recording variable values on the running controller and visualizing them graphically as curves with adjustable scales on both the x-axis (time) and y-axis (variable value).
Up to 16 variables can be recorded at the same time.
The Logic Analyzer supports variables and ports from IEC 61131-3 POUs as well as ports from (external) non-IEC 61131-3 programs.
The Logic Analyzer supports variables and ports.
Note
In the following description, the term "variables" also includes ports. |
User-defined data types such as ARRAYs and STRUCTs can also be inserted into the Logic Analyzer. On insertion, a selection window appears where you can decide which members should be inserted an subscribed (see Step 1).
Example: Visualized curves of recorded values in the LOGIC ANALYZER
While the controller is running and debug mode is active in PLCnext Engineer (variable/port values are visible in code worksheets and variables tables, or data/port lists), you can add variables/ports to be monitored to the LOGIC ANALYZER subscription list and then start the recording session. The LOGIC ANALYZER acts as a subscriber of these online variables in the controller runtime process. Values are recorded and buffered on the controller, and transferred to PLCnext Engineer.
The LOGIC ANALYZER is able to record and display numeric values, Boolean values (which are internally converted to the numeric values 0 and 1) as well as bit values (converted to numeric representation). Additionally, the LOGIC ANALYZER allows to export recorded data (see Step 6). Exported data can be imported again and displayed as curves, for a later review.
Recording modes
The LOGIC ANALYZER supports two recording session modes. In both modes, the session has to be started manually by clicking the respective button on the LOGIC ANALYZER toolbar.