I am attempting to transmit a string from a CompactLogix programmable logic controller to a Fanuc robot R30iB 9.30. However, I am consistently encountering an error. What modifications should I make to my module to rectify this issue? Could it be related to the string size, as my attempt to send a 32-bit string also failed?
According to the Fanuc documentation, it is recommended that the String Register object, particularly String Register 5, should be referenced as "message" instead of "message.DATA" due to the inclusion of a 4-byte length before the data array. It is advisable to give specific and descriptive names to your String tags, such as "TestDataString5". The error code #0009 indicates a mismatch in the MSG configuration for data type or size within the object.
The issue you're experiencing might indeed be relating to the string size. The Fanuc R30iB controller can only handle string data up to 24 characters in length, including the null character at the end. If your strings are larger, you need to break them down into smaller parts for transmission. Furthermore, consider utilizing the KAREL programming language or the Ethernet/IP implicit messaging for effective communication between your CompactLogix PLC and Fanuc robot.
It sounds like you could be on the right track suspecting an issue with string size. The Fanuc R30iB controller actually has a character limit of 16 for the KAREL string, not 32. Make sure to refine the string size to adhere to this limitation or divide your larger strings into segments accordingly. Also, check the parameter settings on both ends to enable proper communication and consider testing with a smaller string to see if transmission errors persist. Hope this helps!
✅ 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: How can I resolve the error when sending a string from a CompactLogix PLC to a Fanuc robot string register? To resolve the error, you may need to check the data size compatibility between the CompactLogix and the Fanuc robot. Ensure that the string size and format being sent from the PLC match the expected format and size that the Fanuc robot can receive.
Answer: Yes, the error could be related to the string size. Make sure that the string size being sent from the CompactLogix PLC matches the string register size that the Fanuc robot can accept. You may need to adjust the data format or size to ensure successful communication.
Answer: To rectify the error, verify the communication settings, data format, and string size compatibility between the CompactLogix PLC and the Fanuc robot. Adjust the module configuration to ensure that the string data being sent is correctly formatted and within the acceptable size range for the Fanuc robot's string register.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.