Retrieve A Unique ID ( Number ) Converted from A Motion Group Name


Retrieve a numeric type value.

ASTER::EXPRESSION::ObjectControl::Retrieve a unique ID ( number ) converted from a Motion Group Name.

Convert a Motion Group Name registered in the motion controller to a unique ID:

  • For group management, the motion controller assigns each Motion Group a unique number (unique ID) that does not overlap with other groups.

Motion Group Names and their Unique IDs form pairs.

A Motion Group Name can be converted into a number between 0 and 255. The same Unique ID is retained as long as the Motion Group is not removed from the controller. When the group is deleted, the Unique ID is returned to the controller and can be reused at an appropriate time under the controller’s management.

Please note that if groups are repeatedly registered and deleted, the Unique ID may be reused, and depending on the timing, the same number as before may be obtained.


Parameter:

Provide the Motion Group Name you want to convert to a Unique ID as an argument.

ExNumNm2Uid( "ASTER", OName$( "yellow" ) )
  • OName$( "yellow" ) is a standard CF25 function for retrieving object names.

This sample parameter indicates that the Motion Group Name registered in the motion controller uses the object name.


How to Use

Minion Minion

In the above event, instances in the Sleep state are first detected using Event Detection.

Next, Instances in the Sleep state that have registered the object name OName$(“yellow”) as the Motion Group Name are identified by converting the Motion Group Name into a Unique ID.

This converted numerical value is compared with the ExNumuid(“ASTER”) obtained from Event Detection. If the two values match, the condition true becomes valid.

Minion Minion