<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to setup a gateway (with CAN)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/893aa108c6/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/893aa108c6/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/893aa108c6/</id><updated>2020-07-17T12:01:53.121000Z</updated><subtitle>Recent posts to How to setup a gateway (with CAN)?</subtitle><entry><title>How to setup a gateway (with CAN)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/893aa108c6/?limit=25#cb8b" rel="alternate"/><published>2020-07-17T12:01:53.121000Z</published><updated>2020-07-17T12:01:53.121000Z</updated><author><name>e60newbie</name><uri>https://forge.codesys.com/u/e60newbie/</uri></author><id>https://forge.codesys.com1efab3b501e6812a932f196ae3fa9d0bf8692107</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hy,&lt;br/&gt;
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.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to setup a gateway (with CAN)?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/893aa108c6/?limit=25#5e91" rel="alternate"/><published>2020-02-27T14:08:05.894000Z</published><updated>2020-02-27T14:08:05.894000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com9db1c2bd2ec5ba68134d6bcb8a42d3683e47c5c5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; hedmant&lt;/p&gt;
&lt;p&gt;I'm trying to setup a gateway with CAN to be able to download a Codesys application to an ECU. However, no success yet...&lt;/p&gt;
&lt;p&gt;ECU: that is used is an TTC580.&lt;br/&gt;
CAN adapter: Peak CAN (Dont know the model now)&lt;/p&gt;
&lt;p&gt;This is the steps that I tried with.&lt;/p&gt;
&lt;p&gt;1) flash the ECU with codesys_rts.hex (version 1.6.1.0). The download works fine with TTCDownloader tool.&lt;/p&gt;
&lt;p&gt;2) configure Gateway.cfg in Program Files(x86)/3S CODESYS/GatewayPLC with following values&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[ComponentManager]&lt;/span&gt;
&lt;span class="na"&gt;Component.1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpEventMgr&lt;/span&gt;
&lt;span class="na"&gt;Component.2&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAATypes&lt;/span&gt;
&lt;span class="na"&gt;Component.3&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAACallback&lt;/span&gt;
&lt;span class="na"&gt;Component.4&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAAMemBlockMan&lt;/span&gt;
&lt;span class="na"&gt;Component.5&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAATick&lt;/span&gt;
&lt;span class="na"&gt;Component.6&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAATickUtil&lt;/span&gt;
&lt;span class="na"&gt;Component.7&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpPCANBasicDrv&lt;/span&gt;
&lt;span class="na"&gt;Component.8&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpBlkDrvCANClient&lt;/span&gt;
&lt;span class="na"&gt;Component.9&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAASdoClient&lt;/span&gt;
&lt;span class="na"&gt;Component.10&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;CmpCAACanL2&lt;/span&gt;
&lt;span class="na"&gt;...&lt;/span&gt;
&lt;span class="k"&gt;[CmpBlkDrvCanClient]&lt;/span&gt;
&lt;span class="na"&gt;CycleTimeMs&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;NumChannels&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;2           ; Number of block driver instances&lt;/span&gt;
&lt;span class="na"&gt;0.Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;BlkDrvCanClient1 ; Name of this driver instance&lt;/span&gt;
&lt;span class="na"&gt;0.NetId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0               ; CANbus Network Id (0..n)&lt;/span&gt;
&lt;span class="na"&gt;0.Baudrate&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;500          ; CANbus Baudrate in kbit/s&lt;/span&gt;
&lt;span class="na"&gt;0.NodeId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;2              ; Unique NodeId of the Gateway&lt;/span&gt;
&lt;span class="na"&gt;0.BlockTransfer&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1       ; Use block transfer for higher performance&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;3) stop and start the gateway via CODESYS Gateway systray&lt;/p&gt;
&lt;p&gt;4) Scan the network in Gateway in codesys.&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;Does anyone have an idea and can point me in the right direction?&lt;/p&gt;
&lt;p&gt;BR, Tony&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>