Action: ReadVariable Function : The action reads a variable from the controller to a test script. Call : Monitoring test driver Tip When reading a variable of type TOD , an object of type DateTime (.N
Action: ExecuteScript Function : The action runs a script in the script engine. Call : Scripting test driver Tip When you perform this action in CODESYS V3.5 SP5 or a later version, Python scripts tha
Action: Delay Function : This action waits for the specified time (in milliseconds) and then the test run is continued. Call : System test driver Tab: Configuration Delay [ms] Waiting time (in millise
Testing the TON Function Block This example shows the test of the standard TON function block in the Standard library. The test code is configured with a test table. Inserting the Test Table object fo
Command: Add IEC Unit Test Function : The command adds an IEC Unit Test element in the test script editor. The element is positioned after the last test element in the selected test script or branch.
Creating a Test Project A test project which is suitable for a system test contains a compilable application with the system settings of the test system. Make sure that the test system is as similar a
Automating the System Test Example: Examples.CounterTest Tip You can find the CODESYS sample projects Bspdt-TestManager and CounterTest in the C:\ProgramData\CODESYS Test Manager directory. In a test
Element: IEC Unit Test Symbol: Function : The IEC Unit Test element is used for automatically searching the (preparatory) loaded test project for test POUs and test tables, and then creating a test ap
Scheme for Multitest POUs Defining a test POU If your test consists of multiple uniform test cases, then you can implement one multitest POU instead of many single test POUs. Multitest POUs follow a s