I'm trying to setup a gateway with CAN to be able to download a Codesys application to an ECU. However, no success yet...
ECU: that is used is an TTC580.
CAN adapter: Peak CAN (Dont know the model now)
This is the steps that I tried with.
1) flash the ECU with codesys_rts.hex (version 1.6.1.0). The download works fine with TTCDownloader tool.
2) configure Gateway.cfg in Program Files(x86)/3S CODESYS/GatewayPLC with following values
[ComponentManager]Component.1=CmpEventMgrComponent.2=CmpCAATypesComponent.3=CmpCAACallbackComponent.4=CmpCAAMemBlockManComponent.5=CmpCAATickComponent.6=CmpCAATickUtilComponent.7=CmpPCANBasicDrvComponent.8=CmpBlkDrvCANClientComponent.9=CmpCAASdoClientComponent.10=CmpCAACanL2...[CmpBlkDrvCanClient]CycleTimeMs=1NumChannels=2 ; Number of block driver instances0.Name=BlkDrvCanClient1 ; Name of this driver instance0.NetId=0 ; CANbus Network Id (0..n)0.Baudrate=500 ; CANbus Baudrate in kbit/s0.NodeId=2 ; Unique NodeId of the Gateway0.BlockTransfer=1 ; Use block transfer for higher performance
3) stop and start the gateway via CODESYS Gateway systray
4) Scan the network in Gateway in codesys.
No success when following this procedure and the Peak CAN-adapter does not even blink. Is there some kind of driver needed in codesys to get this to work?
Does anyone have an idea and can point me in the right direction?
BR, Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hy,
with the TTC580 you need to communicate with Ethernet. I don´t remember that you can flash the Application over CAN by the 580? We use the TTC540 without Ethernet and I can confirm that works fine with the Peak with the same settings above.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: hedmant
I'm trying to setup a gateway with CAN to be able to download a Codesys application to an ECU. However, no success yet...
ECU: that is used is an TTC580.
CAN adapter: Peak CAN (Dont know the model now)
This is the steps that I tried with.
1) flash the ECU with codesys_rts.hex (version 1.6.1.0). The download works fine with TTCDownloader tool.
2) configure Gateway.cfg in Program Files(x86)/3S CODESYS/GatewayPLC with following values
3) stop and start the gateway via CODESYS Gateway systray
4) Scan the network in Gateway in codesys.
No success when following this procedure and the Peak CAN-adapter does not even blink. Is there some kind of driver needed in codesys to get this to work?
Does anyone have an idea and can point me in the right direction?
BR, Tony
Hy,
with the TTC580 you need to communicate with Ethernet. I don´t remember that you can flash the Application over CAN by the 580? We use the TTC540 without Ethernet and I can confirm that works fine with the Peak with the same settings above.