CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Aug 16, 2018 7:32 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jan 31, 2018 5:00 am 

Joined: Tue Jan 30, 2018 6:21 am
Posts: 1
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.

Computer -> LAN cable -> Conprosys controller -> RS-232 Serial cable -> CHINO temperature senor


I have seen guides on how to open serial com ports using "COM.Open" and such but they are focusing on Computer -> Serial -> 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"

Link to mentioned controller (CPS-PCS341MB-DS1-1201): ... 370d53120a

So how do I actually go about activating that Serial com port on the controller in CoDeSys?


Another issue being more of CoDeSys.

When I add Devices in CoDeSys, which do I select for my LAN then Serial configuration?







This has been confusing me for quite some time now, have no background on CoDeSys. Appreciate any help and confirmation, thanks.

PostPosted: Wed Jan 31, 2018 9:23 am 
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2794

which plc are you using, is this Control Win?
I would recommend to the check this examples here:
->install it via CODESYS shopping cart and open it then here
'c:\Users\<YourWindowsUserName>\CODESYS Examples\SerialCom\\SerialCom.project

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)

If you see the project, there is nothing in the device tree according the Serial communcation... so for plain using the com port
this is not needed.
If you use a higher level protocoll like modbus rtu, then you need to add a modbus serial com port.


You do not have the required permissions to view the files attached to this post.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited