You must define a rule for every possible connection that requires the program to wire to a terminal that may not be shown in the schematic. For example:
<Enclosure from="DOOR" to="LEFTPANEL" location="@SameSection@" rule="L" fromTermSide="I-E" />
Here is a definition of each parameter in the above rule:
- from - The name of the panel that you are wiring from.
- to - The name of the panel that you are wiring to.
- location - This parameter takes four possible values:
- rule - The rule is used to define which terminals the program should wire to. Use the terminal designations defined earlier to create the rule. You can define the rule that you need by using the appropriate syntax.
- , (comma) - Used as a delimiter to separate alternative terminals that can be used if the first terminal designation is not available. For example: T,R.
- - (dash) - Used to indicate a connection between two different terminal designations on the same side (either the from or to side). For example: T-R.
- : (colon) - Used to separate terminal designations on the from side of the connection from the terminal designations on the to side.
Wire to one terminal on the from side designated as T:
Wire to one terminal on the to side:
Wire to two different terminals designated as C and T in different sections:
Wire to two terminals in the from side and to two terminals on the to side:
- I - Single terminal with both connections on the internal side.
- E - Single terminal with both connections on the external side.
- I-E - The wire coming into the terminal connects to the internal side and the wire going out connects to the external side.
- I,E - When you have more than one terminal connected together you can separate them with a comma. In this case it wires into and out of the first terminal on the internal side and into and out of the second terminal on the external side.
fromTermSide - In this parameter you specify which sides of the terminal should be wired to (Internal vs. External). Enter an I for internal and an E for external, which represent the left and right sides of the terminal, respectively. Additional operators can be used to handle cases where you wire to both sides of a terminal and/or wire between multiple terminals.
toTermSide - This parameter accepts the same syntax as the fromTermSide parameter. You only need to enter a value for this parameter if there is a second terminal in a different section on the destination side that requires a terminal. This is commonly the case when going from one section to another.
group - This parameter is used to group connections on a plug. If two rules use the same group name, the software will allow them to wire to the same plug. If no group name parameter is specified, the software will assume all rules to have the same group name. For example:
<Enclosure from="*" to="*" location="@DifferentSection@" rule="H_P:H_C" fromTermSide="E-I" toTermSide="I-E" group="cab2-A"/>
In the following example, group P is defined as a horizontal harness (H_P), and group C as a horizontal harness (H_C). A match is done to find device IDs that start with P and these are in group P.
<Enclosure from="*" to="*" location="@DifferentSection@" rule="H_P:H_C" fromTermSide="E-I" toTermSide="I-E" group="H_P=P, H_C=C"/>
(and under TerminalDesignations)
<TerminalDesignation terminal="H_P" enclosure="HORIZONTAL_HARNESS" maxConnection="1" match="DeviceID:P=^P.*"/>