Community Scoring

Was this page helpful?

Page statistics

3182 views2 edit(s)70422 characters(s) Page last modified 11:40, 8 Nov 2010 by andyv
How to add your knowledge

Overview of the PLC database file

    Table of contents
    No headers

    You can modify the PLC database file manually or using the PLC Database File Editor (recommended method). The AutoCAD Electrical PLC database file (ace_plc.mdb) is installed in

    • Windows XP: C:\Documents and Settings\{username}\My Documents\Acade {version}\AeData\Plc
    • Windows Vista, Windows 7: C:\Users\{username}\Documents\Acade {version}\AeData\Plc

    By default the AutoCAD Electrical PLC database file contains the "PLC_Manufacturer", "PLC_MSG" and "PLC_Styles" tables in addition to several module specification and module terminal information tables.

    Note: PLC Parametric build symbols are best used on ANSI D-Size and IEC A1 page sizes.

    PLC_Manufacturer

    This table lists the Manufacturer, Series, Type, and Table Name.

    PLC_MSG

    This table is for internal use only. We recommend that you do not edit this table.

    PLC_Styles

    This table lists the box settings on a per-style basis.

    There are two tables for each module type. The Module Specification table contains information such as the model number, type, description, rating, and rectangle offset values. The Module Terminal Information table (ends with "_Data") contains terminal information such as code value, terminal sequence number, block name, and terminal attributes.

    Module Specification table

    Example: "allen-bradley_1746_analog_input"

    This file lists information that appears in the selection line of the module listed in the bottom half of the PLC Module Selection dialog box.

    CODE

    Model number

    TYPE

    Module type

    POINTS

    Number of I/O points

    DESCRIPTION

    Description displayed in selection dialog box

    ADDRESS_BASE

    Base numbering value (octal, decimal, hex)

    ADDRESS_FORMAT

    Reserved for future use; currently empty

    OPTIONAL_BLOCK

    Optional block to insert at bottom of module (i.e. DIP switches)

    RATING

    Voltage rating

    LISP

    AutoLISP file to run at module insertion time

    BOX_RIGHT, BOX_LEFT, BOX_TOP_BOX_BOTTOM

    BOX_SPLIT_BOTTOM, BOX_SPLIT_TOP

    METRIC_BOX_RIGHT, METRIC_BOX_LEFT, METRIC_BOX_TOP, METRIC_BOX_BOTTOM

    METRIC_BOX_SPLIT_BOTTOM, METRIC_BOX_SPLIT_TOP

    Offsets (right, left, top, and bottom) for the rectangle that is drawn around the finished stack of symbols to create an overall module.

    Note: You can suppress the rectangular box around the finished module by removing these entries from the specification table of a module.

    CATEGORY

    Specifies the insertion position for the module when inserted during the Spreadsheet to PLC I/O utility.

    • 1 = inserted near the right or bottom bus line of the ladder.
    • 2 = inserted near the left or top bus line of the ladder.
    • 3 = inserted centered between the bus lines of the ladder.

    The following are optional parameters for parametric build symbol placement:

    Box color/linetype/layer

    You can instruct AutoCAD Electrical to draw the rectangular box using non-default line properties for color, layer, linetype, or ltscale. Encode this information as a series of keywords as if you were using the CHPROP command in AutoCAD to make the change. The keywords are encoded into the "BOX_RIGHT", "BOX_LEFT", "BOX_TOP" and "BOX_BOTTOM" entries in the specification table of a module. For example, the following makes the left and right-hand sides of the enclosing box cyan using linetype 'Hidden2' and the top and bottom blue using the default linetype:

    BOX_RIGHT=0.5 COLOR CYAN LTYPE HIDDEN2

    BOX_LEFT=0.5 COLOR CYAN LTYPE HIDDEN2

    BOX_TOP=0.5 COLOR BLUE

    BOX_BOTTOM=0.375 COLOR BLUE

    Module Terminal Information table (ends with _Data)

    Example: "allen-bradley_1746_analog_input_Data"

    This file contains terminal information for the module type.

    CODE

    Catalog number of the module

    SEQUENCE

    Terminal sequence number

    BLOCK

    Block name used for insertion. The "?" gets filled in during insertion and the block name uses either a "H" or "V" depending on the selected orientation.

    ATTRIBUTES

    Optional attributes for the terminal. Includes user attributes, %%x prompt values, address prefix or suffix, non-sequential addresses, breaks, reprompt of I/O address, including unused terminals and special spacing.

    The following are optional parameters for parametric build symbol placement:

    Use of %%x prompt values

    After entering values such as rack, group or slot, the values are available for use on any subsequent I/O point of the module. If you want to use each I/O point's TERMDESC_ attribute to carry the I/O address in Rack/Group, bit number format, do the following:

    1. Prompt for Rack and Group values in the first entry of the module.

      %%1PROMPT=Rack number;%%2PROMPT=Group number.

    2. Encode the TERMDESC_ value using %%1, %%2, and a bit number suffix.

      TERMDESC_=1:%%1%%2/00 for the first I/O point

      TERMDESC_=1:%%1%%2/01 for the 2nd I/O point

    User Attributes

    You can add and annotate your own attributes to the parametric symbols if they are referenced in the Module Terminal Information table.

    Address prefix or suffix

    You can include a prefix or suffix to each address value that is inserted. For example, if you want "IN-" to come in as a prefix for inputs on a given module you would edit the database file and add ";TAGA_=IN-%%N" to each I/O parametric data entry in the block of data of the module. The %%N represents the calculated I/O address and the "IN-" is the prefix that gets added.

    Dealing with non-sequential addresses

    Some modules may have I/O address assignments that do not sequentially increment from one terminal to the next. Use the "%%A" flag to represent the beginning address of the module. In the example shown below, the address sequence is non-sequential. Note the use of the "TAGA_=%%A+ <some value>" flags.

    CODE

    BLOCK

    ATTRIBUTES

    D2-08ND3

    HP?--WLR

    TERM_=C,C;MFG=PLC-DIRECT;CAT=D2-08ND3;...

    D2-08ND3

    HP?WA-DQ

    TERM_=0

    D2-08ND3

    HP?WA-DR

    TERM_=4;TAGA_=%%A+4

    D2-08ND3

    HP?WA-DQ

    TERM_=1;TAGA_=%%A+1

    D2-08ND3

    HP?WA-DR

    TERM_=5;TAGA_=%%A+5

    D2-08ND3

    HP?WA-DQ

    TERM_=2;TAGA_=%%A+2

    D2-08ND3

    HP?WA-DR

    TERM_=6;TAGA_=%%A+6

    D2-08ND3

    HP?WA-DQ

    TERM_=3;TAGA_=%%A+3

    D2-08ND3

    HP?WA-DR

    TERM_=7;TAGA_=%%A+7

    Forcing a break

    You can pre-define a module break point in the Module Terminal Information table. Add "\SPECIAL=BREAK" on the line where you want the break to occur.

    20 terminals are allowed on the parametric build symbols by default. If the module exceeds 20 terminals the break is placed in a logical location; such as after a grouping of I/O addressing. For example, a 32 I/O point card could have 36 terminals on it, the module definition would run the break command at 18 (after the first set of 16 I/O addresses). If you want to break the module sooner you can use the PLC Database File Editor to add the break command or do the following in the Module Terminal Information table.

    HP?WA-D;TERM_07\SPECIAL=BREAK

    Triggering for reprompt of I/O address

    Some modules include inputs and outputs. You can trigger AutoCAD Electrical to prompt for a new beginning address number when the parametric build flips from inputs to outputs or vice versa. Add "\SPECIAL=ADDR_OUT" on the line where you want a prompt for a new output address or add "\SPECIAL=ADDR_IN" if you want a prompt for a new beginning input address.

    Including unused terminals

    Some modules may have terminals that are not used. Unused terminals are skipped by default, resulting in a compact representation of the module. You can set up the PLC database file to show unused terminals optionally by adding "\SPECIAL_INCLUDE" and "\SPECIAL_EXCLUDE" in the Module Terminal Information table.

    Special spacing

    Normally when AutoCAD Electrical generates a PLC module, it uses the current rung spacing for I/O and wire connection point spacing. You can override it by using the "\SPECIAL=SPACINGFACTOR=<val> in the Module Terminal Information table. When AutoCAD Electrical sees it on an I/O point or wire connection entry line, it uses a factor of the rung spacing. For example, a "\SPECIAL=SPACINGFACTOR=0.5" for a given I/O or wire connection entry flags AutoCAD Electrical to insert this point down 0.5 rung spacing instead of a full rung spacing. A value of 1.5 inserts the point down an extra half run spacing than normal while 0.0 inserts the I/O point at the same location as the preceding one.

    For example, the following four lines in a parametric data file inserts four points spread out over four-ladder rung spaces:

    HP?WA-D;TERM_=01

    HP?W--;TERM_=COM

    HP?W--;TERM_=VDC

    HP?WA-D;TERM_=02

    If you want the two middle terminal symbols to group into one rung space instead of taking up two spaces, edit the file to read:

    HP?WA-D;TERM_=01

    HP?W--;TERM_=COM;\SPECIAL=SPACINGFACTOR=0.5

    HP?W--;TERM_=VDC;\SPECIAL=SPACINGFACTOR=0.5

    HP?WA-D;TERM_=02

     

    Procedures:

    Copy modules

    You can copy an entire module into a new module using the PLC Database File Editor.

    1. Click Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png
    2. In the PLC selection list, right-click on the module that you want to copy from and select Copy.
    3. Right-click the Type in the tree that you want to copy to.

      For example, if you want to copy the new module to Allen-Bradley, 1746, Discrete Input, you would find Discrete Input under Allen Bradley ac.menuaro.gif 1746 in the tree.

    4. Select Paste Module.

      If you attempt to copy a PLC Module part number into a PLC Type that already has a module with the same name, the PLC Database File Editor prompts you to change the name of the new module being copied.

    5. To change the name for the module, right-click the module, select Rename, and enter a new name.

     

    Adjust the terminal information

    When you highlight an exiting module part number in the PLC Database File Editor tree structure, the terminal grid control becomes populated with the terminal information previously defined for the module.

    1. Click Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png
    2. Select the module to modify from the tree structure.

      Inside the terminal grid control there are drop-down list boxes, text boxes, and context menus that you can use to modify the terminal information.

    3. Select the terminals to modify. You can select multiple fields to edit at the same time by dragging your mouse across contiguous fields or by holding down the Control key while selecting non-contiguous fields. You can also select multiple terminals if you want the terminals to carry the same information.
      • If you want to modify the terminals one at a time, either make your changes on the PLC Database File Editor dialog box (using the drop-down list boxes or text boxes) or select a single terminal (making sure to select the entire row if you want to change more than one field), click the right mouse button, and select Edit Terminal from the menu.
      • If you want to modify multiple terminals at the same time, select the terminals, click the right mouse button, and select Edit Terminal from the menu.
    4. In the Select Terminal Information dialog box, make any modifications to the selected terminals. Changes that you make in this box will be applied to all of the selected terminals in the terminal grid control.
    5. Click OK to save your changes and return to the PLC Database File Editor.
    6. Click Done to save your changes and exit the dialog box or click Done/Insert to save your changes and insert the PLC module into your drawing.

     

    References

    PLC database file editor

    This tool creates and modifies PLC modules. All editing and creation of PLC data is stored within the PLC Database File (ACE_PLC.MDB).

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    PLC Selection List

    Provides a complete list of the PLC data files available to AutoCAD Electrical. The PLC Selection list uses an expandable and collapsible tree structure for the PLC categories. These PLC categories are: Manufacturer, Series, Type, and Part Number. The tree structure supports right-click controls for copying, renaming, deleting, and creating PLC data.

    The right-click controls for the selection list are:

    New Manufacturer

    (available only for the PLC branch of the tree structure) Defines a new manufacturer. The manufacturer then appears in the PLC Selection tree structure in alphabetical order.

    New Series

    (available only for the Manufacturer branch of the tree structure) Defines a new PLC series underneath the respective Manufacturer. The series then appears in the PLC Selection tree structure in alphabetical order.

    New Type

    (available only for the Series branch of the tree structure) Defines a new PLC type underneath the respective Manufacturer and Series. The type then appears in the PLC Selection tree structure in alphabetical order.

    New Module

    (available only for the Type and Module/Code branches of the tree structure) Defines a new PLC module underneath the respective Manufacturer, Series, and Type. The module then appears in the PLC Selection tree structure in alphabetical order.

    Paste Module

    (available only for the Type branch of the tree structure) Copies the PLC module to the highlighted PLC Type branch. This option becomes active after you copy or cut a PLC module inside the Module/Code branch of the tree structure.

    Delete

    Deletes an entire PLC module, type, series, or manufacturer from the tree structure and the PLC database (ACE_PLC.MDB).

    Rename

    Renames a PLC module, type, series, or manufacturer in the tree structure. You cannot have duplicate names in the same branch of the tree structure.

    Cut

    (available only for the Module branch of the tree structure) Cuts the highlighted module code from the tree structure. You can then paste the code into the same PLC Type, or a new PLC Type category.

    Copy

    (available only for the Module branch of the tree structure) Copies the highlighted module code from the tree structure into the same PLC Type, or a new PLC Type.

    Note: If you attempt to copy a PLC Module part number into a PLC Type that already has a module with the same name, the PLC Database File Editor prompts you to change the name of the new module being copied.

    Terminal Grid Control

    Highlight a module from the PLC Selection tree structure to populate the Terminal Grid Control with the terminal information that was previously defined for the module. When creating a PLC module, the PLC Database File Editor lists as many blank Terminal Type fields since are terminals defined within the New Module dialog box.

    Terminal Type

    Specifies the type for the terminal. Select from the various predetermined types of addressable terminals and non-addressable terminals.

    Show

    Shows terminals that are not used. If Include Unused/Extra Connections in the Module Layout dialog box is selected, all terminal entries marked (in the PLC Database File Editor dialog box) with 'when excluding unused' are skipped and all terminal entries marked with "when including unused" are shown.

    Optional Re-prompt

    Prompts for a new beginning address number when the parametric build flips from inputs to outputs or from outputs to inputs. On the line where you want AutoCAD Electrical to prompt for a new output address, select Output. If you want AutoCAD Electrical to prompt for a new input address, select Input from the list.

    Break After

    Specifies for the module to break automatically after a specific terminal type. To activate the prompt for an automatic break in the PLC module, select Break After.

    Spacing Factor

    Overrides the current rung spacing for I/O and wire connection point spacing. For example, a value of two inserts the point down two times the rung spacing instead of a full rung spacing.

    You can right-click any row in the grid control to activate a menu of commands that allows you to edit the terminal, insert a new terminal before or after the selected terminal in the grid control, or delete a terminal from the grid control. You can select multiple fields to update at the same time by dragging your mouse across contiguous fields or by holding down the Control key while selecting non-contiguous fields.

    Terminal Attributes

    Displays attributes associated to the selected terminal. These attributes can have predefined values, including some values that you specify at insertion time.

    New Module

    Opens a dialog box for defining the module descriptions and parameters. A series of boxes are used to type in or select the values required to define the module.

    Note: If you right-click a type or module in the PLC Selection window and select New Module, the New Module dialog box opens with data already specified for the Manufacturer, Series, and Series Type.

    Module Specifications

    Opens a dialog box for modifying some of the specifications previously defined during the creation of a new module.

    Note: The Manufacturer, Series, Series Type, Code, and Terminals fields are not active since they are under the control of the tree structure in the PLC Selection window and the total number of terminals listed in the Terminal Type grid control.

    Save Module

    Saves the module to the PLC database file. If you exit the PLC Database File Editor without clicking Save Module, you get a prompt asking whether to save your changes.

    Style Box Dimensions

    Opens a dialog box for defining the module box dimensions (such as the offset values and line properties) based upon the style number used when the PLC was created.

    Note: The Module Box Dimensions override the style dimensions.

    Settings

    Opens a dialog box for adding or updating the symbols available to build a module.

     

    PLC selection

    Selects a module to add to the terminal blocks from. Select the module from the list and click OK.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click the Settings button, then click the Add Blocks From Module button.

    The dialog box provides a complete list of the PLC modules available to AutoCAD Electrical. The Manufacturer Catalog list is compiled from the "ace_plc.mdb" file.

     

    Module box dimensions

    Defines the outer box dimensions of the module. The box dimensions are calculated from the insertion point of the parametrically built PLC symbols.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click the New Module or Module Specifications button, and then click the Module Box Dimensions button.

    Note: A value for the Split Top and Split Bottom dimensions must be set before you can specify their line properties.

    Module Box Dimensions

    Note: Enter at least one of the Top, Bottom, Left or Right dimension values to assign settings specific to this module.

    Sets 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, AutoCAD Electrical uses the rectangle Top and Bottom values.

    Line Properties

    Sets the properties for the lines that make up the box. You can set the color and linetype using the properties fields. To predefine the color, enter "COLOR colorname" into the box. For linetype, enter "LTYPE linetypename" into the box. See the CHPROP command in the AutoCAD Help for more information about the various properties you can set.

    If you do not want the line drawn, enter the keyword "ERASE" or "_E". If you want to apply some special procedure to the drawn line, for example, break the line across terminal graphics, you can reference your custom AutoLISP function in this box. Within your function use "(entlast)" to reference the drawn line entity.

     

    Select terminal information

    Adds or modifies the type of terminal being used. You can select multiple fields to edit at the same time by dragging your mouse across contiguous fields or by holding down the Control key while selecting non-contiguous fields.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Right-click in the terminal grid control section of the dialog box, and select Edit Terminal from the menu.

    The dialog box options enable depending on the fields selected at the time the dialog box was activated. For example, if you select the Show and Spacing Factor fields for multiple terminal entries in the Terminal Grid Control section of the PLC Database File Editor dialog box and then you activate this dialog box, you can update both fields through this dialog box for the selected terminals.

    Category

    Lists the terminal categories to select from. Top Input and Top Output are addressable terminals, while the Top Terminal category consists of non-addressable terminals. Other categories to select from are Input, Output, and Terminal.

    Types for Category

    Displays the types for the terminal category. Browse the list of images to determine which terminal type is appropriate for the terminal.

    Recently Used

    Shows an image of the terminals that were recently used.

    Show

    Specifies whether to show terminals that are not used. If the 'Include unused/extra connections' option in the Module Layout dialog box is selected, all terminal entries marked (in the PLC Database File Editor dialog box) with 'when excluding unused' are skipped.

    Optional Re-prompt Address

    Specifies whether to prompt for a new beginning address number when the parametric build flips from inputs to outputs or from outputs to inputs. On the line where you want AutoCAD Electrical to reprompt for a new output address, select Output. If you want AutoCAD Electrical to reprompt for a new input address, select Input from the list.

    Break After

    Specifies for the module to break automatically after a specific terminal type. To activate the prompt for an automatic break in the PLC module, check the Break After check box.

    Spacing Factor

    Overrides the current rung spacing for I/O and wire connection point spacing. For example, a value of 2 causes AutoCAD Electrical to insert the point down two times the rung spacing instead of a full rung spacing.

     

    New module

    Defines the module descriptions and parameters. A series of boxes are used to type in or select the values required to define the module.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click New Module.

    New Module Controls

    Specifies the Manufacturer, Series, Series Type, and Code (Catalog Number) for the new module. Select from the list or enter the name in the edit box.

    Note: If you right-click a type or module in the PLC Selection window and select New Module, the New Module dialog box opens with data already specified for the Manufacturer, Series, and Series Type.

    PLC Selection Expanded Description Listing Controls

    These controls display as an expanded description when the module is highlighted in the tree structure of the PLC Selection dialog box. They include:

    Description

    Describes the PLC module being defined.

    Module Type

    Gives an abbreviated type to the PLC module.

    Base Addressing

    Specifies whether the PLC module addressing follows an industry standard. Select from Octal, Decimal, Hexadecimal, and Prompt. Prompt asks you at module insertion time for Octal, Decimal, and Hexadecimal.

    Rating

    Specifies the power rating value for the PLC module.

    Terminals

    Specifies the total number of terminals defined on the PLC module.

    Note: It is not active since it is under the control of the total number of terminals listed in the Terminal Type grid control.

    Addressable Points

    Specifies the total number of termination points on the PLC module that receives the PLC address attributes.

    AutoCAD Block to insert

    Specifies an AutoCAD block file to insert directly below the last I/O point inserted parametrically. They are typically used for block files that represent DIP switch settings and notes on how to configure the PLC module.

    AutoLISP file to run at module insertion time

    Specifies an AutoCAD Lisp routine to run after the program executes the parametric build of the PLC module. They are typically used for inserting groups of symbols and wires, or modifying attributes on symbols to accommodate a more custom PLC module build.

    Module Box Dimensions

    Opens a dialog box for defining the outer box dimensions of the module. The box dimensions are calculated from the insertion point of the parametrically built PLC symbols.

    Module Prompts

    Opens a dialog box for defining up to nine prompts to use at the time of module insertion. You can specify the prompt number and the accompanying text, or you can remove prompts from this dialog box.

     

    Terminal block settings

    Adds or updates the symbols available to build a module.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click Settings.

    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. Define the block name, assign it to a terminal category for selection, give it a description, and assign a bitmap to uses for dialog box displays.

    Block File Name

    Defines the AutoCAD drawing file name that is inserted if this terminal is included in your PLC module. These PLC symbols are stored in the symbol library of the active project with the other AutoCAD Electrical component symbols. Their file names begin with the characters "HP" (Horizontal ladder rungs/PLC) or "VP" (Vertical ladder rungs/PLC) followed by a digit that corresponds to a PLC I/O style number.

    Category

    Defines the category for the terminal. When you add a new terminal, you select from a list of terminal categories and that group of terminals is displayed. There are some categories by default (such as Input or Output) but you can add your own by typing in the edit box. This new category is added to the list.

    Unique Description

    Specifies the description that appears underneath the terminal in the Select Terminal Information dialog box.

    Sample Bitmap File

    Specifies the bitmap file for the terminal type. They are visible on the Select Terminal Information dialog box. If you are adding your own terminals, you can create corresponding bitmap files. Enter your bitmap name in the box or Browse for it. The next time you select a terminal type, the bitmap is displayed.

    Graphics Style

    Specifies the graphical appearance of the PLC module. Styles 1-5 are predefined, styles 6-9 may be user-defined. Select a style number - a sample portion of a PLC module displays.

    There are about two dozen symbols (with a file name "HP?*.dwg" where "?" is the style number) associated with each style. They are located in

    • Windows XP: \Documents and Settings\All Users\Documents\\Autodesk\Acade {version}\libs\{library}\
    • Windows Vista, Windows 7: \Users\Public\Documents\\Autodesk\Acade {version}\libs\{library}\

    To create a style, copy symbols of an existing style to one of the unused style numbers (6-9) and edit each library symbol.

    View Drawing or View Bitmap

    Displays the AutoCAD .dwg or bitmap file for the selected terminal. You can see the attributes of a specific terminal and the placement of each.

    Add Blocks From Module

    Opens a dialog box for selecting a module to add terminal blocks from. Select the module from the list and click OK.

     

    Style box dimensions

    Defines the module box dimensions (such as the offset values and line properties) based upon the style number used when the PLC was created.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click Style Box Dimensions.

    Note: Set a value for the Split Top and Split Bottom dimensions before specifying their line properties.

    Graphics Style

    Specifies the graphical appearance of the PLC module. Styles 1-5 are predefined, styles 6-9 may be user defined. Select a style number - a sample portion of a PLC module displays.

    There are about two dozen symbols (with a file name "HP?*.dwg" where "?" is the style number) associated with each style. They are located in

    • Windows XP: \Documents and Settings\All Users\Documents\Autodesk\Acade {version}\libs\{library}\
    • Windows Vista, Windows 7: \Users\Public\Documents\Autodesk\Acade {version}\libs\{library}\

    To create a style, copy symbols of an existing to one of the unused style numbers (6-9) and edit each library symbol.

    Module Box Dimensions for Selected Style

    Sets 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.

    Line Properties

    Sets the properties for the lines that make up the box. You can set the color and linetype using the properties fields. To predefine the color, enter "COLOR colorname" into the box. For linetype, enter "LTYPE linetypename" in the box.

     

    Module specifications

    Modifies specifications previously defined during the creation of a new module.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click Module Specifications.

    Module Controls

    Specifies the Manufacturer, Series, Series Type, and Code (Catalog Number) for the module.

    Note: These fields are not active since they are under the control of the tree structure in the PLC Selection window.

    PLC Selection Expanded Description Listing Controls

    These controls display as an expanded description when the module is highlighted in the tree structure of the PLC Selection dialog box. They include:

    Description

    Describes the PLC module being defined.

    Module Type

    Gives an abbreviated type to the PLC module.

    Base Addressing

    Specifies whether the PLC module addressing follows an industry standard. Select from Octal, Decimal, Hexadecimal, and Prompt. Prompt asks you at module insertion time for Octal, Decimal, and Hexadecimal.

    Rating

    Specifies the power rating value for the PLC module.

    Terminals

    Specifies the total number of terminals defined on the PLC module.

    Note: It is not active since it is under the control of the total number of terminals listed in the Terminal Type grid control.

    Addressable Points

    Specifies the total number of termination points on the PLC module that receives the PLC address attributes.

    AutoCAD Block to insert

    Specifies an AutoCAD block file to insert directly below the last I/O point inserted parametrically. They are typically used for block files that represent DIP switch settings and notes on how to configure the PLC module.

    AutoLISP file to run at module insertion time

    Specifies an AutoCAD Lisp routine to run after the program executes the parametric build of the PLC module. They are typically used for inserting groups of symbols and wires, or modifying attributes on symbols to accommodate a more custom PLC module build.

    Spreadsheet to PLC I/O Utility Insertion Position

    Specifies the insertion position for this module when inserted during the Spreadsheet to PLC I/O utility. Select from the list of options, Center, Left/Top, or Right/Bottom.

    • Center - inserted centered between the bus lines of the ladder.
    • Left/Top - inserted near the left or top bus line of the ladder.
    • Right/Bottom - inserted near the right or bottom bus line of the ladder.

    Module Box Dimensions

    Opens a dialog box for defining the outer box dimensions of the module. The box dimensions are calculated from the insertion point of the parametrically built PLC symbols.

    Module Prompts

    Opens a dialog box for defining up to nine prompts to use at the time of module insertion. You can specify the prompt number and the accompanying text, or you can remove prompts from this dialog box.

     

    Prompts at module insertion time

    Defines up to nine prompts to use at the time of module insertion. You can specify the prompt number and the accompanying text, or you can remove prompts from this dialog box.

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    Click the New Module or Module Specifications button, then click the Module Prompts button.

    You can define up to nine different prompts at insertion time.

    • To assign a prompt, select the prompt number from the list, enter the prompt text in the edit box, and click Change.
    • To modify a prompt, select the prompt number from the list, modify the text in the edit box, and click Change.
    • To remove a prompt, select the prompt number from the list and click the Remove Selected Prompt button.

    Example

    If you assigned RACK NUMBER to the prompt %%1 and SLOT NUMBER to the prompt %%2. At insertion time, the I/O Point dialog box opens. Enter values for the RACK NUMBER and SLOT NUMBER fields right before the module is built. The value you enter in the RACK NUMBER edit box is temporarily saved in memory under the variable name %%1. The SLOT NUMBER value is saved under the %%2 variable name.

    Use these prompts in the attribute grid to fill in attribute values or partial attribute values at module insertion time.

     

    PLC Database Migration Utility

    The Spreadsheet to PLC/IO utility uses the module category to calculate the insertion point of a module.

    • Input module - inserted near the right or bottom bus line of the ladder.
    • Output module - inserted near the left or top bus line of the ladder.
    • Combination module - inserted centered between the bus lines of the ladder.

    Before AutoCAD Electrical 2009, the Spreadsheet to PLC/IO utility determined the module category based on the value in the DESCRIPTION field or the database table name. For example, if the DESCRIPTION field contained the string "*IN*", it was considered an input module. In AutoCAD Electrical 2009 and later, the PLC database contains a CATEGORY field.

    PLC Database Migration Utility

    ac.mouse.gif Ribbon: Project tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif PLC Database Migration Utility.icon_cmd_ace_migrateplc.png

    ac.keyboard.gif Command entry: AEPLCMIGRATE

    PLC Database File Editor

    ac.mouse.gif Ribbon: Schematic tab ac.menuaro.gif Other Tools panel ac.menuaro.gifac.ribbonexpander.gifac.menuaro.gif Database Editors drop-down ac.menuaro.gif PLC Database File Editor.icon_cmd_ace_plcnew.png

    ac.mouse.gif Toolbar: Insert PLCicon_cmd_ace_plcnew.png

    ac.mouse.gif Menu: Components ac.menuaro.gif Insert PLC Modules ac.menuaro.gif PLC Database File Editor

    ac.keyboard.gif Command entry: AEPLCDB

    When you use the PLC Database Editor, if the CATEGORY field is not present in the table for the selected series type, you are prompted to run the PLC Database Migration utility.

    The PLC Database Migration utility compares the values in the DESCRIPTION field of the PLC database to values you assign as input, output, or combination. If a match is not made, the database table name is compared. If there is a match to the DESCRIPTION field or table name, the CATEGORY value is entered for that module.

    • 1 - Input module
    • 2 - Output module
    • 3 - Combination module

    Input

    Enter text, comma delimited, used to match to the DESCRIPTION value. If there is a match, the module is assigned a CATEGORY value of 1 for input.

    Output

    Enter text, comma delimited, used to match to the DESCRIPTION value. If there is a match, the module is assigned a CATEGORY value of 2 for output.

    Combination

    Enter text, comma delimited, used to match to the DESCRIPTION value. If there is a match, the module is assigned a CATEGORY value of 3 for combination.

    Overwrite existing settings

    Select to overwrite any existing CATEGORY values. If not selected, only blank CATEGORY fields are modified.

    The PLC Database Migration utility updates all tables in the PLC database based on these values.

    Note: Blank spaces within the text are included as part of the search string. For example, "IN{space}*" matches "IN module" but does not match "INPUT".

    If no match is made for a module, the CATEGORY field is not modified. Use the PLC Database File Editor to assign a category to a module. Select a "Spreadsheet to PLC I/O Utility Insertion Point" option on the Module specifications dialog box.

    How to re-run the PLC Database Migration Utility

    If you do not get the desired results you can run this utility again.

    1. Using Microsoft Access, open the PLC database file ace_plc.mdb.
    2. Open the table for the series type.
    3. Remove the CATEGORY field from the table.
    4. Save the database file.
    5. In AutoCAD Electrical, run the PLC Database Migration Utility.
    6. Enter the text strings for each category.
    7. Click OK.