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 Sat Dec 15, 2018 2:36 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Nov 17, 2018 12:16 am 
Offline

Joined: Tue Mar 15, 2016 8:31 pm
Posts: 6
I have a program that has a Modbus TCP slave, and i need to know the interval that i'm receiving requests from the Master. Has anyone done this? I've looked around at a few libraries and FBs, but it seems that i can get that information from the master side (of course), but not from the slave side...

Any help?


BR


Last edited by HLCN on Mon Nov 19, 2018 11:52 pm, edited 1 time in total.

Top
   
PostPosted: Mon Nov 19, 2018 1:30 pm 
Offline

Joined: Fri Feb 23, 2018 3:41 pm
Posts: 67
If you can edit the master program, you may add some watchdog bit clocking

Exemple :
bit0 is set by master in slave
bit0 is copied over bit1 internally in slave
bit1 is read from master
bit1 is inverted in bit0 in master internally
and so on

If you time the bit0 getting updated (0->1 and 1->0) then you will have your cycle.

You may also write a timestamp from master.


Top
   
PostPosted: Mon Nov 19, 2018 3:29 pm 
Offline

Joined: Tue Mar 15, 2016 8:31 pm
Posts: 6
Thanks for the response dFx, but i don't have access to the master program...

I have no access to the master program. I need to be able to see the number of requests on the slave side...


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

All times are UTC+01:00


Who is online

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