How to Solve Error When Sending String from CompactLogix to Fanuc Robot String Register

Question:

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?

Top Replies

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!

It sounds like you might be dealing with a compatibility issue. While CompactLogix PLCs standardly use strings of up to 82 characters, Fanuc robots are only able to accept strings of up to 64 characters. You might find success by ensuring your transmitted string is no longer than 64 characters. Additionally, ensure your data types align on both ends. For instance, if you're using a REAL data type in your PLC, your Fanuc will also need to be set up to receive REAL data. It's always important in these situations to be conscious of the specifications of both the send and receive devices.

From my experience, the error could indeed be related to the string size. Fanuc R30iB controller may not accept a 32-bit string depending on the setup. You could try breaking down your string into smaller chunks before sending. Also, I recommend checking your communication protocol. If you are using Karel or TP, ensure that your program on the Fanuc side is set up to properly receive and interpret the string from the PLC.

It sounds like you're running into a classic communication issue between the PLC and the robot. One thing to check is the data type compatibility; make sure that the string format you're sending matches what the Fanuc robot expects. For the Fanuc, sometimes it’s better to work with ASCII strings rather than direct binary transfers, especially with different string sizes. Also, check your communication settings—like baud rate and parity—to ensure they're aligned on both devices. If you're still having issues, consider breaking the string into smaller chunks or using debug tools to trace where the error occurs.

It sounds like you're running into some common hurdles when integrating systems. First, make sure that the string encoding matches on both ends—PLC and robot. If you're sending a long string, try breaking it down into smaller chunks, as many systems have limits on string lengths they can process at once. Additionally, double-check your communication settings, like baud rate and data format, since mismatches here can lead to transmission errors. Lastly, confirm that you're using the correct data types; it might help to test with a shorter string or even basic ASCII characters initially, just to isolate where the problem lies. Good luck!

It sounds like you're hitting some data transfer limitations; I would recommend checking both the CompactLogix and Fanuc documentation for maximum string sizes and formatting requirements. Sometimes, issues like this can be caused by mismatched protocols or data formats between the two devices. If you're trying to send a string, ensure it's properly terminated (like using a null character) and that your connection settings, like baud rate and parity, match. Also, consider breaking the string into smaller segments if it exceeds the limits!

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. 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.

FAQ: 2. Could the error be caused by the string size when trying to send a 32-bit string from the CompactLogix to the Fanuc robot?

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.

FAQ: 3. What modifications should be made to the module to rectify the error encountered when transmitting a string to the Fanuc robot from the CompactLogix PLC?

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.

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