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 Sep 16, 2019 5:08 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Feb 18, 2014 12:02 pm 
Offline

Joined: Tue Feb 18, 2014 10:46 am
Posts: 13
Hi guys,

Really encouraging platform you've developed here, especially as I'm going into final year and need project idea's.

In my current work I have the eDAM-5029 Remote IO device communicating with my Pi through MODBUS TCP Protocol (through sockets).
I'd love to get it up and running with the CODESYS application However I keep getting the CmpIecTask library error when I add
"Modbus Master -> Modbus Slave" devices.

If someone could point me in the right direction in terms of configuring my device in the software it would be greatly appreciated.

Manual: http://www.audon.co.uk/downloads/EDAM5000_Manual.pdf

-Sean.


Top
   
PostPosted: Tue Feb 18, 2014 9:23 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3448
Hi,

this should work, how do you get the CmpIecTask library error,
this should not happen?
Try to create an empty new Project with Raspberry Pi as plc.
Then add Ethernet - then Modbus-Master then Modbus-Slave (under the Modbus Master).
Compile - the this should lead to an error free compile result.
If not let me know.

BR
E.Schwellinger


Top
   
PostPosted: Thu Feb 20, 2014 11:43 am 
Offline

Joined: Tue Feb 18, 2014 10:46 am
Posts: 13
Still getting the error(s)..

Here's a screenshot (attached below)

This guy also had the same problem and managed to get it fixed:
http://www.raspberrypi.org/phpBB3/viewt ... 70#p507270

Cheers,
Sean.


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


Top
   
PostPosted: Fri Feb 21, 2014 9:05 am 
Offline

Joined: Wed Jul 04, 2012 7:58 am
Posts: 1
Attachment:
CODESYS Control for Raspberry Pi.devdesc.zip
Hi,

there's an error in the device description of "CODESYS Control for Raspberry Pi".
This is only a problem if you use CODESYS V3.5.4.10.
I attached a corrected version of the device description. Just install this device (Tools -> Device Repository... -> Install...) and then update your device in the device tree or restart CODESYS.

Best regards
3S Support


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


Top
   
PostPosted: Fri Feb 21, 2014 10:13 am 
Offline

Joined: Tue Feb 18, 2014 10:46 am
Posts: 13
Hi,

Many thanks for the support.
A member of your technical support team managed to remote in to my system and resolve this issue.

My eDAM IO unit is now up and running as a MODBUS TCP Slave (and only ~9% CPU on the RPi)

Cheers Guys!


Top
   
PostPosted: Sat Jan 24, 2015 12:11 pm 
Offline

Joined: Fri Nov 30, 2012 9:03 am
Posts: 14
Hi Everyone, having codesys run on he pi is brillant.

Ok, i have the Adam 6050 Modbus TCP slave (12 in, 6 out). I've configured codesys with a modbus tcp master and modbus tcp slave and entered ip address of the slave. However codesys tells me the ModbusTcpSlave is not running. The device appears ok as i can connect to it via service tool. Any tips?
Thanks


Top
   
PostPosted: Sun Jan 25, 2015 11:30 am 
Offline

Joined: Fri Nov 30, 2012 9:03 am
Posts: 14
My mistake, got it working. Here is screendump of working setup. Problem was i used "FC23 Read/Write Multiple Registers" and i dont think the 6050 supports this. From 6050 manual, it says:

Code (Hex)
Name Usage
01 Read Coil Status Read Discrete Output Bit
02 Read Input Status Read Discrete Input Bit
03 Read Holding Registers Read 16-bit register. Used to read integer or floating point process data.
04 Read Input Registers
05 Force Single Coil Write data to force coil ON/OFF
06 Preset Single Register Write data in 16-bit integer format
08 Loopback Diagnosis Diagnostic testing of the communication port
0F Force Multiple Coils Write multiple data to force coil ON/OFF
10 Preset Multiple Registers Write multiple data in 16-bit integer format

so i tried Function code 03 for read inputs and Function code 15 (16#000F) for write outputs. Once did this, all good.


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


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 8 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