Skip to content
Prev Previous commit
Next Next commit
thumbnail updated
  • Loading branch information
mcmchris committed Nov 5, 2024
commit 2f7639b404980855d9c59a10e1f52c5223b8ea32
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hardware:

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.

![Packaging and Labeling System Thumbnail](assets/thumbnail.png)
![Packaging and Labeling System Thumbnail](assets/thumbnail-1.jpg)

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.

Expand Down Expand Up @@ -336,20 +336,20 @@ You can access this [link](https://dl.mitsubishielectric.com/dl/fa/document/manu

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.

| **Function** | **Start Address Decimal** | **Start Address Hex** | **Polling Time** | **Time out** | **Oneshot variable** | **Description** | **Linked Variable** |
| ------------------------------- | --------------------- | ----------------- | ------------ | -------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| **Function** | **Start Address Decimal** | **Start Address Hex** | **Polling Time** | **Time out** | **Oneshot variable** | **Description** | **Linked Variable** |
| ------------------------------- | ------------------------- | --------------------- | ---------------- | ------------ | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |

Now, for the labeling machine, we will use only coils, which are described in the table below.

| **Function** | **Start Address Decimal** | **Polling Time** | **Time out** | **Oneshot variable** | **Description** | **Linked Variable** |
| ----------------------------- | --------------------- | ------------ | -------- | ---------------- | ------------------------------------------------------------------------------------------------------ | --------------- |
| 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 |
| 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 |
| **Function** | **Start Address Decimal** | **Polling Time** | **Time out** | **Oneshot variable** | **Description** | **Linked Variable** |
| ----------------------------- | ------------------------- | ---------------- | ------------ | -------------------- | ------------------------------------------------------------------------------------------------------ | ------------------- |
| 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 |
| 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 |

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.

Expand Down
Loading