Step to identify plant inputs
The input of interest is the translational force is applied to the piston body.
1. Click the Plant_Input icon of the Control group in the Communicator tab. The Plant Input List dialog box appears as shown in Figure 1.
Figure 1 Plant Input List dialog box
2. Add a plant input as the name of the actuator.
3. Add an expression function as a following figure.
Figure 2 Expression dialog box
4. Open the dialog box of Translational force by double clicking Translational1 in the Database window. And then input the expression function defined in the upper step.
Figure 3 Translational force dialog box
Step to identify plant outputs
The output of interest is the displacement and velocity between the piston and the cylinder body. This distance is in the X direction.
1. Click the Plant_Output icon of the Control group in the Communicator tab. The Plant Output List dialog box appears as shown in Figure 1. For more information, click here.
Figure 1 Plant Output dialog box
2. Add plant outputs as expression functions. At this dialog, the defined expression functions are as following figures.
Figure 2 Expression dialog box
Step to set interface information
1. Save the RecurDyn model in the normal fashion.
2. Click the FMI icon of the Control group in the Communicator tab. The FMI dialog box appears. For more information, click here.
Figure 1 Amesim dialog box [RecurDyn Host]
3. Select a type as Export
4. Enter the name of FMU file to create and click Export. The FMU file should be in the same folder with RecurDyn model. To see more information for additional functions, click here.
5. Click OK to save interface information.
6. Save the RecurDyn model and terminate the RecurDyn program.
Note
If using AMESim v14, copy CoSimRD.dll and CoSimRD.lib files in “.\RDFMICS\binaries\win64 folder” to the same folder with AMESim model.