Troubleshooting Turck TBEN-S2-4AI Block for Reading 4-20mA Analog Input with Codesys Software

Question:

I am utilizing a Turck TBEN-S2-4AI block in conjunction with Codesys software to monitor a temperature sensor outputting a 4-20mA signal. Despite verifying that the wire transmits 16mA using a meter, my computer consistently registers a value of 0. I have scoured various forums without success in finding a solution, possibly due to my lack of expertise in framing the right queries. Attached is a snapshot of my Codesys settings for reference. Any guidance on resolving this issue would be highly appreciated! Additionally, I am in the company of a fellow talkplc member known as Rootboy, who sends his greetings to anyone familiar with him.

Top Replies

I am not very familiar with this topic, but it is worth considering that configuring the ports is essential for specifying what information they should monitor, such as voltage, current, or temperature. It is also important to determine whether the port is meant for input or output. I believe the module configuration software is called TAS and can be found on the Turck website.

Stu, thank you for your input! I have configured the ports using the Codesys software to monitor current within the 4-20mA range. I believe this is the correct setup, but there may be additional steps I am overlooking. It is important to note that an error occurs when the current value is outside of the specified range, causing a red LED to illuminate on the physical block. However, adjusting the range to 0-20mA resolves the error and switches the LED to green (indicating the value is within range). This suggests that the block has been properly configured.

For years, I have relied on Turck TBEN blocks and consistently configured them using a web browser interface. To access the device's webpage, navigate to the port where your temperature sensor is connected. Here, you can view the real-time temperature readings from the sensor. It's possible that the Codesys software is not completely overwriting the block's configuration.

To connect to Crankin, simply enter the IP address into your web browser. Make sure to configure the port settings for both input and output, and set the type to 4-20mA for proper communication.

To access the webpage on the blocked IP address, simply log in with the default credentials: admin as the username and the password located at 192.168.1.254.

Hi there! First off, nice to hear from Rootboy! Faced a similar issue like yours a while ago with my Turck TBEN module and CodeSys software. After some troubleshooting, I found that it was an issue with scaling. The TBEN-S2-4AI block takes the 4-20mA signal and scales it to a 16-bit number. Try scaling it within the Codesys software to represent the anticipated range of your temperature device. It rather sounds complex, but applying the scaling on CodeSys could accurately transform your analog input into a temperature reading on your computer. Hope this approach resolve your issue!

Hello! Firstly, please send my regards to Rootboy; it's been a while! Now, onto your issue - it could be that the input setting in your Codesys software isn't correctly configured to accept a 4-20mA signal. You should validate the correct analog input type (i.e., current input type) in your software settings. Moreover, consider examining the scaling settings in Codesys. An improper configuration might result in a skewed input reading. Hope this helps! Looking forward to hearing about your progress.

It sounds like you're facing a classic connection or configuration issue! Since you’re getting the correct current reading from the meter, it might be worth double-checking the wiring to ensure that the signal is reaching the TBEN-S2 block correctly. Also, have you verified that the settings in Codesys match the input type configured for the TBEN-S2? Checking the scaling settings in your program might help too, as they can sometimes display unexpected values if not set properly. Let us know if you need help with specific settings, and send greetings back to Rootboy—always good to see community members connecting!

It sounds frustrating to deal with that kind of issue, especially when your wiring is fine! Have you checked the configuration settings in Codesys for the TBEN-S2-4AI block? Sometimes, the analog input might need specific scaling or datatype adjustments to read the 4-20mA signal correctly. Also, ensure that you're using the correct channel and that any input filtering settings aren't suppressing the signal. If you can, try testing with a different known good sensor to rule out any potential problems there too. And hey, shoutout to Rootboy—he's a legend around here! Good luck, and I hope you get it sorted!

Hey there! It sounds like you’ve already done some good troubleshooting with the meter reading, but let’s consider a couple of possibilities. First, double-check that the configuration for the input channel in Codesys matches the expected signal range (4-20mA) and ensure you’ve correctly set the input type for the TBEN-S2-4AI block. Additionally, inspect the wiring and connections to rule out any loose connections or faults. If all looks good, try restarting your Codesys runtime or the entire system to see if that refreshes the input readings. Sometimes a simple reset can help with communication issues. Good luck, and say hi to Rootboy for me!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. Why is my Turck TBEN-S2-4AI block not reading the 4-20mA analog input correctly in Codesys software? - This issue could be due to incorrect wiring, configuration settings, or compatibility issues. 2. How can I troubleshoot the Turck TBEN-S2-4AI block in Codesys if it shows a value of 0 despite a 16mA signal input? - Check the wiring connections, ensure proper configuration of the block in Codesys, and consider compatibility issues between the hardware and software.

FAQ: 3. Is there a specific guide or resource available for setting up the Turck TBEN-S2-4AI block in Codesys for monitoring analog inputs?

Answer: - Refer to the Turck TBEN-S2-4AI block's user manual and Codesys documentation for detailed setup instructions and troubleshooting tips.

FAQ: 4. How can I ensure that my Turck TBEN-S2-4AI block is correctly configured to read the 4-20mA signal from a temperature sensor?

Answer: - Double-check the configuration settings in Codesys, verify the wiring connections, and ensure that the hardware and software are compatible for seamless communication.

FAQ: 5. Are there any common pitfalls or mistakes to avoid when using the Turck TBEN-S2-4AI block with Codesys software for analog input monitoring?

Answer: - Avoid incorrect wiring connections, ensure proper calibration of the sensor, double-check configuration settings in Codesys, and troubleshoot any compatibility issues

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  →