Receive control (processing importer)

Click this and select a Method in which you programmed how the material flow object receives Workers/Exporters. The object calls the control, when an Exporter was assigned to the importer.

Or you can select the Method in a Frame, drag it to the text box and drop it there.

Or you can right-click in the text box. Then, select Create Control on the context menu to create a control method, which is a user-defined attribute of data type methodof this object:

  • Enter a meaningful name into the text box and select Create Control. Plant Simulation then inserts self.Name_you_entered_for_the_control, such as self.ExitControlEnginePlant. Or

  • Select Create Control. Plant Simulation then inserts self.OnReceive.

    Enter the source code of this control into the Method that opens.

  • To delete this control, delete the user-defined attribute; deleting the name from the text box just deletes the name, but keeps the user-defined attribute.

    Note:

    To open the dialog of the object, whose name you entered into the text box, click in the text box, and press the F2 key.

The request control, the receive control, and the release control are not called when you reset the simulation.

The standard receive control looks like this:

Parameter

The receive control has to define two parameters:

  • The parameter Importer type of data type integer designates the type of the importer.

  • The parameter Exporter table of data type table designates the table that contains all brokered Exporters/Workers.

    When Exporters/Workers were requested for a part, you, the user, have to start processing the part with the method startProcessing. You can also represent travel times with a wait-instruction before calling the method startProcessing.

SimTalk:

imp.ReceiveCtrl

imp.startProcessing