# Issue with reading digital inputs

**URL:** <https://www.wago.community/t/issue-with-reading-digital-inputs/2325>\
**Category:** CODESYS\
**Tags:** codesys\
**Created:** [October 1, 2025, 3:21pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325 "2025-10-01T15:21:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 1, 2025, 3:21pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/1 "2025-10-01T15:21:07Z")

</div>

Hi,

I have a flowmeter connected to wago pfc300, this one : [https://www.burkert.com/en/Media/plm/DTS/DS/ds8020-standard-eu-en.pdf?id=DTS0000000000000001000011076ENAA](https://www.burkert.com/en/Media/plm/DTS/DS/ds8020-standard-eu-en.pdf?id=DTS0000000000000001000011076ENAA)  
I think it is connected through digital input ?  
And my question is : **How can I read the digital inputs in CodeSys**?

I already added the inputs (analog & digital) :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/1/16e1e8404e44b51731ea76d4e4e259ec0e8c826b.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/6/673d39029941fce72515e98f295f3fdf9e5c59b6.png)

I mapped a variable in the first k-bus (75x\_8DI) (I wonder DI is for digital input) but the value show 0. I tried the same in the second k-bus also.

![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/d/d14f69c1803a7fb684de4d5f71f23648ed5ba1eb.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/e/ee91998ec860f59e5c6e64c66b5e7418d4ab69d9.png)

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [October 2, 2025, 6:44am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/2 "2025-10-02T06:44:50Z")

</div>

Is the variable used in the PLC program ?  
If not, by default, the variable won’t be refreshed if not used.

Do you want to detect pulse ? If so you have to make sure pulse are long enough to be detected by the digital input ( depending on input filter) and you’ll have to use a rising trigger (R\_TRIG) to detect the input and increase a counter.

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 7:16am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/3 "2025-10-02T07:16:15Z")

</div>

Hi,  
What do you mean by “use” because I only declare the variable like `testinput;` in the programming section.  
And yes I want to detect pulse

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [October 2, 2025, 7:30am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/4 "2025-10-02T07:30:36Z")

</div>

If it’s in the programming section then it’s enough.  
So in your case you probably don’t see the pulse of the flowmeter between 2 “refresh” of CODESYS.

Try something like that

oR\_TRIG : R\_TRIG;  
dwCounter : DWORD;

oR\_TRIG(IN:=testinput.0);

IF oR\_TRIG.Q THEN  
dwCounter := dwCounter+1  
END\_IF

You’ll probably want to multiply by the pulse weight, specified in the datasheet (1 pulse = 50 L)

Make sure the pulse frequency fits the digital input specs.  
Standards DI have a 3.0 ms input filter.  
We also have DI with 0.2 ms input filter

If it’s not enough we have dedicated pulse counter inputs. (750-404 for instance)

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 7:50am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/5 "2025-10-02T07:50:46Z")

</div>

I have this 😕 :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/8/80680f4cf69b4859c70234e8c3121ca649fadac3.png)

How can I make sure that the digital inputs have the good specs ?

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 7:53am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/6 "2025-10-02T07:53:35Z")

</div>

here is the spec of my digital input :  
Name 75x-8DI  
Fabricant : WAGO  
Catégories :  
Type : 32776  
ID: 8801\_075xDigital  
Version: 2.0.0.13  
Description : 8 DI Generic  
075x-8DI

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [October 2, 2025, 9:01am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/9 "2025-10-02T09:01:09Z")

</div>

You need the part number (750-430 ?)

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 9:05am UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/10 "2025-10-02T09:05:15Z")

</div>

Sorry I don’t understand, the only communication devices I have, are these :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/6/694f6518580019ce385e46e20e9e37d1938a6a71.png)

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 12:32pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/11 "2025-10-02T12:32:41Z")

</div>

We checked on site, the flowmeters are connected to the module 750-455 (so analog inputs)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/1/1b63d1599aab11551820ab5825c41d16e5be3f2e.png)

![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/1/1672db3ed263f2033189d23b95115caafe3f5a7e.png)

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 1:20pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/12 "2025-10-02T13:20:10Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/0/07658b6f99b329f0f94b9b731c6be1a5ac22f8f4.jpeg)The 4 LEDs are ON. What can be the problem please ?

---

<div class="post-metadata">

**Author:** ![AdamReeve](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/adamreeve/32/59_2.png) [@AdamReeve](https://www.wago.community/u/AdamReeve)\
**Post date:** [October 2, 2025, 3:25pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/13 "2025-10-02T15:25:51Z")

</div>

If the LEDs are on and the input readings are fixed at “3” (as shown in your previous screenshot) , that means you have a broken wire connection or your input signals are \<4ma. Make sure your flow meters have power and are providing a 4-20mA signal. This module is not going to directly provide loop power for 2-wire devices.

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 2, 2025, 4:00pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/14 "2025-10-02T16:00:00Z")

</div>

Thank you, I will explore this path and give an update

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 3, 2025, 1:28pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/15 "2025-10-03T13:28:58Z")

</div>

The flowmeters are connected to a transmitter so there is a continous power provided : [https://www.burkert.com/en/Media/plm/DTS/DS/ds8619-multicell-eu-en.pdf?id=DTS0000000000000001000130448ENX](https://www.burkert.com/en/Media/plm/DTS/DS/ds8619-multicell-eu-en.pdf?id=DTS0000000000000001000130448ENX)

---

<div class="post-metadata">

**Author:** ![quenorha](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/quenorha/32/429_2.png) [@quenorha](https://www.wago.community/u/quenorha)\
**Post date:** [October 3, 2025, 1:52pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/16 "2025-10-03T13:52:40Z")

</div>

Please be more specific about which flowmeter is used and on which channel of which I/O module it is connected. On your first question it was on a digital input and now you mention an analog module, it is confusing.

---

<div class="post-metadata">

**Author:** ![WagoUser44](https://avatars.discourse-cdn.com/v4/letter/w/7ba0ec/32.png) [@WagoUser44](https://www.wago.community/u/WagoUser44)\
**Post date:** [October 3, 2025, 2:30pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/17 "2025-10-03T14:30:21Z")

</div>

The system includes Bürkert Type 8020 flowmeters (generate pulses), a multiCELL 8619 display (displays flow values well on the screen), and WAGO modules. The 8020 flowmeters are connected to the module 750-455 (analog) at the addresses %IW10-13, but the problem is that the values are fixed at ‘3’ (signal \< 4mA).

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/1/13c63ba50a3e5d1aaacfd8f1b5c6943aee05b068.png)

---

<div class="post-metadata">

**Author:** ![Thruser](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@Thruser](https://www.wago.community/u/Thruser)\
**Post date:** [October 3, 2025, 3:40pm UTC](https://www.wago.community/t/issue-with-reading-digital-inputs/2325/18 "2025-10-03T15:40:05Z")

</div>

Hi,

a value of 3 and red LEDs mean there is a failure on the corresponding channel. This is mostly a broken wire/connection.

So, check

1. the configuration of the multicell 8619, if the output is correctly configured
2. the wiring between the multicell 8619 and the WAGO module

For the wiring check, check also if the planner has the connection correctly planned, as the multicell 8619 has to be connected like a 2-wire transmitter to the WAGO module.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/7/7b0fcfa5a54c2f1c3d9180e2a0710a075f3cbac3.png)
