I am utilizing Studio 5000 software to interface with the TLM8 load cell controller to capture weight data in the field. The PLC program is displaying a strange reading of -31116, while the actual weight on the load cell controller shows as 34400kg. This discrepancy occurred once the weight surpassed 32000kg. Can anyone provide a solution to this issue?
Hareeshmarpuri suggested that the incident occurred when the weight exceeded 32000kg. Could it have possibly been 32767kg instead?
Is your weight variable represented as a 16-bit signed value? 1 kilogram is equal to 1.34400, which is greater than half of the range of values that can be represented by 2^16.
Are you utilizing 4-20mA communication, or perhaps ethernet TCP/IP? If you are using ethernet TCP/IP, make sure to review the settings in the scale head for byte swapping and endianess configurations.
The weight data consists of a 16-bit integer, with a key difference in how the two devices interpret the 16th bit. The weight controller reads the data as an unsigned 16-bit integer ranging from 0 to 65535, while the PLC interprets it as a signed 16-bit integer ranging from -32768 to +32767. In this scenario, the sixteenth bit is set to on. When viewed as unsigned, this bit represents a weight of 2^15, equivalent to 32768. However, when seen as signed, this bit serves as the sign bit, where a value of zero indicates a positive number and a value of 1 indicates a negative number.
When dealing with weight data in electronic devices, such as a weight controller and a PLC, it's important to understand how they interpret the 16-bit integer. The weight controller sees it as an unsigned 16-bit integer, with a range of 0 to 65535, while the PLC interprets it as a signed 16-bit integer, ranging from -32768 to +32767. In your specific situation, the sixteenth bit is set to on. In the unsigned interpretation, this bit represents a weight of 32768, while in the signed interpretation, it serves as the sign bit. A value of zero is seen as positive, and a value of 1 is considered as negative. To address this issue and ensure accurate weight readings, it's crucial to verify and adjust how the devices interpret the 16th bit.
It sounds like you're running into a common issue with the integer data type in PLC programming. PLCs commonly use Int16 data types which have a range of -32768 to 32767. As a result, when your weight exceeded 32000kg, it likely caused the PLC to roll over to negative values, hence your reading of -31116. A quick fix would be to switch to a data type that can handle larger numbers, such as DINT (double integer) which accommodates for values up to 2147483647. This should help resolve the discrepancy you're seeing between the PLC program and the load cell controller.
It sounds like you're encountering an issue with how the PLC interprets the data from the TLM8 load cell controller, particularly since the discrepancy occurs when the weight exceeds 32000 kg. Check if the data type for the input in Studio 5000 is set correctly, as exceeding certain limits might lead to overflow or incorrect readings, especially if it's using a signed integer. Additionally, make sure the load cell configuration matches the expected range and that any scaling factors applied in your logic are appropriate for high weights. Validating and adjusting these parameters could help resolve the readings.
It sounds like you're encountering a common issue related to data type limits in the PLC settings. The -31116 reading could indicate that the weight value hit an overflow limit if youβre using a data type that canβt handle numbers beyond 32000 kg. Check the configuration for the data type of the variable that stores the weight; switching it to a larger size, like a DINT, should handle weights over 32,767 kg. If that doesn't solve it, also ensure that your scaling and conversions are correctly set up between the load cell controller and the PLC.
β Work Order Management
β Asset Tracking
β Preventive Maintenance
β Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: 1. Q: Why is my PLC program displaying a negative weight reading when the actual weight on the load cell controller is positive? This discrepancy might be due to data overflow or underflow in the PLC program when the weight exceeds a certain threshold. Check your data types and scaling settings to ensure they can accommodate the values being read.
Answer: Start by examining the data conversion and scaling parameters in your PLC program to ensure they are correctly configured for the range of weights being measured. Additionally, check for any potential hardware or communication issues between the load cell controller and the PLC.
Answer: The threshold of 32000kg could be triggering an issue related to data handling or conversion within the PLC program. Review the logic and calculations involved in processing weight data beyond this threshold to identify any potential errors or limitations.
Answer: Yes, modifying the data type to accommodate larger values or adjusting the scaling settings to accurately represent the weight readings can potentially resolve the negative display problem. Ensure that the changes are applied consistently throughout the program to maintain data integrity.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.