<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/</id><updated>2020-02-27T14:12:14.664000Z</updated><subtitle>Recent posts to Serial communication</subtitle><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#6d86" rel="alternate"/><published>2020-02-27T14:12:14.664000Z</published><updated>2020-02-27T14:12:14.664000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com43ccd78fd0e4ddaf1ab8d3275dedc3a6376f4efb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ask the vendor of your Modbus slave device which Modbus register should be written to and which values are valid.&lt;br/&gt;
Create a channel for this register (or registers) in the Modbus slave.&lt;br/&gt;
Write the "value" to the I/O variable which is created in your IO mapping.&lt;/p&gt;
&lt;p&gt;Easiest is to create a cyclic write channel which updates the output variable cyclically.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#9960" rel="alternate"/><published>2020-02-27T14:12:14.325000Z</published><updated>2020-02-27T14:12:14.325000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com7cb1d6f0f72cbc778bb1d0ffa744a8ab45c101ba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Tim thank you  for your replies, I tried this option but nothing happened, I am searching how to send a command via a channel that establish to my motor...I think that I should send to it by the write register option but i don't know how&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#8d7e" rel="alternate"/><published>2020-02-27T14:12:13.980000Z</published><updated>2020-02-27T14:12:13.980000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comfec01eb1472d47415e99f9a4dd42bb436d62de83</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe the reason is that you don't use the variables in your application. In that case they are not updated by the Modbus I/O driver.&lt;/p&gt;
&lt;p&gt;What you could do, is go to the tab "ModbusGenericSerialSlave I/O mapping" and select: "Enabled 1 (use bus cycle task if not used in any task)". See the lower righthand corner for this setting.&lt;/p&gt;
&lt;p&gt;This causes the I/O driver to update also the variables which are not used in your application.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#5a47" rel="alternate"/><published>2020-02-27T14:12:13.631000Z</published><updated>2020-02-27T14:12:13.631000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com1073d78dcadb5dab624a3f87e22923dfac7ed631</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Can somenone explain me how to use the read offset command in channel configuration of a slave COM port...I think this is my problem, that i don't send write values&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#dda3" rel="alternate"/><published>2020-02-27T14:12:12.428000Z</published><updated>2020-02-27T14:12:12.428000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com2fe9f9d250f7b7a0e5f155a9dee6eab497293b62</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't fully understand what are these channels, is there a similar example because i'm a little confused, my purpose is to send some basic commands i assume in binary mode or in bits...but when i try to run through codesys doesn't recognize the MODBUS slave COM port...&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: error.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1424"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#9414" rel="alternate"/><published>2020-02-27T14:12:12.053000Z</published><updated>2020-02-27T14:12:12.053000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com6ce392000b6abd9b5221d6db13b16c83c09cdbee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;With Modbus communication, you have to add a Modbus COM port to your device. To this COM port you have to add your Modbus serial master and to this master you have to add your Modbus slave device.&lt;br/&gt;
In the slave device you have to specify which variables you would like to read/write. You have to create "channels" for this.&lt;/p&gt;
&lt;p&gt;No programming is needed for this, just configuration.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#a420" rel="alternate"/><published>2020-02-27T14:12:11.701000Z</published><updated>2020-02-27T14:12:11.701000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.com3fab71ce4e0533c35f7ec3a9de2aa60829a7d7c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your reply, well let me tell you what I've tried so far, I made a new project and I put a MODBUS COM and MODBUS Master COM port, then I thought that if I add a MODBUS slave COM port ,I could connect to my motor but I didn't though. Codesys see the MODBUS COM port but deny to communicate with the slave, what is the problem??&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#cdf0" rel="alternate"/><published>2020-02-27T14:12:10.685000Z</published><updated>2020-02-27T14:12:10.685000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com8e3f841d4c650bc397686b5466cb0e7f4c701383</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Add the "use case library" Serial Communication.&lt;br/&gt;
See the help for CAA Libraries &amp;gt; CAA_SerialCom.library. This contains explanations and an example.&lt;/p&gt;
&lt;p&gt;You can also go to the store and download examples:&lt;br/&gt;
&lt;a class="" href="http://store.codesys.com/serial-com.html" rel="nofollow"&gt;http://store.codesys.com/serial-com.html&lt;/a&gt;&lt;br/&gt;
&lt;a class="" href="http://store.codesys.com/serial-com-with-visu.html" rel="nofollow"&gt;http://store.codesys.com/serial-com-with-visu.html&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Serial communication</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c1ff378ba4/?limit=25#2694" rel="alternate"/><published>2020-02-27T14:12:10.343000Z</published><updated>2020-02-27T14:12:10.343000Z</updated><author><name>esse</name><uri>https://forge.codesys.com/u/esse/</uri></author><id>https://forge.codesys.come7d720ad50545866cccb0c06ffd04a42422fb38c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone !&lt;/p&gt;
&lt;p&gt;I am a new user in codesys and I want to communicate with a stepper motor i've got via serial port, can everyone guide me? The exact things I want to do is to send some commands for example rotate via my com port...I simply cannot find the way to connect with the com on my computer which is connectd to the motor&lt;/p&gt;
&lt;p&gt;THanks in advance &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>