How to manage variable box weights with rq_set_box_payload()
In some palletizing applications, the box weight can vary from one box to another. This article describes two methods to update the payload dynamically during execution; one using an external weight signal, and one using the force sensor.
This article explains how to dynamically adjust the robot payload when palletizing boxes of varying weights. The function
rq_set_box_payload()
is used to update the box payload value, either based on external signal or force sensor feedback. Proper payload management ensures safer, more stable robot motion.
-
Method 1 – Using External Weight Signal
This method is faster and more reliable than the force sensor approach, as it directly uses accurate weight values provided by an external system.
Steps:
-
Receive or read the box weight from an external signal (e.g., via PLC, Modbus)
-
Assign the weight to a variable, e.g.,
box_weight
-
In the grip node, call
rq_set_box_payload(box_weight)
-
-
Method 2 – Using the Force Sensor
⚠️ Not a scale – only provides approximate weight
Steps:
-
Wait until the sensor is steady
-
Zero the FT Sensor
-
Move down on the box
-
Start vacuum
-
Set approximate payload (optional, for safe lifting)
-
Lift the box
-
Weight the box and call
rq_set_box_payload()
with the resulting value
-
Note: Calling rq_set_box_payload()
does not immediately change the robot’s active payload. It updates the internal box payload for use when:
-
Automatically after the Grip Folder, or
-
When calling
rq_use_payload_with_box()
manually
This change will apply to all boxes of the same box type.