Running and Testing the Programs Created in IEC 61131-3 Languages

This paper presents new features for testing and running of IEC 61131-3 POUs (Program Organization Units) which are available in the CPDev engineering environment. Testing can be done either via simulation or in on-line mode. Data sources mechanism is used to test programs running on various target platforms. There are tools for debugging of programs created in graphical languages like FBD or LD, as well as a tool for the final commissioning. One of the newest mechanisms added to CPDev environment is a possibility of defining POU-oriented tests. Two ways of specifying unit tests for functions, function blocks or programs are available i.e. via the dedicated test definition language CPTest or using tables.