Troubleshooting Data Style Issue in Studio 5000 with CompactLogix PLC

Question:

Hello everyone, I'm currently diving into the world of Programmable Logic Controllers (PLCs). I am working with an older version of Studio 5000 and a CompactLogix PLC. I have set up a 0-10v transmitter on an input and adjusted the 'style' of the input (Local 2:I. Ch1Data) from Binary to Decimal in the 'Controller Tags' section. However, when I incorporate a 'divide' instruction and attempt to use the tag, it still displays as Binary. I have attempted to modify the properties by right-clicking on the tag, but the 'style' box remains uneditable. I am seeking guidance on how to resolve this issue. Any assistance would be greatly appreciated.

Top Replies

Transfer the data from Local 2:I.Ch1Data to a tag with the same data type, ensuring that the style reflects your desired display format (located at the bottom of the tag creation dialog). Utilize this updated tag in the divide operation.

What an incredible feat! Your approach is truly innovative. Thank you so much for sharing your wisdom and insight.

It sounds like you’re on the right track by adjusting the input style to Decimal, but keep in mind that the divide instruction might still be interpreting the data in the way it's read by default. One thing you could try is to ensure that the datatype of the output from your input tag is set correctly in your logic. If it’s still showing as Binary after you’ve made your adjustments, consider creating a new tag specifically for the O:0 from your Local 2:I. Ch1Data and then convert that into a format suitable for your division instruction. Also, double-check any scaling settings that might affect how the value is read and manipulated downstream. Good luck!

It sounds like you're on the right track, but this could be a simple mismatch between how the data is formatted in your program and how you're trying to use it. Since you're using a divide instruction, make sure the input tag you created is properly configured as a Float or a DINT type, depending on what you're expecting as an output. Sometimes, you may need to add a conversion instruction to ensure that the data is treated correctly in subsequent operations. Also, double-check the scaling settings for your 0-10V input to make sure it's sending the right values into your logic. If the properties are uneditable, it might also mean the tag is locked in some way, so look at any controller settings that could be affecting that. Good luck!

It sounds like you're on the right track, but just to clarify, when you use a divide instruction with your input tag, keep in mind that even if the tag is set to Decimal in the Controller Tags, it might still display the raw binary value initially. Make sure you're converting or scaling the raw input appropriately in your logic before using it in the divide instruction. You might also want to double-check the datatype of your tag; it should generally be of a type that supports decimal values, like FLOAT or DINT, rather than an integer. If the tag properties are grayed out, consider creating a new tag with the desired properties and using that in your divide instruction instead. Good luck!

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.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: 1. How can I change the data style of an input in Studio 5000 for a CompactLogix PLC?

Answer: Answer: To change the data style of an input in Studio 5000 for a CompactLogix PLC, you can adjust the 'style' setting in the 'Controller Tags' section. However, if the style box remains uneditable, there may be other factors affecting the display.

FAQ: 2. Why does the data style of the tag remain as Binary even after adjusting in Studio 5000 for a CompactLogix PLC?

Answer: Answer: If the data style of the tag still displays as Binary despite making changes, it could be due to a technical issue or misconfiguration in the software. Troubleshooting steps may be required to resolve this issue.

FAQ: 3. How can I ensure that the 'divide' instruction in Studio 5000 for a CompactLogix PLC works correctly with the modified data style?

Answer: Answer: To ensure that the 'divide' instruction works correctly with the modified data style, verify that the input data format matches the expected format in the instruction. Additionally, double-check the configuration settings and data types to avoid any discrepancies.

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  â†’