CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Fri May 26, 2017 8:28 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Sample code
PostPosted: Wed Aug 17, 2016 11:42 am 
Offline
User avatar

Joined: Wed Jul 13, 2016 8:32 am
Posts: 7
Location: Nijmegen, NL
Getting started question:
Is there any sample project or tutorial published specifically for BBB. I am looking for a very simple GPIO example showing how to assign available IO to variables. I thought there was something in the store but seemed to be removed?


Top
   
 Post subject: Re: Sample code
PostPosted: Thu Aug 18, 2016 9:58 am 
Offline
User avatar

Joined: Wed Jul 13, 2016 8:32 am
Posts: 7
Location: Nijmegen, NL
I found it. There is a sample installed with the package in ...[user dir]\CODESYS Control for BeagleBone SL\3.5.9.0\Examples\GPIO BeagleBone.project"
However after loading this example and updating I found a lot of errors (600+). It appeared most were from missing Raspberry Pi libs (am I the only one starting from BBB right away without Pi? :lol: )
Now's just 4 left, all related to Filereader:
------ Build started: Application: CODESYS_Control_for_BeagleBone_Black.Application -------
typify code ...
[ERROR] iodrvgpio, 1.0.1.10 (3s - smart software solutions gmbh): DetermineProcessorType [GPIO](Line 5 (Decl)): C0077: Unknown type: 'FileReader'
[ERROR] iodrvgpio, 1.0.1.10 (3s - smart software solutions gmbh): DetermineProcessorType [GPIO](Line 3, Column 1 (Impl)): C0035: Program name, function or function block instance expected instead of 'fr'
[ERROR] iodrvgpio, 1.0.1.10 (3s - smart software solutions gmbh): DetermineProcessorType [GPIO](Line 4, Column 1 (Impl)): C0035: Program name, function or function block instance expected instead of 'fr.GetLine'
[ERROR] iodrvgpio, 1.0.1.10 (3s - smart software solutions gmbh): DetermineProcessorType [GPIO](Line 4, Column 1 (Impl)): C0077: Unknown type: 'FileReader'
Compile complete -- 4 errors, 5 warnings


Any hints?

leo


Top
   
 Post subject: Re: Sample code
PostPosted: Thu Aug 18, 2016 3:55 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1936
Hi,
seems that this example somehow is not the latest version.

1. New Project and select BBB device
2. Plug Device GPIO's
3. add mapping

BR
Edwin


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


Top
   
 Post subject: Re: Sample code
PostPosted: Fri Aug 19, 2016 9:48 am 
Offline
User avatar

Joined: Wed Jul 13, 2016 8:32 am
Posts: 7
Location: Nijmegen, NL
Thanks for the help Edwin, this works.
Also I wasn't aware of the "plug device..." option, the new BBB project comes with an empty mapping

Leo


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