You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/07.opta/opta-family/opta/tutorials/21.packaging-labeling-app-note/content.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ hardware:
20
20
21
21
Packaging and labeling are essential processes in the production and distribution of products. Packaging involves enclosing and protecting items to ensure they remain safe from damage, contamination, or spoilage during storage and transport. It also improves the manageability of the product, making it easier to handle. Additionally, packaging enhances presentation, playing a key role in maintaining product quality and meeting safety standards.
22
22
23
-

23
+

24
24
25
25
Labeling complements this by providing crucial information such as barcodes, expiration dates and usage instructions. This ensures proper handling, traceability, and compliance with regulations. Together, packaging and labeling are critical for product identification, handling, safety, and customer satisfaction across industries.
26
26
@@ -336,20 +336,20 @@ You can access this [link](https://dl.mitsubishielectric.com/dl/fa/document/manu
336
336
337
337
In the image, we can see that function FC 03 is used, which is responsible for reading holding-type registers only. We also have the configurations for starting address, polling time, timeout, and oneshot variable. The functions and addresses to be used for the servo driver are described in the table below.
| FC 03 - Read Holding Register | 24640 | 6040h | 0 | 1000 | N/A | At address 24640 is the Control Word, a 16-bit register that enables control of key operations (like turning the servo on/off or resetting alarms) via Modbus RTU by setting specific bits. By reading this address, we can retrieve information about the state of the Control Word. | getControlWordAxis |
342
-
| FC 03 - Read Holding Register | 24641 | 6041h | 0 | 1000 | N/A | At address 24641 is the Status Word, a 16-bit register that provides real-time feedback on the current status of the device. By reading the Status Word, operators or control systems can monitor the servo’s condition, determine if any alarms are present, and verify if the system is ready, active, or requires intervention. | getStatusAxis |
343
-
| FC 16 - Write Multiple Register | 24640 | 6040h | 0 | 1000 | N/A | At address 24640 is the Control Word. Now, instead of reading, we will write to the Control Word, allowing us to control the servo motor's operations. | setControlWordAxis |
344
-
| FC 16 - Write Multiple Register | 24672 | 6060h | 0 | 1000 | N/A | The 6060h register, or "Mode of Operation" register, sets the control mode for the servo. Different values activate specific modes: -20 for position control, -21 for speed control, -22 for torque control, and 6 for homing mode, which moves the servo to a predefined home position. This register is crucial for configuring the servo’s control type for its intended operation. | setControlModeAxis |
345
-
| FC 16 - Write Multiple Register | 10242 | 2802h | 0 | 1000 | N/A | The 2802h register is used to set position data, specifying a position to which the servo driver should move the servo motor. | setPositionAxis |
| FC 03 - Read Holding Register | 24640 | 6040h | 0 | 1000 | N/A | At address 24640 is the Control Word, a 16-bit register that enables control of key operations (like turning the servo on/off or resetting alarms) via Modbus RTU by setting specific bits. By reading this address, we can retrieve information about the state of the Control Word. | getControlWordAxis|
342
+
| FC 03 - Read Holding Register | 24641 | 6041h | 0 | 1000 | N/A | At address 24641 is the Status Word, a 16-bit register that provides real-time feedback on the current status of the device. By reading the Status Word, operators or control systems can monitor the servo’s condition, determine if any alarms are present, and verify if the system is ready, active, or requires intervention. | getStatusAxis|
343
+
| FC 16 - Write Multiple Register | 24640 | 6040h | 0 | 1000 | N/A | At address 24640 is the Control Word. Now, instead of reading, we will write to the Control Word, allowing us to control the servo motor's operations. | setControlWordAxis|
344
+
| FC 16 - Write Multiple Register | 24672 | 6060h | 0 | 1000 | N/A | The 6060h register, or "Mode of Operation" register, sets the control mode for the servo. Different values activate specific modes: -20 for position control, -21 for speed control, -22 for torque control, and 6 for homing mode, which moves the servo to a predefined home position. This register is crucial for configuring the servo’s control type for its intended operation. | setControlModeAxis|
345
+
| FC 16 - Write Multiple Register | 10242 | 2802h | 0 | 1000 | N/A | The 2802h register is used to set position data, specifying a position to which the servo driver should move the servo motor. | setPositionAxis|
346
346
347
347
Now, for the labeling machine, we will use only coils, which are described in the table below.
| FC 05 - Write Single Coil | 3000 | 0 | 1000 | N/A | The address with the value 3000 is responsible for activating the labeling machine, making it operate. | labelingControl |
352
-
| FC 03 - Read Holding Register | 4000 | 0 | 1000 | N/A | The address with the value 4000 is responsible for reading the state of the labeling machine. | labelingStatus |
| FC 05 - Write Single Coil | 3000 | 0 | 1000 | N/A | The address with the value 3000 is responsible for activating the labeling machine, making it operate. | labelingControl|
352
+
| FC 03 - Read Holding Register | 4000 | 0 | 1000 | N/A | The address with the value 4000 is responsible for reading the state of the labeling machine. | labelingStatus|
353
353
354
354
Remember, it is important that the devices on the Modbus network are configured to communicate with each other to enable data transmission over the network. We will not cover how to configure these devices, as each manual provides the correct method for doing so.
0 commit comments