Using PEAK CAN PCIe card (IPEH-004040) with Codesys Control RTE V3

siggi95
2021-02-25
2021-03-03
  • siggi95

    siggi95 - 2021-02-25

    Hello,
    I want to use PEAK CAN PCIe card (IPEH-004040) with Codesys Control RTE V3 on Windows 10 PC.
    Card with driver is installed properly.
    I configured codesysControl.cfg in componentmanager section with Component.3=CmpPCANBasicDrv.
    but CANbus shows error.
    Device log contains error messages :
    - Update configuration failed from driver
    - NetID1: No CAN driver found (error code: 16#27E2)

    How do I have to configure/install PEAK CAN hardware for usage wtih Codesys Control RTE V3 on a Windows PC?

    Best regards and thanks
    Siggi95

     
  • eschwellinger

    eschwellinger - 2021-02-25

    do not use this Driver...SJA ist needed on RTE

     

    Last edit: eschwellinger 2021-02-25
  • siggi95

    siggi95 - 2021-03-01

    thanks,
    but it still don't work.
    I installed the can driver provided by PEAK.
    it seems not to find a SJA chip but 4 sub devices.
    The peak can PCIe card provides 4 CAN ports and FD ability.

    Best regards and thanks in advance
    Siggi95

    **plclog.csv*****
    2021-03-01T07:31:15.332Z, 0x00000001, 1, 0, 10, Dynamic: <cmp>CmpSJACanDrv</cmp>, <id>0x00005f02</id> <ver>3.5.16.0</ver>
    ...

    2021-03-01T07:31:17.637Z, 0x00005f02, 1, 0, 4660, CmpSJACanDrv: AddChipDesc: VEN:1c,Dev:13,SubVen:1c,SubDev:14
    2021-03-01T07:31:17.637Z, 0x00005f02, 1, 0, 4660, CmpSJACanDrv: AddChipDesc: VEN:1c,Dev:13,SubVen:1c,SubDev:14
    2021-03-01T07:31:17.637Z, 0x00005f02, 1, 0, 4660, CmpSJACanDrv: AddChipDesc: VEN:1c,Dev:13,SubVen:1c,SubDev:14
    2021-03-01T07:31:17.637Z, 0x00005f02, 1, 0, 4660, CmpSJACanDrv: AddChipDesc: VEN:1c,Dev:13,SubVen:1c,SubDev:14
    2021-03-01T07:31:17.683Z, 0x00000124, 1, 0, 0, Provider CmpOPCUAProviderIecVarAccess with Version 0x3051028 registerd at the OPC UA server.
    2021-03-01T07:31:17.719Z, 0x00000018, 1, 0, 1, Setting router <instance>0</instance> address to

    (0000:0097)

    2021-03-01T07:31:17.719Z, 0x00000018, 1, 0, 1, Setting router <instance>1</instance> address to
    (0001)

    2021-03-01T07:31:17.719Z, 0x00000018, 1, 0, 1, Setting router <instance>2</instance> address to
    (2ddc:c0a8:3801)

    2021-03-01T07:31:17.719Z, 0x00000018, 1, 0, 1, Setting router <instance>3</instance> address to
    (0000)

    2021-03-01T07:31:17.802Z, 0x00005f02, 4, 1, 0, * ERROR: CmpSJACanDrv: Error Check basic mode failed. Set DisableSjaChipCheck=1?
    2021-03-01T07:31:17.802Z, 0x00005f02, 4, 1, 0,
    ERROR: CmpSJACanDrv: Error No CAN Chip detected.
    2021-03-01T07:31:17.802Z, 0x00001021, 4, 16, 18, * ERROR: <p0>1</p0><p1>10210</p1>
    2021-03-01T07:31:17.802Z, 0x00000012, 4, 1, 1,
    ERROR: Update configuration failed from driver <iodriver></iodriver>
    **plclog.csv*****

     
  • eschwellinger

    eschwellinger - 2021-03-01

    do not install the Peak driver but the CODESYS driver here
    in the RTE directory: SysDrv3S\SysDrv3S.inf

    and additional
    C:\ProgramData\CODESYS\CODESYSControlRTEV3\CODESYSControl_User.cfg.

    [ComponentManager]
    Component.1=CmpDrvSchedulerAPIC
    .
    .
    Component.x=CmpSJACanDrv

    add the component, then it should work.

     

    Last edit: eschwellinger 2021-03-01
  • siggi95

    siggi95 - 2021-03-01

    Hallo,

    der Treiber in C:\Program Files\CODESYS\CODESYS Control RTE3\SysDrv3S
    passt nicht zur CAN-Karte PEAK CAN PCIe (IPEH-004040).
    Wird diese Karte von der Codesys RTE (3.5.16.40, Windows 10 64Bit) unterstΓΌtzt?

     
  • eschwellinger

    eschwellinger - 2021-03-01

    could you send the hw id's (windows device manager) maybe it is a new version/release

     
  • siggi95

    siggi95 - 2021-03-02

    Hello,

    network controller\details:
    hw ids:
    PCI\VEN_001C&DEV_0013&SUBSYS_0014001C&REV_01
    PCI\VEN_001C&DEV_0013&SUBSYS_0014001C
    PCI\VEN_001C&DEV_0013&CC_028000
    PCI\VEN_001C&DEV_0013&CC_0280

    compatible ids:
    PCI\VEN_001C&DEV_0013&REV_01
    PCI\VEN_001C&DEV_0013
    PCI\VEN_001C&CC_028000
    PCI\VEN_001C&CC_0280
    PCI\VEN_001C
    PCI\CC_028000
    PCI\CC_0280

    if you need more information, please let me know.
    thank you

     
  • eschwellinger

    eschwellinger - 2021-03-02

    sorry I was wrong, you should use the inf file from RTIOwdmGeneric

     
  • siggi95

    siggi95 - 2021-03-03

    Hello,
    sorry,
    but where can I find this driver and how it is to configured in CODESYSControl_User.cfg?

     
  • eschwellinger

    eschwellinger - 2021-03-03

    Hi
    sorry my fault to point into the wrong direction:
    C:\Program Files\CODESYS\CODESYS Control RTE3\W2K_XP_Drivers\Peak_CAN
    and in CODESYSControl_User.cfg

    [ComponentManager]
    Component.1=CmpDrvSchedulerAPIC
    Component.2=CmpCodeMeter_legacy
    Component.3=CmpSJACanDrv

     
  • siggi95

    siggi95 - 2021-03-03

    Thank you very much,
    but unfortunately it still doesn't work.
    I tried to install the driver under Windows 10 (64Bit) by using Windows device manager in C:\Program Files\CODESYS\CODESYS Control RTE3\W2K_XP_Drivers\Peak_CAN.
    But Windows doesn't find a matching driver in this directory!
    This directory contains only 3 files:
    - peak_can_pci.cat
    - Peak_Can_Pci.inf
    - RTIOwdmGeneric.sys
    It is a Windows 10 64Bit system. Maybe a 32Bit Windows is mandatory?

    Thanks in advance
    Regards Siggi95

     
  • eschwellinger

    eschwellinger - 2021-03-03

    It should work on the driver installation but you need to confirm:
    'Do you really want to install this driver even if it does not match the hardware" -> please confirm
    if this does not work ->CODESYS Store - bug report - we need to check on your device

     
  • siggi95

    siggi95 - 2021-03-03

    Hi,
    it don't work - win device manager: device could not be started. Code 10, IO device is wrong configured or configuration parameter for driver wrong.

    How does bug report and check on our device work?

     
  • eschwellinger

    eschwellinger - 2021-03-03

    Hi,
    Write to CODESYS Store (store.codesys.com) my question - bug Report..

     

Log in to post a comment.