DELMIA Functions

DELMIA functions are specific for use by CERUN when running the control emulator integrated within the Dassault Systèmes CATIA V5 or V6 products, using a DELMIA machine model. These functions can be used to identify and move auxiliary model axes.

The $FMSCHUCK Function

\textbf{{\char36}FMSCHUCK}\textbf{(}\icamhsp{0.707mm}\mathit{n}\begin{pmatrix}\!,\!\begin{array}{l}\textbf{ON}\\\textbf{OFF}\end{array}\!\end{pmatrix}\icamhsp{0.707mm}\textbf{)}

Clamp or unclamp a chuck device

Returns: Numeric

The $FMSCHUCK function clamps (ON) or unclamps (OFF) the DELMIA chuck identified by the number n, where 1 is the chuck on the main turning spindle and 2 is the chuck on the sub-spindle. A value of (one) 1 is returned if the function is successful, otherwise 0 (zero) is returned. This function is only available with CATIA V6 2015x or later.

The $FMSID Function

\textbf{{\char36}FMSID}\textbf{(}\icamhsp{0.707mm}\textbf{AXIS},\!\begin{pmatrix}\!\begin{array}{l}\mathit{n}\\\mathtt{\char39}\mathit{name}\,\mathtt{\char39}\end{array}\!\end{pmatrix}\icamhsp{0.707mm}\textbf{)}

Get the component ID of a DELMIA axis

Returns: Numeric

The $FMSID function returns the component ID of the DELMIA axis identified by the number n or the string name. The returned component ID can be used in $FMSIDN, $FMSIDT and $FMSMOVE functions to obtain axis properties or to move the given axis. A value of 0 (zero) is returned if the DELMIA axis number does not exist.

The $FMSIDN Function

\textbf{{\char36}FMSIDN}\textbf{(}\icamhsp{0.707mm}\mathit{id}\icamhsp{0.707mm}\textbf{)}

Get the name of a component, given its ID

Returns: String

The $FMSIDN function returns the name of the component identified by the component ID specified by id. Component ID’s are obtained using the $FMSID function.

The $FMSIDT Function

\textbf{{\char36}FMSIDT}\textbf{(}\icamhsp{0.707mm}\mathit{id}\icamhsp{0.707mm}\textbf{)}

Get the type of a component, given its ID

Returns: Numeric

The $FMSIDT function returns one of the following numeric code types that identify the component ID specified by id. Component ID’s are obtained using the $FMSID function.

0:

Unknown type

4:

Linear axis

5:

Rotary axis

The $FMSMOVE Function

\textbf{{\char36}FMSMOVE}\textbf{(}\icamhsp{0.707mm}\mathit{id},\icamhsp{0.707mm}\mathit{position},\icamhsp{0.707mm}\mathit{velocity}\icamhsp{0.707mm}\raise0.05ex\hbox{$\begin{bmatrix},\!\begin{array}{l}\textbf{NOW}\\\textbf{NEXT}\end{array}\!\end{bmatrix}$}\icamhsp{0.707mm}\textbf{)}

Move a model axis

Returns: Numeric (always 1)

The $FMSMOVE function moves the model axis identified by the component ID specified by id (axis ID’s are obtained using the $FMSID function), to the specified position in model axis units, at the specified velocity in model units per minute.

If NEXT is specified, this axis motion will be deferred and included with the next model motion event. NOW (the default) causes the axis to move immediately. All pending NEXT motions can be processed by calling $FMSMOVE(0,0,0,NOW).