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 Fri Oct 19, 2018 5:18 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Sep 06, 2018 1:30 am 
Offline

Joined: Thu Aug 09, 2018 2:38 am
Posts: 6
Hello,
did anyone have any luck controlling an Asyril Flex Feeder via Modbus with Codesys 3.5 SP13?

I have attached chapter 6 of the manual for the Asyril, but since I have never used modbus before, I'm unsure of the configuration. In that chapter there is a description of the registers and their address or offset.

At this point I'm unsure how to get data from the device, or how to send data, as none of the settings make sense. If I guess correctly, then I will have to add Reading and Writing.

What I need to know:
1) Is my configuration so far correct?
2) How do I for example read a simple status or error register of the device?

Any hints will be greatly appreciated.

Thanks


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


Top
   
PostPosted: Thu Sep 06, 2018 10:31 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2900
hi,
as you see in the pdf function code 3 and 10 are supported.. but did not read the manual in detail.
But i guess you will manage to do this.

BR
Edwin


Top
   
PostPosted: Thu Sep 06, 2018 9:03 pm 
Offline

Joined: Thu Aug 09, 2018 2:38 am
Posts: 6
Thanks Edwin,

that's exactly what I have had configured, but to no avail. I've been playing around with this all day yesterday, but was unable to get it working properly. Attached are some more screenshots I took, to show the configuration I have tried.

When ever I try to write a 1 to the TRG variable, nothing happens.

Any idea what I might be missing? I know the manual says that "... up to 125 registers can be read at once and only up to 123 registers can be written at once...", but also that "... It is recommended to alternate between the different read/write requests..."

I know that I'm not reading anything back, and I don't think I have to, unless I want the info about the status and such. At this point I'm just trying to get it somehow working, so that I can build up my program from there.

Any help will be greatly appreciated.
Attachment:
1.PNG

Attachment:
2.PNG

Attachment:
3.PNG


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


Top
   
PostPosted: Fri Sep 07, 2018 8:00 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2900
Hi,
Modbus is always a kind of nightmare,
what about using it with Ethercat?

https://www.asyril.com/en/products/asyc ... eders.html
BR
Edwin


Top
   
PostPosted: Sun Sep 09, 2018 2:36 pm 
Offline

Joined: Fri Dec 26, 2014 3:10 am
Posts: 44
hi Studiologe,

according to the pdf you providing all the address are fall under holding register where using function Code 3 to read and code 6 to write single address or code 16 to write into multiple address.

As according your document the base address is 0, so you have to configure codesys where base is 0.

I have done many modbus tcp/ip or rtu project, so most of time before we do the setup on codesys we will using Modscan to double verify the modbuss address on the device is tally with the document.

Always to take note, some of address is can't be read and in single or multiple, so the Modscan tool is the tool where to help you to verify.

Thank you
John Lee


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

All times are UTC+01:00


Who is online

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