<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/0727425602/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/0727425602/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/0727425602/</id><updated>2020-02-27T21:47:39.430000Z</updated><subtitle>Recent posts to How to send data via Can</subtitle><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#fe50" rel="alternate"/><published>2020-02-27T21:47:39.430000Z</published><updated>2020-02-27T21:47:39.430000Z</updated><author><name>Waindude</name><uri>https://forge.codesys.com/u/waindude/</uri></author><id>https://forge.codesys.comd64fe8a10a4970d2551656c43b44c2d10d3a18fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The forum is PLCS.net, they are a great bunch of guys.  They have several hundred thousand members, and most are very helpful.  When you post a question or comment, there is usually an answer in a few hours, unlike here.  It would be good to adopt thier attitude on this forum.  &lt;/p&gt;
&lt;p&gt;I was suprised by the lack of help on this forum.  I actually had help from a fellow in Australia ( I am in Canada), he took my code, ran it on his platform and tested it and sent it back to me with suggestions.  All just to help someone out in need.&lt;/p&gt;
&lt;p&gt;I am not bashing this forum, because I know the premis is good, but people definately were more helpful with a Codesys problem on a general PLC forum versus this one that is dedicated to Codesys.&lt;/p&gt;
&lt;p&gt;Hopefully my comments won't get me banned, as I would like to continue to use this forum, but everyone should loosen up a bit here.&lt;/p&gt;
&lt;p&gt;Waindude&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#b893" rel="alternate"/><published>2020-02-27T21:47:37.946000Z</published><updated>2020-02-27T21:47:37.946000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comc79bff47197e9706030582332ccf5901ce0a840c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Which other forum?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#39a9" rel="alternate"/><published>2020-02-27T21:47:33.786000Z</published><updated>2020-02-27T21:47:33.786000Z</updated><author><name>Waindude</name><uri>https://forge.codesys.com/u/waindude/</uri></author><id>https://forge.codesys.combd8ecbdedaf37faf4d52d88e10c71aee462ccd29</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Well after many hours of fishing around in my programs, I was finally able to get my network variable lists to work.  I actually had a bunch of help from a fellow on another PLC forum who is from Australia.&lt;/p&gt;
&lt;p&gt;Waindude.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#7f2f" rel="alternate"/><published>2020-02-27T21:47:32.294000Z</published><updated>2020-02-27T21:47:32.294000Z</updated><author><name>Waindude</name><uri>https://forge.codesys.com/u/waindude/</uri></author><id>https://forge.codesys.coma82627d67a272ea25e8a9d6ebbe2465b98c531a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone, I have been trying to set up my Can connection, I have attached the two files I have created.  I am using an IFM CR0232 PLC and a CR1080 display.  I have created Network Variables lists in both.  Can anyone have a look at the files and see where I am going wrong.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br/&gt;
Waindude&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=293" rel="nofollow"&gt;SuncorTROPDMaster 6.pro &lt;span&gt;&lt;span&gt;[321.16 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=292" rel="nofollow"&gt;SuncorCR0232Slave.pro &lt;span&gt;&lt;span&gt;[247.63 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#0687" rel="alternate"/><published>2020-02-27T21:47:28.133000Z</published><updated>2020-02-27T21:47:28.133000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com5088068b9c657167fa43c3fed9457c51b5c8d81f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It will be easy to have array function block instead of doing it many times.I will reduce your time for debugging also.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#bbd1" rel="alternate"/><published>2020-02-27T21:47:26.656000Z</published><updated>2020-02-27T21:47:26.656000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.com357525837dc9933fca033b05c013696918d1391f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;PS not sure why you have a case statement here? Also you notice that you repeated code over and over just changed the variable. In other words you wrote if this doesn't equal that then true. That is a perfect example for encapsulation by putting it in a FB for this. Input the value and compare in the FB store the old value and set the output? How are you doing with this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#881d" rel="alternate"/><published>2020-02-27T21:47:22.488000Z</published><updated>2020-02-27T21:47:22.488000Z</updated><author><name>Waindude</name><uri>https://forge.codesys.com/u/waindude/</uri></author><id>https://forge.codesys.com7f9711a802c782a8f19783183be8651a90c6c32d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Never mind, I see that they are supported.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#2b4a" rel="alternate"/><published>2020-02-27T21:47:20.976000Z</published><updated>2020-02-27T21:47:20.976000Z</updated><author><name>Waindude</name><uri>https://forge.codesys.com/u/waindude/</uri></author><id>https://forge.codesys.com0ef0637a3603a2e3e817b9bf203033aa90cc3f2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Spfeif, so network variables are supported by ifm platforms then?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#b1eb" rel="alternate"/><published>2020-02-27T21:47:16.753000Z</published><updated>2020-02-27T21:47:16.753000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comd32970c5274329188ca4bd62430b5ad0b48739e2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Take a look in the CR0032 or any other PLC under the Target settings. Because you are new to PLCs the easiest way for you is use net variables. Look up under help and network variables. It uses a CoDeSys communication that is seamless.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to send data via Can</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0727425602/?limit=25#c752" rel="alternate"/><published>2020-02-27T21:47:15.234000Z</published><updated>2020-02-27T21:47:15.234000Z</updated><author><name>Waindude</name><uri>https://forge.codesys.com/u/waindude/</uri></author><id>https://forge.codesys.com005c1be9556463ef5fc754b8b1a6360abd29e1e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I am new to programming in Codesys, I am using a IFM CR1080 PDM display and a IFM CR0232 controller.  I am confused as how to program the communication between the two, the information is very scarce in the manual.  &lt;/p&gt;
&lt;p&gt;How are the variables on the controller called from the display?  I am not a structured text programmer at all and I am trying to figure out how this is done using the templates.  Can someone explan how they are doing this with the code below?&lt;/p&gt;
&lt;p&gt;I have the following code on the controller:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;(***********assign received input variable to the PLC variable********************)&lt;/span&gt;
&lt;span class="n"&gt;CASE&lt;/span&gt; &lt;span class="n"&gt;HANDLE&lt;/span&gt; &lt;span class="n"&gt;OF&lt;/span&gt;
    &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;KpTemperature_H1&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;DWORD_TO_BYTE&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;INPUT_VALUE&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="c"&gt;(****create event for async transmition*****)&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;KpTemperatureOld_H1&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;KpTemperature_H1&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;KpTemperatureOld_H1&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;KpTemperature_H1&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;EventId100&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;KdTemperature_H2&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;DWORD_TO_WORD&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;INPUT_VALUE&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="c"&gt;(****create event for async transmition*****)&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;KdTemperatureOld_H2&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;KdTemperature_H2&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;KdTemperatureOld_H2&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;KdTemperature_H2&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;EventId100&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;Temperature_H3&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;INPUT_VALUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="c"&gt;(****create event for async transmition*****)&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;TemperatureOld_H3&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;Temperature_H3&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;TemperatureOld_H3&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;Temperature_H3&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;EventId100&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;KpPressure_H4&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;DWORD_TO_BYTE&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;INPUT_VALUE&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="c"&gt;(****create event for async transmition*****)&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;KpPressureOld_H4&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;KpPressure_H4&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;KpPressureOld_H4&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;KpPressure_H4&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;EventId101&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;KdPressure_H5&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;DWORD_TO_WORD&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;INPUT_VALUE&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
        &lt;span class="c"&gt;(****create event for async transmition*****)&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;KdPressureOld_H5&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;KdPressure_H5&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;KdPressureOld_H5&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;KdPressure_H5&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;EventId101&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;Pressure_H6&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;INPUT_VALUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="c"&gt;(****create event for async transmition*****)&lt;/span&gt;
        &lt;span class="n"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;PressureOld_H6&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;Pressure_H6&lt;/span&gt; &lt;span class="n"&gt;THEN&lt;/span&gt;
            &lt;span class="n"&gt;PressureOld_H6&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;Pressure_H6&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
            &lt;span class="n"&gt;EventId101&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;END_IF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_CASE&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry></feed>