Quantcast
Channel: OpenPlant | AutoPLANT
Viewing all articles
Browse latest Browse all 12277

Wiki Page: How is data passed from the project database onto an Instrumentation & Wiring Diagram?

$
0
0
Applies To Product(s): Instrumentation & Wiring Version(s): V8i Environment: N\A Area: N\A Subarea: N\A Original Author: Brandon Moberg, Bentley Product Advantage Group In the customization of Instrumentation & Wiring tokens, templates and wiring diagrams the question comes to mind: How does the data from the Plant Project Database go via the template onto the actual newly created drawing? Data is passed thru the template into the new drawing created using System Queries. These queries temporarily hold data and are rebuilt as loops are generated. They are the containers for data storage while the drawings are being generated. All System Queries labled DOCTOKENS are designed to extract specific tokens. The following list defines what type of token is pulled from each query: Query Name Token Doctokens1line Single line query DoctokensCoreCon Cable core connectivity query DoctokensDevice Associated with Motor Schematics &endash; Device related information DoctokensDeviceTerm Associated with Motor Schematics &endash; Device termination data DoctokensEquip Associated with Motor Schematics &endash; Equipment related information DoctokensEquipTerm Associated with Motor Schematics &endash; Equipment termination data DoctokensLoop Detailed loop related information DoctokensLoopCon Auto-generated loop drawings DoctokensLoopExt Extension of detailed loop related information (i.e., DoctokensLoop) DoctokensMotor Associated with Motor Schematics &endash; Motor related information DoctokensMotorControl Associated with Motor Schematics &endash; Motor control related information DoctokensMotorLoop Associated with Motor Schematics &endash; Motor loop related information DoctokensMotorTerm Associated with Motor Schematics &endash; Motor termination data DoctokensPanelTerm Panel terminations &endash; panel templates DoctokensReg&Rev All revision related information DoctokensStream Instrument template process information DoctokensTermCon Termination related data All System Queries with CON on the end indicates that the tokens are used in the auto-generated drawing queries. Tokens are assigned prefixes which will indicate which type of information it is trying to pull. The following is a list of the token prefixes: Token Prefix Information Type I Instruments R Revisions D Device M Motor, MCC T Multi Tstrip Terminations In addition to the prefixes, the REG_APP field from the DOC_REG table will also direct the software as to which query to open up. The following is a list of the REG_APPs: Reg_App DocTokenQuery opened by Default JoinKEYTAG Instr-Loop PROJECT;REG&REV;INSTR;LOOPCON;LOOP;MOTOR;EQUIP LOOP_ID Elect-1Line PROJECT;REG&REV;1LINE DOC_ID Elect-3Line PROJECT;REG&REV;LOOPCON;MOTOR;DEVICE;MOTORTERM;DEVICETERM; MOTORCONTROL;EQUIP;EQUIPTERM LOOP_ID Instr-Term PROJECT;REG&REV;TERMCON PANEL_ID Cable-Core PROJECT;REG&REV;CORECON CABLE_ID Panel-Term PROJECT;REG&REV;PANELTERM PANEL_ID Hkups PROJECT;Query for tag type in RebisView table Tag_Type Dsheets PROJECT;Query for tag type in RebisView table Tag_Type Ssheets PROJECT;Query for tag type in RebisView table Tag_Type The token structure has changed from the previous Instrumentation version. The following diagram shows the relationship of the previous token structure as related to the new token structure: The new structure of the software has removed the need for column designations. Because of this new structure, the old tokens which referred to the columns A, J, K, W&ldots; are obsolete. The new structure will be as follows: (&) or (_) + Token Prefix + Order number + Connection Position + Row number + separator (.) + token (field name from query). The (&) or (_) has to be placed in the token structure as it was in the previous version. The (_) has to be used in tokens for Excel, but both will work for AutoCAD. The order number will be found in the Loop’s Instrument Properties in the ORD field. The position an item is found in the Layout Designer when you open the Detail Connections window and edit the loop in question. The headers will show the position the token is using. The row number relates back to the row that the Instrument is sitting on. The separator will indicate that the data has been defined in the query and all that is required now is the token itself which is the field from the defined query. The DoctokensPanelTerm query is structured slightly different, because a Panel can contain multiple Tstrips the structure is as follows: Token Prefix (T) + Tstrip Number + Separator (_) + Row Number, where Tstrip Number = Tstrip.ORD and Row Number = Term.Row_pos. The Query is constructed to return all Incoming &endash; Current (Panel Tstip’s) &endash; Outgoing information as shown below:

Viewing all articles
Browse latest Browse all 12277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>