Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

CANOpen

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
nicofer

Bascom Member



Joined: 01 May 2013
Posts: 83
Location: GRJ

southafrica.gif
PostPosted: Fri Jun 10, 2016 11:30 am    Post subject: CANOpen Reply with quote

hi

A year or so ago there was a post regarding Bascom AVR and CANOPEN

Well - depending on what you need to do it is quite possible and very easy to get working.

I have a few boards with Can128 , used as inputs and outputs , in a Festo and Schneider PLC system running CODESYS .

One need to create a XX.EDS file with the configuration of the board so best is to start with a similar type of product and edit it for own use and need to 'clone ' an existing user / manufacturer ID , for development or private use .

The idea is not to implement a full CANopen stack - or use it in safety critical devices , but at least the basic objects to control the board and get data to and from it.
Once the node is activated with a few commands , the data is sent as required. It can even be active after sw-on so then you do not even need
to have the node activation code to start sending / receiving data .

It is also then very easy to expand and add more CANOPEN functions or options as needed .


We use it as an absolute magnetic encoder with a AS5600 and also for 4-20 mA input and valve output - incl PWM , 8 nodes running Bascom with 3 Schneider VFD units , 11 nodes total in the one system . All that with a 4ms update rate

The can implementation of Bascom AVR make it super easy to do this.





(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
JSEDDY

Bascom Member



Joined: 30 Apr 2008
Posts: 21
Location: Edmonton

canada.gif
PostPosted: Fri Sep 11, 2020 12:38 pm    Post subject: Reply with quote

I seem to be in a similar place with a string of downhole boards, one of which I have to upgrade.

The bus master is a little dsPic with a Canopen stack in it. The docs I have are in C.

I can output my CanMobs onto the bus with Cansend, and I get an ACK back from the bus master.

I have no idea how to get the master to process and forward my data.

So how would I create this ***.EDS file?

_________________
The glue has gone dry
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum