AnyLogic
Expand
Font size

Phase 3. Electrodes wrapping and group assembly

After curing, the electrodes must be wrapped in isolating envelopes before their terminals are connected to each other to form electrode groups. We will start modeling this production step with adding the necessary elements to the layout.

Draw the layout

  1. Double-click the  Conveyor element in the Material Handling section of  Space Markup palette.
  2. Draw the conveyor over the layout as displayed in the image below.
  3. Name it wrappingConveyor.
    To draw a circular turn, press the left mouse button at the conveyor’s next turning point, move the mouse with the left mouse button being pressed until you get the segment of the required shape. Release the mouse button when finished adjusting the form of the conveyor segment:

    Finish drawing the line by placing the double click at the ending point.
  4. In the conveyor’s properties specify the following:
    • Material item type:  Electrode
    • Z: 20
    • Width: 0.5 meters
    When you finish, the conveyor should look like this:

  5. Drag the  Station element from the  Material Handling Library palette and place it on the  wrappingConveyor:

  6. Name it wrappingStation.
  7. In the station’s properties switch the Visible parameter to no.
  8. Adjust the  wrappingStation parameters as follows:
    • Length: 0.5 meter
    • Process time: 1 second
    • Capacity: 1 (default)
    • Loading: Simultaneous with unloading
  9. Next, we will define the separate areas where the assembly process will take place. The electrodes will pass through each area during different stages of processing. We will use the  Rectangular Node elements to mark these areas:

    •  wrappedElectrodeBuffer — a temporary storage location for wrapped electrodes before they are collected into blocks.
      Width: 25
      Height: 20
    •  assembleArea — an area where the blocks are assembled.
      Width: 15
      Height: 20
    •  assembledBlocksBuffer — a temporary storage location for assembled blocks of electrodes.
      Width: 20
      Height: 20
    Make sure the dimensions and placement of these nodes exactly correspond to the image above and the instructions give here, since the nodes must fit the 3D animation object which we will add during the next step.
  10. In the properties of all these nodes specify the following:
    • Visible: no
    • Location layout: Arranged
    • Z: 20

Add the 3D animation

  1. Drag the Plate Enveloper 3D object from the Manufacturing section of the  3D Objects palette to the  Main graphical diagram.
  2. In the displayed Auto scale 3D object dialog window click the Yes button.
  3. Adjust the placement of the 3D object over the  wrappingStation as displayed in the image below:

  4. In the same manner use the COS Machine 3D figure from the Manufacturing section of the  3D Objects palette to create the assembly area animation.
  5. In the properties of the figure, specify the Additional scale: 160%.
    This is a complex 3D object and you have to specify the scale for both elements that comprise it. Click through the 3D object to select its parts. On the first click, the whole object will be selected. On the second click, the first part will be selected, and on the third click — the second part.
  6. Use the handle to rotate the 3D figure 90 degrees to the right. Consult the image below for correct placement:

Now, let’s define the logic behind the electrodes wrapping process.

Add the wrapping logic to the flowchart

Before being wrapped in the envelopes, the electrodes must be removed from the batches.

  1. Drag the  Unbatch block from the  Process Modeling Library palette to the  Main graphical diagram and add it to the flowchart before the sink block.
  2. Name the block unbatchElectrodes.

  3. In the Element type property, select  Electrode.

We want the unbatched electrodes to appear directly on the  wrappingConveyor which will move them to the wrapping station. Specifically, we want the electrodes to appear at the conveyor's starting point. We will use the conveyor's API to obtain the coordinates of this point.

  1. Deselect the Elements appear in batch location check-box.
  2. In the New location property, select the (x, y, z) option.
  3. In the X property, type the following code: wrappingConveyor.getStartPoint().x.
    First, we refer to the conveyor by its name. Next, we call the conveyor's function getStartPoint() that returns the Point object with coordinates of the conveyor's starting point. Finally, we specify the x-coordinate.
  4. Use the same approach to specify the y-coordinate of the conveyor's starting point in the Y property. The code should look like this: wrappingConveyor.getStartPoint().y.

    The wrapping will take place on the  wrappingConveyor, therefore we have to add another block to model the movement of the electrodes along the conveyor.
  5. Add the  Convey block to the flowchart after the unbatchElectrodes block.
  6. Name it wrappingConvey.

  7. Adjust its properties as follows:
    • Source conveyor: wrappingConveyor.
    • Target conveyor: wrappingConveyor.
    • Select the Leave conveyor on exit check box

    The wrapped electrodes will change their color once again. To model this, we will use the  wrappingStation.
  8. Open the  wrappingStation properties and expand the Actions section.
  9. In the On process finished field type the following code: agent.color = white;

  10. Run the model and observe the electrodes wrapping process.

Assembly into blocks

First of all, we need a new material item type to represent the assembled electrode groups.

Create a new material item type

  1. Drag the  Material item type element from the  Material Handling Library palette to the  Main graphical diagram.
  2. In the New agent wizard specify the Agent type name: BatteryBlock and click Finish.
  3. In the  BatteryBlock graphical editor select the Scale element and set the Ruler length corresponds to: 1 meter.
  4. Drag the Plate Group 3D object from the Manufacturing section of the  3D Objects palette to the  BatteryBlock graphical diagram and place it at the axis origin.
  5. In the displayed Auto scale 3D object dialog window click the Yes button.
  6. Ctrl + drag the 3D object twice to make two copies and arrange them as displayed in the image below:

To describe the assembly process in the flowchart diagram, we will use the Assembler block.

Add the groups assembly logic

  1. Drag the  Assembler block from the  Process Modeling Library palette to the  Main graphical diagram and add it to the chart before the sink block.
  2. Make sure that the connection is established with the uppermost in port of the assembler block.

  3. In the properties of the assembler block specify the following parameters:
    • The number of incoming agents needed to assemble a single new agent in the Quantity 1: 15
    • Quantity 2: 0
    • New agent:  BatteryBlock
    • Time needed to create a single block of electrodes in the Delay time: 5 minutes
    • Output buffer capacity: 1
    • Location of assembled agent: Network/GIS node
    • Node:  assembledBlocksBuffer
    • The area where the assembly process takes place in the Agent location (delay):  assembleArea

If you run the model now, AnyLogic will warn you that the agents pass through the assembler block without delay, since you haven’t specified the resources that are required to perform the assembly.

Add the resources

  1. Drag the  Resource Type element from the  Process Modeling Library palette to the  Main graphical diagram.
  2. In the New agent wizard specify the Agent type name: Operator and click Next.
  3. In the displayed list of the 3D models expand the People section and select Worker. Click Finish.
  4. Now, switch to the  Main graphical diagram and drag the  Point Node element from the  Space Markup palette.
  5. Place it on the layout next to the  assembleArea as displayed in the image below:

  6. Name the node operatorLocation. During the model run our worker will be located here.
  7. In the node’s properties specify Visible: no.
  8. Drag the  ResourcePool block from the  Process Modeling Library palette to the  Main graphical diagram and name it operator.

  9. Go to the block’s properties and select  Operator in the New resource unit parameter.
  10. Next, in the Home location (nodes) property specify the  operatorLocation.
  11. Finally, go to the assembler block’s properties and select the operator in the Resource sets: by clicking button:

  12. Run the model!

Demo model: Lead Acid Battery Production — Phase 3 Open the model page in AnyLogic Cloud. There you can run the model or download it (by clicking Model source files).
How can we improve this article?