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 Fri Aug 23, 2019 1:36 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 27, 2017 1:55 pm 
Offline

Joined: Wed Jul 06, 2011 10:26 am
Posts: 2
Hi,

I'm trying to create a library to interface the raspberry pi with the Adafruit LSM303 accelerometer and magnetometer board. I can see the device and read the registers using the i2cget command via SSH, I've tried to follow the instructions to create a new device description and library but when I try to add it to a project it shows the red triangle and says "No Driver Found" in the status tab when going online with the PLC. What driver is this referring to? Is this an error in the device description file?

Attachment:
codesys.png


Thanks,
Raymond.


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


Top
   
PostPosted: Wed May 03, 2017 11:34 am 
Offline

Joined: Wed Jul 06, 2011 10:26 am
Posts: 2
Hi Guys,

Manged to get it to work, not sure what the problem was, I ended up deleted the device description and stating again.

Submitted the working library to here:

viewforum.php?f=23


Thanks,
Raymond.


Top
   
PostPosted: Sun Apr 01, 2018 5:42 pm 
Offline

Joined: Wed Mar 28, 2018 7:37 pm
Posts: 1
Hi,

I had the same problem, I think this is because I commented out the line with the Initialize method call in the devdesc.xml.
Uncommenting the line solved the problem for me. So I think Initialize method call should be present even if your FB that extends Raspberry Pi i2c does not implement it.

Code:
<FBInstance basename="$(DeviceName)" fbname="I2CHAT_DI6acDQ6rly">
   <Initialize methodName="Initialize"/>
   <CyclicCall methodname="AfterReadInputs" task="#buscycletask" whentocall="afterReadInputs"/>
   <CyclicCall methodname="BeforeWriteOutputs" task="#buscycletask" whentocall="beforeWriteOutputs"/>
</FBInstance>


BR
Florin


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 8 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