AT90CAN128 (AST-CAN485 board)-based project that interfaces with a Beckhoff PLC via CANopen, controlling 32 PWM outputs using PCA9685 16-channel 12-bit PWM chips.
The CANopen object dictionary is provided as both .od
and .eds
(what
Beckhoff TwinCAT3 expects).
The provided Makefile
and Atmel Studio 7 project should work directly.
A couple tweaks to the Makefile:
1. Change the ARDUINO_ROOT
path to point to where you have it installed
2. Change the COM_PORT
to the appropriate device
Will also allow you to upload using avrdude
like so:
$ make all upload
This repository, in the interests of making a focused and easily compilable
example for the AST-CAN485, includes a vendored copy of canfestival-3-asc
.
It currently corresponds with the changeset 968:1a25f5151a8d
(2018/5/11) from
its bitbucket hg repository.
Located in canfestival/objdictgen
:
The object dictionary editor program, based on wxPython, still runs on Python 2.7. It requires wxPython 3, which is not available via pip.
To get this working with conda:
$ conda create -n canfestival python=2.7 wxpython==3
$ cd canfestival/objdictgen
$ source activate canfestival
$ pythonw objdictedit.py ../../real_objdict.od
Project template canfestival-3-asc repository AST-CAN485 product page AST-CAN485 schematic AST-CAN485 hookup guide