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 Wed Apr 24, 2019 6:54 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 

Who else would find this useful
Poll ended at Fri Jun 20, 2014 3:36 am
Yes 0%  0%  [ 0 ]
No 0%  0%  [ 0 ]
Don't Care 0%  0%  [ 0 ]
Total votes: 0
Author Message
PostPosted: Sat Mar 22, 2014 3:36 am 
Offline

Joined: Mon Sep 26, 2005 2:16 pm
Posts: 23
Is it possible to get access (Python/ Other) to CANbus Mapping information at compile time in Codesys 3.5?

In our case, we would port it to a Vector(CANalyzer) .DBC file, but it could be ported to any 3rd party format, but csv, xml would also be useful.
There are a number of 3rd party vendors that can use such files directly.
The following and many others use .DBC
1. SCADA- Matricon/Honeywell
2. CAN Bus analyzer: Vector CANtec,
3. Telemtry: LHP Telematics
4. Data Acquisition: HBM

It could also used to create customer documentation (PDF)

Perhaps something similar for EtherCAT, UDP Net Var etc...


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


Top
   
PostPosted: Mon Mar 24, 2014 12:58 pm 
Offline
Frequent User
Frequent User
User avatar

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

Implementing a script interface for the IO mapping configuration is one of the improvements in our ToDo-List (CDS-37756), but it is not scheduled yet.

On the other hand, CODESYS already has a feature which may be helpful for your goal: For Devices in the context menu, there are two commands (see the attached screenshot) to allow the import and export of IO Mappings in CSV format.

Those commands can also be triggered by python scripts, for example:
Code:
dev = projects.primary.find("Device")[0]
system.commands["device", "exportcsv"].execute("D:\\DeviceExport.csv", str(dev.handle), str(dev.guid))


The parameters are filename, projecthandle, objectguid, each of them as a string. For the import, the command is ["device", "importcsv"].

HTH, Markus

PS: The execute() function on the commands is intentionally not documented, but having a "backdoor" in cases like yours where the scripting API is missing functionality are exactly the reasons why we implemented it.


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

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

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


Top
   
PostPosted: Fri Jan 16, 2015 10:46 pm 
Offline

Joined: Mon Sep 26, 2005 2:16 pm
Posts: 23
Thanks...

This is very helpful, however the output contains no COB ID Information or position in message.
Can you suggest some way of extracting it (Some .xml relational structure or something???


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


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

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