CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Jun 25, 2019 4:37 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Sep 07, 2012 9:30 am 
Offline
User avatar

Joined: Mon Jun 06, 2011 8:42 am
Posts: 47
Hi,

In the script engine documentation for V3.5 SP1 Patch 2, I have noticed that a script object factory object is present. Has anyone used this and is able to explain how to use it?

Under ISystem2 members I see a property called "factories", so one should be able to use
Code:
system.factories

as an entry point. However, when I try this I get the following error:

Quote:
[INFORMATION] test.py(8): Begin of script
[INFORMATION] test.py(8): system.factories
[INFORMATION] test.py(8): exception (<type 'exceptions.StandardError'>, StandardError('Exception has been thrown by the target of an invocation.',), <traceback object at 0x0000000000000034>)
[INFORMATION] test.py(8): system.factories
[INFORMATION] test.py(8): exception (<type 'exceptions.StandardError'>, StandardError('Exception has been thrown by the target of an invocation.',), <traceback object at 0x0000000000000035>)
[INFORMATION] test.py(8): system.factories
[INFORMATION] test.py(8): Return from script
[INFORMATION] test.py(8): system.factories


Regards,
Frank


Top
   
PostPosted: Fri Sep 07, 2012 2:27 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Hi, Frank,

I tried your example, and actually, you found a bug. :cry:

I filed the bug into our Jira system as CDS-30637, and fixed it.

The fix is currently scheduled for the next service pack (V3.5 SP2).

Thank you for your feedback!

Markus Schaber

_________________
Check out the CODESYS store: http://store.codesys.com/

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


Top
   
PostPosted: Sun Sep 09, 2012 9:31 am 
Offline
User avatar

Joined: Mon Jun 06, 2011 8:42 am
Posts: 47
Hi Marcus,

I will be looking forward to try out the feature in SP2 then.

It seems that there will be a lot of new features in the script engine in that version. The documentation in SP1 Patch 2 gives a taster, since it includes documentation for some of the objects that will first be available in SP2 ;) Is SP2 still scheduled to be released during december 2012?

Regards,
Frank


Top
   
PostPosted: Mon Sep 17, 2012 2:48 pm 
Offline
Frequent User
Frequent User
User avatar

Joined: Fri Mar 18, 2011 4:12 pm
Posts: 266
Yes, the current schedule for V3.5 SP2 is still mid-of-december 2012.

_________________
Check out the CODESYS store: http://store.codesys.com/

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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 guests


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