# Read ECB (787-1668) Channel Current in Codesys 3.5

**URL:** https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974
**Category:** CODESYS
**Created:** [May 22, 2024, 6:24pm UTC](https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974 "2024-05-22T18:24:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/jacob/32/642_2.png) [@Jacob](https://www.wago.community/u/Jacob)
#### Post date: [May 22, 2024, 6:24pm UTC](https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974/1 "2024-05-22T18:24:55Z")

</div>

Hello,

Is there sample code for configuring the 8-Channel ECB (787-1668) in Codesys 3.5?

Any support is greatly appreciated.

Thanks,

---

<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: [May 23, 2024, 5:37am UTC](https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974/2 "2024-05-23T05:37:16Z")

</div>

Take a look to WagoAppFuse library.  
There is a sample project in the [Sample project package](https://downloadcenter.wago.com/wago/learning-material/details/lp8ezg156i3ve0t9fue) but only for IO-Link. For Manchester you just need to connect the digital I/Os to the FB.

---

<div class="post-metadata">

### Author: ![Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/jacob/32/642_2.png) [@Jacob](https://www.wago.community/u/Jacob)
#### Post date: [June 10, 2024, 5:04pm UTC](https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974/3 "2024-06-10T17:04:01Z")

</div>

We got the ST Function Manchester code running in Codesys3.5.

We experience an estimated 30sec lag between activation and reading channel status. Is this to be expected?

Also, we were not able to read the channel current even though the function code provides this variable option and the firmware supports it. Is this possible?

Thanks,

---

<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: [June 11, 2024, 5:49am UTC](https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974/4 "2024-06-11T05:49:05Z")

</div>

The time depends on the FB you use.  
There are 2 frames.  
A “short” frame with can be read within seconds. You just get the channel status (not the current or setting). (Fb787\_2\_166X)  
A “long” frame where you can get everything. (Fb787\_2\_166X\_ReadCurrent)  
If you want to be fast use the short frame. You can use periodically the long frame to get the current status, but you can’t use both FB in the same time.  
The xDisplaySettings can be used to define if you want to read Current setting or value.  
Which ECB part-number do you use ?  
As far as I know only ECB with active current limitation supports current read.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/f037dcfa9494274de5fb0f89ed96a83a3100dfb2.png)

---

<div class="post-metadata">

### Author: ![Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/jacob/32/642_2.png) [@Jacob](https://www.wago.community/u/Jacob)
#### Post date: [August 24, 2024, 12:20am UTC](https://www.wago.community/t/read-ecb-787-1668-channel-current-in-codesys-3-5/974/5 "2024-08-24T00:20:56Z")

</div>

> [@quenorha](#):
>
> active current limitation

CONFIRMED: Only ‘active current limitation’ variants will output ‘actual current values’.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/6bfeb9488d2918007fc0ca0218cd572483fe75b5.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/c679a2081b345a80040ea9faafaed3adbcbb0cf6.png)
