CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Tue Oct 17, 2017 5:00 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Oct 30, 2013 6:42 pm 
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Just to start filling this forum with usable content, I did attach a small python script which creates function block suitable for the IEC Unit Test feature of the CODESYS Test Manager. This simple example tests a function called "BoringAddition" against a bunch of reference values.

The intended usage scenario is: You have some algorithm implemented in IEC (e. G. some mathematical function) and want to test it against a table of reference values.

You can use this example script as a base to generate your own test function blocks, import them into a testbed project, and run them via the IEC unit test feature as part of your automated test suite.

Note that the generation and import can also be triggered as part of the automated test run, as the Test Manager includes actions to execute external commands, python scripts, and import objects.

You do not have the required permissions to view the files attached to this post.

Check out the CODESYS store:

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited