CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon Jan 27, 2020 3:29 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Mar 07, 2016 4:05 pm 

Joined: Mon Nov 16, 2015 6:51 pm
Posts: 7
My Raspberry Pi has several USB modules (modem and FTDI for NMEA sensor). Next to this I like to use an additional FTDI RS-485 converter for the USB port. With this converter I like to have ModBus RTU communication. The converter is recognized and working. I tried in Codesys to setup the communication but I always get a RESPONSE_TIMEOUT at byModBusError in Codesys. I think the wrong ttyUSB port is assigned to the COM1 port.

Is there a way to assign ttyUSB5 to COM1 port?


Found the solution by myself. Place extra lines in the CodesysControl.cfg with the COM ports

portnum := COM.SysCom.SYS_COMPORT1;
portnum := COM.SysCom.SYS_COMPORT2;

In Codesys you can use the assigned port.

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

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 2 guests

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