<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/</id><updated>2021-07-17T10:49:32.537000Z</updated><subtitle>Recent posts to Proper method to configure and open Controller's serial port</subtitle><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#5c03" rel="alternate"/><published>2021-07-17T10:49:32.537000Z</published><updated>2021-07-17T10:49:32.537000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7afab2186fd3ab07cd6e5cdf07f8a0eca4d9af47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;with SP17 there is a forced UserManagement introduced,&lt;br/&gt;
either you set a user and password on fist login or you could disable it.&lt;br/&gt;
depening on your plc system you could add for example for Linux SL in&lt;br/&gt;
/etc/CODESYSControl_User.cfg&lt;br/&gt;
&lt;a href="https://faq.codesys.com/display/CDSFAQ/Device+UserManagement" rel="nofollow"&gt;https://faq.codesys.com/display/CDSFAQ/Device+UserManagement&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#13d6" rel="alternate"/><published>2021-07-17T08:12:10.299000Z</published><updated>2021-07-17T08:12:10.299000Z</updated><author><name>aungwintun81</name><uri>https://forge.codesys.com/u/aungwintun81/</uri></author><id>https://forge.codesys.comadf97f6f0f31e1e8b37f5dc3b49ce8e4544cf5cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;HI Anyone can help to codesys serialcom.project example login user and passeowrd.&lt;br/&gt;
I cannot login to learn. any instruction to edit user and password.&lt;br/&gt;
Please help me. thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#a60d" rel="alternate"/><published>2021-07-17T08:11:59.378000Z</published><updated>2021-07-17T08:11:59.378000Z</updated><author><name>aungwintun81</name><uri>https://forge.codesys.com/u/aungwintun81/</uri></author><id>https://forge.codesys.com4ec887d100ed02869339d9e129061539c56c4faa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;HI Anyone can help to codesys serialcom.project example login user and passeowrd.&lt;br/&gt;
I cannot login to learn. any instruction to edit user and password.&lt;br/&gt;
Please help me. thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#c8c4" rel="alternate"/><published>2020-02-27T15:12:20.794000Z</published><updated>2020-02-27T15:12:20.794000Z</updated><author><name>Thom</name><uri>https://forge.codesys.com/u/thom/</uri></author><id>https://forge.codesys.com6696a2fabd560d2fe88e4bc14225e6443a24255d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Thom hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Thank you Edwin for your help.&lt;br/&gt;
I start on Control WIN but the handler is always never found...(see below):&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;After many try, I delete all test of the handler value and force to write on the serial port and data are correctly sent...&lt;br/&gt;
So, I don't understand what is the problem with the handler but it seems it not correctly fill.&lt;/p&gt;
&lt;p&gt;NB: Version of Codesys used is V3.5.13.0.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://image.noelshack.com/fichiers/2018/35/4/1535644568-handlerneverwork.png"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#ed17" rel="alternate"/><published>2020-02-27T15:12:19.024000Z</published><updated>2020-02-27T15:12:19.024000Z</updated><author><name>Thom</name><uri>https://forge.codesys.com/u/thom/</uri></author><id>https://forge.codesys.com425bb2e1297f4d5953b7b16d2533c3ef8fadbe23</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
this does not work in simulation mode,&lt;br/&gt;
please start Control WIN in your Task tray - and login to this plc on your pc -&lt;br/&gt;
then this will work.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you Edwin for your help.&lt;/p&gt;
&lt;p&gt;I start on Control WIN but the handler is always never found...(see below):&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://image.noelshack.com/fichiers/2018/35/4/1535644568-handlerneverwork.png"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#2d0f" rel="alternate"/><published>2020-02-27T15:12:18.378000Z</published><updated>2020-02-27T15:12:18.378000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comf2a3c5a12f74ae45d90be9dc40384ae8508031e3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
this does not work in simulation mode,&lt;br/&gt;
please start Control WIN in your Task tray - and login to this plc on your pc -&lt;br/&gt;
then this will work.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#04a1" rel="alternate"/><published>2020-02-27T15:12:17.765000Z</published><updated>2020-02-27T15:12:17.765000Z</updated><author><name>Thom</name><uri>https://forge.codesys.com/u/thom/</uri></author><id>https://forge.codesys.com96baf8ebbc214da2ab873c3ebadde89073afcf02</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everybody,&lt;/p&gt;
&lt;p&gt;I try to execute the SerialCom.project example on my PC (simulation mode) with an USB serial adapter to emulate a COM1 but the opening never work.&lt;/p&gt;
&lt;p&gt;The handler is always 16#0! (see below)&lt;/p&gt;
&lt;p&gt;I try too on a target but the trouble is the same, handler never found...&lt;/p&gt;
&lt;p&gt;Kind regard,&lt;/p&gt;
&lt;p&gt;Thomas.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Bild" rel="nofollow" src="https://image.noelshack.com/fichiers/2018/35/4/1535615410-handlerneverwork.png"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#6c60" rel="alternate"/><published>2020-02-27T15:12:15.992000Z</published><updated>2020-02-27T15:12:15.992000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7d310a61a619d95ca18865444e929158eece718a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;which plc are you using, is this  Control Win?&lt;br/&gt;
I would recommend to the check this examples here:&lt;br/&gt;
&lt;a class="" href="https://store.codesys.com/serial-com.html" rel="nofollow"&gt;https://store.codesys.com/serial-com.html&lt;/a&gt;&lt;br/&gt;
-&amp;gt;install it via CODESYS shopping cart and open it then here&lt;br/&gt;
'c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Examples\SerialCom\1.0.0.1\SerialCom.project &amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;There are two applications in you need to decide which one is better for your needs (SyscomExample is more low Level based on the syslibs)&lt;/p&gt;
&lt;p&gt;If you see the project, there is nothing in the device tree according the Serial communcation... so for plain using the com port&lt;br/&gt;
this is not needed.&lt;br/&gt;
If you use a higher level protocoll like modbus rtu, then you need to add a modbus serial com port.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: serialcom.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3398"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Proper method to configure and open Controller's serial port</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/631fe5b901/?limit=25#04b5" rel="alternate"/><published>2020-02-27T15:12:15.378000Z</published><updated>2020-02-27T15:12:15.378000Z</updated><author><name>conadmin</name><uri>https://forge.codesys.com/u/conadmin/</uri></author><id>https://forge.codesys.com0bda2a620794b771d05a4f1dbfb68b38b01d1ec8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am currently using CoDeSys V3.5 SP12 trying to grab drab some sensor data using a controller. Let me touch on the hardware architecture first.&lt;/p&gt;
&lt;p&gt;Computer -&amp;gt; LAN cable -&amp;gt; Conprosys controller -&amp;gt; RS-232 Serial cable -&amp;gt; CHINO temperature senor&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;I have seen guides on how to open serial com ports using "COM.Open" and such but they are focusing on Computer -&amp;gt; Serial -&amp;gt; Controller. In my case I am hoping to open the Controller SERIAL COM port. I searched for the data sheet and it indicated that the CoDeSys syntax for that controller serial com port being "PORT 1"&lt;/p&gt;
&lt;p&gt;Link to mentioned controller (CPS-PCS341MB-DS1-1201): &lt;a class="" href="https://www.contec.com/jp/download/contract/contract3/?itemid=d66e4a64-6719-4675-869a-ab50c6cb2dc2&amp;amp;downloaditemid=377a41d5-c7f9-43cc-b5f0-9d370d53120a" rel="nofollow"&gt;https://www.contec.com/jp/download/cont ... 370d53120a&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So how do I actually go about activating that Serial com port on the controller in CoDeSys?&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Another issue being more of CoDeSys.&lt;/p&gt;
&lt;p&gt;When I add Devices in CoDeSys, which do I select for my LAN then Serial configuration?&lt;/p&gt;
&lt;p&gt;MODBUS_COM&amp;gt; MODBUS_SERIAL_DEVICE&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;MODBUS_COM&amp;gt; MODBUS_MASTER_COM_PORT&amp;gt; MODBUS_SLAVE_COM_PORT&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;Ethernet&amp;gt; MODBUSTCP_SLAVE_DEVICE&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;This has been confusing me for quite some time now, have no background on CoDeSys. Appreciate any help and confirmation, thanks.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>