Defining a Write Command activity

You can pilot a mechanism in simulation by defining a Write Command activity.

The SFC block containing this activity has to be instantiated in the simulation logic of a resource having a mechanism and a motion controller.

See the Assembly Design user's guide for more details about the creation and the simulation of mechanisms. See the Device Building user's guide for more details about the motion controller creation.


Before you begin: The Block editor should be opened.
  1. Click Write Command in the Activities toolbar.

    The Write Command dialog box appears.

  2. If needed, you can change the default name and add a comment.

  3. Click OK.


    • The Write command block instance is added to the current block.
    • The activity appears as a block parameter in the specification tree.


    The input port Value has to be set with the value of the mechanism command. The unit matches the current user settings (refer to Tools > Option > General > Parameters and Measure).

    Important: You can create one Write Command activity per command defined in the mechanism.

  4. To complete the behavior,

    1. You can create a constant to map to the Value port.



    2. You can also edit the Write command instance properties to enable the activation port.



    In this simple example, the value 90 is applied to the mechanism command when Command_activate is true.

Now, you can instantiate the block in the simulation logic of a resource containing a mechanism. At the instantiation, you have to associate the Write Command activity to one of the resource mechanism commands.