J1939 Codesys 3.5 with a custom / local module

benjamindp
2021-06-27
2021-06-27
  • benjamindp - 2021-06-27

    Hello Guys,

    well I have a problem with Codesys 3.5 using an IFM Controller CR 1058 and a custom developed J1939 Module.
    Modules are from Data Panel
    It looks like, if Codesys talks with another CAN-ID as the module have.

    Maybe we have some J1939 experts here...

    I want to add an local J1939 Device on the ECU-Manager and want to force some mapped Values to see if the module works right (e.q. set Output / read Input) I've already add the Manager and a ECU. Then I add a custom PGN (61408) with 8 SPN for each Byte. On the first Byte there is a pointer Value (e.g. 81) other 7 Byte for some values or configuration bits. I've add some screen may this helps.

    I add the PGN and SPN as you see in the screen. Then compile > log in > run the application. I use a PEAK (pcanview) to see the CAn communication.

    It looks like Codesys or my added ECU is talking on another CAN-ID like the Module have this is the reason the module didn't work...


    Some have any Idea's how to setup the right CAN-ID ? I tried to change values in the general tab, but I didn't find the right CAN-ID here?

    Are there any other ways to send this PGN / SPN directly with the J1939 Lib? Some example would be helpful

    May some of you can help me with this problem...
    Normally the module manufacturer should help, but they normally didn't use Codesys.

    Thank you in advance

    Best regards
    Benjamin

     
  • benjamindp - 2021-06-27

    I found some other threads about J1939 communication here but they always try to speak with a default J1939 PGN / SPN and not with a custom module.

     
  • benjamindp - 2021-06-27

    Controller Source adress is 0 btw.

     

Log in to post a comment.