<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Slow modbus digital input response</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a15f650f68/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a15f650f68/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/a15f650f68/</id><updated>2024-04-15T11:22:37.490000Z</updated><subtitle>Recent posts to Slow modbus digital input response</subtitle><entry><title>Slow modbus digital input response</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a15f650f68/?limit=25#ec95" rel="alternate"/><published>2024-04-15T11:22:37.490000Z</published><updated>2024-04-15T11:22:37.490000Z</updated><author><name>marcolim</name><uri>https://forge.codesys.com/u/marcolim/</uri></author><id>https://forge.codesys.com5911ec1f6eee6d1f2d2ad54ddf8ae17c262093dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[Update]&lt;/span&gt;.&lt;br/&gt;
My issue's solved, I applied the resistors in Pull-down configuration on each digital input.&lt;br/&gt;
In thus configuration never happened "floating or delaying" acquisition on SoftPLC/Arduino Board.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Slow modbus digital input response</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a15f650f68/?limit=25#ba83" rel="alternate"/><published>2024-04-13T14:47:35.987000Z</published><updated>2024-04-13T14:47:35.987000Z</updated><author><name>marcolim</name><uri>https://forge.codesys.com/u/marcolim/</uri></author><id>https://forge.codesys.comd80ebd9da5682d724a90af90467f2b7060d4e00f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi francoinf, &lt;br/&gt;
I've the similar problem and similar configuration. &lt;br/&gt;
I did with an Arduino Board loaded by a ModbusRTUServer application on it.&lt;br/&gt;
What I've notice is the slowly acquisition when release the digital signal (e.g. pin2) when it gets off.&lt;/p&gt;
&lt;p&gt;Anyone have suggestion?!&lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Slow modbus digital input response</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/a15f650f68/?limit=25#5e44" rel="alternate"/><published>2020-09-16T07:56:04.160000Z</published><updated>2020-09-16T07:56:04.160000Z</updated><author><name>francoinf</name><uri>https://forge.codesys.com/u/francoinf/</uri></author><id>https://forge.codesys.com1731c7b18ed02b454ee830b4d9371089e01949e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good morning,&lt;br/&gt;
I am creating an application in which I have to read the variation of a digital signal, through modbus rtu, with a frequency that varies from 1 Hz to 15 Hz, but unfortunately the speed of&lt;br/&gt;
response within codesys is very slow (I can capture a maximum variation of 2 Hz; above this value, I cannot capture the variations).&lt;br/&gt;
Below I describe what I did: the digital signal read by the modbus controls an event task (every time the digital signal passes from 0 to 1, the event that enables&lt;br/&gt;
the task). The task activates a routine that increments the counter by one unit (in this way I can count the number of rising edges in a given time interval).&lt;br/&gt;
When the frequency of the digital signal does not exceed 2 Hz, I can perform this count, otherwise not (the variation of a fast signal is not captured).&lt;br/&gt;
From the outside I see that the signal varies correctly, but codesys does not detect it.&lt;br/&gt;
I used:&lt;br/&gt;
- a baud rate of 115200 (I started from 9600 up to 115200, without getting any improvements);&lt;br/&gt;
- the master bus cycle task is controlled by a 50 ms cyclic task (I have changed this interval, without obtaining better results);&lt;br/&gt;
- the trigger of the modbus channel for reading the digital signal is cyclic, and set at 50 ms (I have changed this interval, without obtaining better results);&lt;/p&gt;
&lt;p&gt;With a modbus testing software, on the other hand, I am able to instantly capture the variation of the digital signal; it is within codesys that I can't.&lt;/p&gt;
&lt;p&gt;Can anyone help me?&lt;br/&gt;
Thanks in advance&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>