CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Jul 19, 2018 3:24 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Jul 07, 2018 5:51 am 
Offline

Joined: Wed Jul 04, 2018 6:44 am
Posts: 1
Hello, everyone.

I'm new to the world of CoDeSys, but not to Embedded programming.

I have found some examples of using J1939 protocol, but when reading a message, it expects an address (PGN/SA is "packaged" into the address)

My controller (TTControl, Hydac International, HY-TTC 32-CD-00-000) has dual CAN bus.

What I need to do is program it to act as a CAN passthrough device and for certain messages change a byte or two (I need to make a joystick "pretend" to be a pedal).

I can receive messages from particular devices (CAN ID) and can modify the message and send it on the bus, but I cannot receive a raw message (the full 29 bit ID plus up to 8 bytes of data or something close to that) so if it's not a message of interest, I could pass it through.

I would appreciate some sample code and a library referenced.

The CoDeSys version is 2.3

Thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

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:  
cron
Powered by phpBB® Forum Software © phpBB Limited