<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/</id><updated>2020-04-03T20:11:53.449000Z</updated><subtitle>Recent posts to SysSem and SysFile warnings and errors</subtitle><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#d3ab" rel="alternate"/><published>2020-04-03T20:11:53.449000Z</published><updated>2020-04-03T20:11:53.449000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comb1a82ca7208af59eab93fe7d97da7e01e5a73773</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CANL2 = CAN Layer 2 = messages over CAN without attached interpretation of IDs and content.&lt;br/&gt;
&lt;a href="https://www.kvaser.com/can-protocol-tutorial/" rel="nofollow"&gt;https://www.kvaser.com/can-protocol-tutorial/&lt;/a&gt; for example.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#5d50" rel="alternate"/><published>2020-04-03T19:54:13.601000Z</published><updated>2020-04-03T19:54:13.601000Z</updated><author><name>moshtaraq</name><uri>https://forge.codesys.com/u/moshtaraq/</uri></author><id>https://forge.codesys.com3653a28b3edfd0a7c0c1947ce1a5bde63038a38a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The problem I'm facing is the following: I'm used to Arduino programming and having thousands of examples and documentation is very basic and understandable to beginners and experts. I can't for the life of me find any easy documentation on anything I'm doing so I'm pushed into experimenting. If I google canl2 I find nothing that helps me in the slightest.... If I google something for an arduino project (even a super complicated one) I find hundreds of sites that have examples and tutorials on how to do things.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#c215" rel="alternate"/><published>2020-04-03T19:39:34.784000Z</published><updated>2020-04-03T19:39:34.784000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comfd2e5e368950d0f5e7803012fc68d81ad5602887</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CANL2 is just raw CAN, without an application protocol on top like CANopen, DeviceNet or J1939 (a.k.a. NMEA2000 for most parts). Your reasoning is absolutely sound, but I advise you first to study available options and understand the principles behind their architecture and then choose. Experimenting is a beautiful thing, as long you understand what you are doing.&lt;br/&gt;
You typically use CANopen to make a network, so that devices interoperate in a specific way. CANopen provides solutions to a variety of problems, but if you do not understand what it solves, and most what it does NOT solve, you are doomed.&lt;br/&gt;
Network means at least two nodes support CANopen (at least some times, I usually make a CANopen slave to use Object Dictionary for configuration...). If you really want a CANopen slave, and have it working with SYNC, you could instantiate a CANopen manager (Codesys for master) under the same CANbus node as your slave.&lt;/p&gt;
&lt;p&gt;Final note: Inhibit time is in hundreds of microseconds, event timer is in milliseconds, so "same value" means a 10-fold difference.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#d0b0" rel="alternate"/><published>2020-04-03T18:59:59.074000Z</published><updated>2020-04-03T18:59:59.074000Z</updated><author><name>moshtaraq</name><uri>https://forge.codesys.com/u/moshtaraq/</uri></author><id>https://forge.codesys.com1b5e90ef870472b31086590ba522c5e4fcdee709</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I thought it would've given me more options/flexibility. This is a tiny part for my bachelor thesis so I thought using a normalized and well known piece of software would add value to my thesis. I looked into the CANL2Config but that seems way to complicated from what I can find in the manual from Topcon. If I google it I get 0 results btw.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#a9a6" rel="alternate"/><published>2020-04-03T18:49:59.265000Z</published><updated>2020-04-03T18:49:59.265000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comc9c5e29f7c1f32c89278163226bb370b5ede1b95</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;...if it is the only CANopen device, why would you even set up that as CANopen slave? There are plenty of valid reasons, but what are &lt;em&gt;yours&lt;/em&gt;?&lt;br/&gt;
You can just use CANL2ConfigX children (see target documentation for that), if you do not need a slave. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#10f6" rel="alternate"/><published>2020-04-03T17:45:15.797000Z</published><updated>2020-04-03T17:45:15.797000Z</updated><author><name>moshtaraq</name><uri>https://forge.codesys.com/u/moshtaraq/</uri></author><id>https://forge.codesys.com4ddc12fcadf2d532ed3b31e4f20cd9613972a751</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've read the different types/modes but none seem to fit my needs? The Opus display is the only CANopen device in our network so I have no idea how to implement that synchronous mode. I set both parameters on the same value but still 181 gets through 5x more than 281.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#283f" rel="alternate"/><published>2020-04-03T17:21:36.341000Z</published><updated>2020-04-03T17:21:36.341000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.comb8e6cc84103bf23ff64d21244bcbe41dcaadc361</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You are probably using asynchronous mode (254 or 255), usually they are "on event", where event is usually logical OR between "on any mapped variable change" and "on Event Timer event" and "manual triggering" (typically for 254). "Inhibit time" means "do not send me more than 1 message over an Inhibit Time interval". I do not think that Codesys stack support manual triggering.&lt;br/&gt;
You could, in theory, set the same interval (beware of different units!) for both.&lt;br/&gt;
For a more robust solution, you could also look into synchronous mode (again, study CANopen: the CiA 301 document is free, just register on their site, or look at &lt;a href="http://www.byteme.org.uk/canopenparent/" rel="nofollow"&gt;http://www.byteme.org.uk/canopenparent/&lt;/a&gt; for a much shorter explanation).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#a388" rel="alternate"/><published>2020-04-03T17:10:06.428000Z</published><updated>2020-04-03T17:10:06.428000Z</updated><author><name>moshtaraq</name><uri>https://forge.codesys.com/u/moshtaraq/</uri></author><id>https://forge.codesys.com0000aab8141b29aabddb30a1ff4c5d9e959b2829</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've been playing around a bit with sending and receiving messages over CAN. For my project I need to cyclically send some messages to a couple receivers. When I try to send more than one message (more than one ID) cyclically then 1 message (ID181) is sent 10 times and the other (ID281) 1 time. I know that 181 has a higher priority but when I configure it to send both messages every second, I expect it to send both every second. But only 181 gets through. What parameters do I need to put in 'Event timer',  'Inhibit timer' etc. for it to send both, and eventually about 10 messages, on fixed intervals?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25&amp;page=1#288b" rel="alternate"/><published>2020-03-31T15:19:23.144000Z</published><updated>2020-03-31T15:19:23.144000Z</updated><author><name>sgronchi</name><uri>https://forge.codesys.com/u/sgronchi/</uri></author><id>https://forge.codesys.com510bd6e5973ab3b9797a30ee10671eb47d96aac8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Should be 0x701 with payload 00, not 10 and it is the CANopen bootup message.&lt;br/&gt;
0x0 - 01 00 is NMT start all (remember some post above?). Really, Wikipedia page (https://en.m.wikipedia.org/wiki/CANopen) is helpful here.&lt;/p&gt;
&lt;p&gt;The project you posted compiles with 0 warnings, 0 errors. If you need help you need also to post at least a snippet where those warnings occur.&lt;/p&gt;
&lt;p&gt;Your RPDO1 has 8 bytes, not 4.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SysSem and SysFile warnings and errors</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/832bc92b74/?limit=25#18d4" rel="alternate"/><published>2020-03-31T15:04:47.526000Z</published><updated>2020-03-31T15:04:47.526000Z</updated><author><name>moshtaraq</name><uri>https://forge.codesys.com/u/moshtaraq/</uri></author><id>https://forge.codesys.com41f533f700154d7ae95ae2a950e1ba5b7556128b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Looks like I cheered to soon....&lt;br/&gt;
I get warnings:&lt;br/&gt;
C0373 'Application.GVL.TPDO_byte_12' is not a valid assignement target (byte_34,56 and 78 also)&lt;br/&gt;
And an error from EMCY service: PDO not processed due to length error (PDO receiving CANopen device detected a mismatch of the PDO length)&lt;br/&gt;
I sent 4 bytes on ID 201 and the PDO has 4 bytes so I don't get it...&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>