Ggarcia - 2018-08-31

Hello, I am working in a project where I need to use a raspberry pi 3 as PLC, working with codesys V3.5 SP13, and the raspberry pi should work as master node on the CANbus protocol.

I already try to find something that could help me understand how I should program the raspberry using structured text, to do the following:

  • Send and recieve some commands.

The problem is, I only could find files or videos where they explain how to setup the CANopen device or how to use some type of funtion from some librarie that I can't find, in other words, I can't find anything relevant that could help me understand how I can recieve a message by CANbus and how I can send a message.

As example, the RPI send the comand in 452Ba3 hexadecimal to the slave 1, that means "send me the peak values of your sensors ", and the slave will send to the master the values and the master would save this values in a .csv file.