By default, when creating a PLC module the PLC Database File Editor lists as many blank field Terminal Types as there are terminals defined in the New Module dialog box.
You now have a new blank input module with nine terminals and eight addressable I/O points. You now need to define some information for each terminal in the module, the most important being what symbols AutoCAD Electrical toolset should stack together to build the module. Usually the top-most symbol for the module is a little different from the rest so that it can carry some basic information for the module that only needs to occur once in the final symbol.
The Select Terminal Information dialog box appears. There are 3 categories for top symbols: Top Input, Top Output, and Top Terminal. Top Input and Top Output are addressable terminals, while the Top Terminal category consists of non-addressable terminals.
The available terminals for that category appear along with any recently used terminals. Each terminal shown is slightly different. It may have an input wire connection terminal or have terminals for both input and output, or it may not have a wire connection.
The selected terminal is assigned to the Terminal Type in the PLC Database File Editor dialog box. AutoCAD Electrical toolset looks at the block to see what attributes come in when the block is inserted. Some of the attributes come in with predefined values that can be overwritten. You will see these predefined values in the grid below the terminal type list.
All seven terminals are assigned at the same time.
As an alternative to the Select Terminal Information dialog box, you can use the drop-down list of predetermined Terminal Types. Click the arrow for the Terminal Type and select from the list of available terminal types.
Some modules may have terminals that are not used. When you build your PLC module on an AutoCAD Electrical toolset drawing there is a choice inside the Module Layout dialog box to include unused/extra connections. When this toggle is not selected, all terminal entries marked as "Show: When Including Unused" in the PLC Database File Editor are skipped. When this toggle is selected, all entries marked with "Show: When Excluding Unused" are skipped. This gives flexibility to how a module is represented.
You can trigger AutoCAD Electrical toolset to prompt for a new beginning address number when the parametric build flips from inputs to outputs or vice versa. On the line where you want AutoCAD Electrical toolset to re-prompt for a new output address, select Output. If you want a re-prompt for a new input address, select Input from the list.
When AutoCAD Electrical toolset generates a PLC module, it uses the current rung spacing for I/O and wire connection point spacing. When a Spacing Factor is specified, AutoCAD Electrical toolset sees this spacing factor value on any terminal type I/O point or wire connection entry line, it uses a factor of the rung spacing. For example, a 2 for a given entry inserts this point down two times the rung spacing instead of a full rung spacing. A value of 1.5 inserts the point down an extra half rung spacing. A value of 0.0 puts the particular I/O point at the same location as the preceding one.
The Style Box Dimensions dialog box defines the module box dimensions (such as the offset values and line properties) based upon the style number used when the PLC was created.
There are about two dozen symbols (with a file name "HP?*.dwg" where "?" is the style number) associated with each style in the library folder. To create a style, copy an existing style's symbols to one of the unused style numbers (6-9) and edit each library symbol.
Library folder: C:\Users\Public\Documents\Autodesk\Acade {version}\Libs\{library}\
These values set the right, left, top, and bottom offsets for the rectangle that surrounds the module. The optional Split Top and Split Bottom specify the offsets for a split module where Split Top specifies the offset for the top of a split module and Split Bottom specifies the offset for the bottom of the split module. If left blank, the rectangle Top and Bottom values are used.
The Terminal Block Settings dialog box is used to manage the library symbols in the PLC Database File Editor. You can add a terminal to the list by clicking in any box in the last entry of the list. A blank entry line is added to the bottom of the list. You must define the block name, assign it to a terminal category for selection, give it a description, and assign a bitmap to be used for dialog box appears.
The list shows the block name, category, unique description, and sample bitmap file for each terminal type.
Block Name |
As defined when creating the parametric PLC blocks. Block file names adhere to the naming conventions to identify the PLC style numbering in the third position and the orientation in the first position. |
Category |
Used in the PLC Database File editor to easily find specific types of terminals. |
Unique Description |
These descriptions are used during the terminal type selection process. They need to be maintained as unique |
Sample Bitmap File |
This file is also used by the PLC database File editor to display a view of the terminal for selection. Symbols and BMP files need to be created outside of the PLC database file editor. Symbols are found in the standard library search path, while PLC Bitmap images are maintained in the same OS folder as the PLC Database itself, C:\Users\{username}\Documents\Acade {version}\AeData\{language code}\PLC |
The Terminal Block Settings dialog box lists the library symbols for the terminal blocks that appeared in the Select Terminal Information dialog box. Notice that row 1 lists the block file name and sample bitmap file for the terminal we selected for Terminal Type 1.
Graphical styles are used during the operation of the PLC Parametric Selection process. These bitmap images appear during normal operation and selection of PLC entries and are found at C:\Program Files\Autodesk\AutoCAD {version}\Acade. Use the same file names that are already there: P_STYLEx.bmp where 'x' is the plc style 1-9.
The attributes associated to the block, along with any predefined values, appear below the Tree Structure section of the dialog box.
Notice that the value for the LINE1 is RACK %%1 and LINE2 is SLOT %%2. The prompting values of %%1 and %%2 are populated with what you type into the text box when prompted. The static text of Rack and Slot appears in the attribute once the PLC module is created. There are multiple prompting variables from %%1 through %%9. Prompting strings can be added to any existing attributes on the terminal block. If you wanted to add additional prompts with out using the existing attributes you would have to modify the block file to add additional attributes such as Line3.
Top terminals are the only symbols which can accept prompts during the parametric PLC insertion process.
Besides the Module Prompt variables, AutoCAD Electrical toolset also supports the use of an address variable. When the module is inserted, the PLC I/O addresses are calculated based on some AutoCAD Electrical toolset settings and the module settings. You can trigger AutoCAD Electrical toolset to include a prefix or suffix to each address value it inserts.
The %%N represents the calculated I/O address and the IN- is the prefix that gets added to the address value. You can also use the prompt values. For example, if you want to permanently encode the rack and group numbers (%%1 and %%2 prompts) into each I/O address value, encode each I/O address entry in the date file with "TAGA_=%%1%%2%%N."
The PLC Parametric Selection dialog box appears.
Your module should look like the following. The Manufacturer, Catalog Number, and Description attributes also display at the top of the module (not shown).