You can include the motor symbol tag number assignment in other components in the circuit. It requires coordination between the motor symbol insertion and the insertion of the other components. The motor symbol must insert before these other components. The order of insertion is controlled by the ORDER attribute value on the marker blocks within the circuit template drawing. The marker block ORDER attribute value for the motor symbol must be a lower number than the ORDER values of the marker blocks for the other components in the circuit template drawing. When the other components are inserted, the motor tag value can be incorporated into the subsequent component tags.
There can be multiple selections within the group. For example, there is a selection for the type of disconnecting means, and a selection to include an auxiliary contact. Each selection is assigned a numerical value from the UI_VAL field. The values are added together to determine the appropriate action for this combination of selections. The sum is matched to a value in the UI_SEL field. Once this match is made, the COMMAND_LIST value, ANNOTATE_LIST value, and so on, are used to insert and annotate the selections.
(c:ace_cb_anno #data 0)(c:ace_cb_save "@MOTOR_NUM@" "TAG1*" nil 1)
The second one, c:ace_cb_save, saves the TAG1 attribute value on the motor in to memory under an index tag of “@MOTOR_NUM@”. This value can be referenced when the subsequent component marker blocks are processed.
(c:ace_cb_insym #xyz nil "VCA113_1-" #scl 8 "%N=@MOTOR_NUM@")
The last argument of this API call, “%N=@MOTOR_NUM@”, tells Circuit Builder to use the TAG1 value from the motor, saved as “@MOTOR_NUM@”, as the number part of the tag for this component. For example, if the component tag format is defined as “%S-%F-%N”, the numeric part of the motor tag is used for the “%N” part of the generated component tag.
You can also define this using a fixed _TAGFMT option. Using this approach overrides the component tag format defined for the drawing. Some examples: