SD834 3BSC610067R1
ABBSD8343BSC610067R1if(\\本站点\隐含0==0)\\本站点\隐含0=1;else\\本站点\HMTX隐含0=0;例5组态王图库中的元素称为“图库精灵”。之所以称为“精灵”,是因为它们具有自己的“生命”。图库精灵在外观上类似于组合图素,但内嵌了丰富的动画连接和逻辑控制。用户可以根据自己工程的需要,将一些需要重复使用的复杂图形做成图库精灵,加入到图库管理器中。组态王提供两种方式供用户自制图库。一种是编制程序方式,即用户利用亚控公司提供的图库开发包,自己利用VC开发工具和组态王开发系统中生成的精灵描述文本制作,生成*.dll文件。关于该种方式,详见亚控公司提供的图库开发包。另一种是利用组态王开发系统中建立动画连接并合成图素的方式直接创建图库精灵。在此将对第二种方式做详细说明。现举一个制作图库精灵的例子。画面上一个按钮,代表一个开关,开关打开时按钮为绿色,开关关闭后变为红色,并用这个按钮控制一个软灯。在设计时,首先要用合成单元技术制作一个绿色按钮(开)和一个红色按钮(关),用一个变量(取为:图库精灵开关0)和它们连接,红色按钮的隐含条件表达式为:“图库精灵开关0==1;”,“弹起时”的命令语言代码;\\本站点\HMTX图库精灵开关0=1;绿色按钮的隐含条件表达式为:“HMTX图库精灵开关0==0;”,“弹起时”的命令语言代码;\\本站点\HMTX图库精灵开关0=0;最后把它们叠在一起,并制成合成单元,红色按钮在上面。由于两个按钮大小相同,叠在一起并制成合成单元较复杂,方法为:叠在一起以后,先将底板(非原始底板)移动到别处,激活红色按钮,将其“图素后移”,按下ctrl键,激活绿色按钮,将绿色按钮“图素后移”,红色按钮又在上面,而后合成单元。松开ctrl键,打开图库,经图库管理器/编辑,创建新图库,取名“自制图库”,关闭图库管理器,激活合成按钮,经标题条图库/创建图库精灵/新的图库图名称,取名“自制按钮0”,确认后,出现图库管理器,选取其中的“自制图库”,将“按钮精灵”放到“自制图库”中。如此,制作“自制图库”和“按钮精灵”全部完毕。这样工程人员只要把“按钮精灵”从图库拷贝到画面上,它就具有了“打开为绿色,关闭为红色”的按钮功能。图库中的几乎每个精灵都有类似的已经定义的动画连接,所以使用图库精灵将极大地提高设计界面的效率。例如使用第一种方式即用VC编制程序制作的图库精灵具有自动控制图形外观和进行变量设置等的向导功能。用第二种方式制作的图库精灵放到画面上以后,双击之,出现“内容替换”框,可以根据用户具体需求改变变量名称,替换动画连接属性。这是第二种方式“图库精灵”的使用特点。例6运行系统中三个画面的切换与运行画面的全部退出。设当前画面“图形功能HMTX”与隐含画面“多功能IO卡HMIO”及画面“可编程控制器PLCHMPLC”相互之间要切换,并具有退出“组态王运行系统”功能。所设计出的图形画面仍如图1所示。首先用合成单元技术制作4个按钮:退出本画面、IO卡画面、PLC画面和退出运行系统按钮,它们的“弹起时”命令语言代码分别为:“ClosePicture("图形功能HMTX");”,“ShowPicture("多功能IO卡HMIO");”,“ShowPicture("可编程三菱PLCHMPLC");”,“Exit(0);”。退出运行系统画面按钮还设置了隐含属性,隐含条件表达式取“隐含0==1;”(见例4)。代码“Exit(0);”:若改成“Exit(1);”,表示计算机总安全关机;若改成“Exit(2);”,表示退出运行系统,Windows重新启动。当退出运行系统按钮被隐含时,鼠标操作失效;但当用别的图形遮盖时,即使合成单元,鼠标操作也不失效。在进行画面安全操作性能设计时要考虑这些因素。EmersonDS300S158SBPepperl+FuchsDENT-MMVI-D2-2HRXSICKS30A-4011CAHeidenhain250180000104Mettler2500HydacCS1220A0001Endress+HauserFMD78-X7A5Endress+HauserFMD78-WR08MagnetrolES1-A16Y-S00ABBD655C810U01RenishawTS27RPepperl+FuchsWCS3B-LS221SickCS1-P3611SICKPLS101-312MKS179AX22CS3BMwenglorFIS-6300-0101OmronF3SN-A0307P25-LELSTEREK-87SCognexDVT545CognexDVT515SICKNT6-03018Siemens7MF4422-1DA00-1AA1-ZSiemens7MF4022-1EA00-1AA1-ZSiemens7MF4422-1FA00-1AA1-ZEndress+HauserFMU90-R11CA111AA1ASickDME3000-111SICKPLS100-111ROPEXRES-420-L230VACASCO833-354J01140975SICKPLS100-111Eckardt6184112BS614SICKNT6-13022Georg8550-1T0FMSEMGZ309WStäfaWSU12267Endress+HauserCLM130-03002SICKNT6-13022ISET00493ISET00470burster8526-6001TECHNOGRSB4K1C500DATALOGICDS350ACRMAIHAKMBA320815LeuzeSD2T90-600Heinrichs654825Heinrichs654824Endress+HauserFDU92-RG2AIBEO1289-000-000-AABalluff628085-BSHeidenhainERN1387.001-2048ifmefectorSID10ADB100GLenord+Bauer292C-00000L001MilltronicsST-50UPGeorgP51530T0Endress+HauserDC11-5AGR2A1D11BHeidenhainID376846-LVHeidenhainID534900-0ALeine&Linde610900011BARTEC1751P22100Z-LASERZM18RF065ITT115P1S2086GEPDCR4010SICKC20S-045102A21BALLUFFBTL0454DATALOGICDS45A-LR1-J1Adolf9329920000Endress+HauserFTC325-A2B31SonyDT512PGeorg385501PGeorg39010123BALLUFFBTL5-P1-M0700-P-S32Lenord+Bauer260-VN002048B001KeyenceCZ-V21Endress+Hauser361-RGR2AA2KSICKWL36-R630di-soricP3K-TSSLIFMLK7022SymbolLS-3603-I400EBALLUFFBTL5-P1-M0500-P-S32SickDGS60-G1A01024Pepperl&FuchsFJ6110A2V1Pepperl&FuchsFJ7A2V1SICKDT20-P130B0960FalkLFMD100S/RBalluff819D04D1210010FDKübler858591224G323di-soricFG3LK-IBSMTSLH-M-RXYY-M-0300-AOEndress+HauserFTC325-A2B31Endress+HauserCPS33-0TK2GSASICKWE36-B430LeuzeODS-78-800-SHohner27-27200OmronE3X-NM41WIKACT6PTB-NrEx-83Heidenhain295450-8CFestoSOEL-RTH-Q20-NP-K2L-TIHonsbergVD-032GR060-262SICKKTG5G-2P1111SENSOPARTFMS30-34UTSickCLV220-0000BARTEC17-51P3-1403ABBV17151-32019111WEISSWQD-3110-DKeyencePT-165DruckPTX1400Siemens84-0AF00SICKPSD01-1501HonsbergVD-032GR060SCHMERSAL161SK-33RK-024SICKWTT12L-B2541Balluff550415SICKWT27-2F410RSTES1314ifmPN-025-RBR14-QFRKGBalluffBISC-310-10KromschröderBCU460-10SICKWE4-2F330Pepperl+Fuchs48Ga1249ifmSTR12ABBE1SickT11100G01130RechnerKAS80A13SY5LEDSICKWT23-F4101015925SICKWT23-F4211016666BalluffF-302TakexF5RN-PNPKeyenceFS2-62PSICKWT18-3P610GossenU1389SICKWS36-U230ATC7703AR04N3BQPKeyenceFS-L51SENSOPARTFMS30-34UL4GreisingerGSTU10JumoTN000429330ifmOI5003OIT-FPKGifmOI0002OIT-FBOASABT231-004-539FESTOSDE1D10G2W18LPUM8SICKWT36-P410Pepperl&FuchsNJ40-FP-A2-B1-P1Pepperl&FuchsOJ3000-M1K-E23KeyenceEH-402L=3MSICKWTE11-2P2432SICKWL18-3P130KeyenceFS-V33PKeyenceCZ-H35SCONTRINEXLTK-1050-303ifmIN-2002-ABOWOmronE32-T16PKeyenceFS-V12PSICKWLL190T-2P434SIKOAS-PIC500KeyenceLV-H32TurckBi40-CP80-VP4X2SICKWT23-F430KLASCHKAOAS-m18rg-3kBaumer30P1200Baumer10P69Y0SICKMPS-064TSTP0KeyenceEH-402LeuzeLS852SEwenglorIW070RM65MG3S+SETR-090OmronE3S-LS5B4S1SICKWTE11-2P2432SICKWTF12-3P2431SICKLM38-750SunxUEX11APNSICKWT4-2P330SCHMERSALRSS36-D-R-STTelemecaniqueXUFN5L03L2ARTEKCA18-DN1SICKWLL260-P240KeyencePZ-M12SICKWLL190T-2M434ifmKG5006KeyenceLK-C2Baumer12P1600TelemecaniqueXUX5APANM12SICKWTV4-3P2241Pepperl+FuchsRL28-55-ZBaumerFZAM08P1001TelemecaniqueXUX8AKSAM12Pepperl&FuchsNJ6-F-E2ifmOA5102Pepperl&FuchsNJ6-F-E2SICKWL4S-3P2230KeyenceFS-V1PPepperl&FuchsNJ50-FP-A2-P1OmronE32D24ifmOUN-HPKGSICKWE4-2F330KeyenceLV-22APBaumer10P5101LeuzeSE50000189ifmOU5012ifmOA5118SICKWL20-922SICKWL20-813SICKWS27-2D430SICKWE27-2F430SICKWTR2-P521FESTOPEV14B10773SIESK1410PbSZAm15Leuze50021455TurckBC20-K40SR-VNBarksdale43-025411301Siemens3SG3234-0AR71BannerOSBF27083AFRISOGWG23-Ro700AFRISOGWG23-Ro1000SchneiderXXV18B1PAM12KeyenceFS-V31CPifmIMC4015-CPKGTurck5-K14PG-AP6XTurckNi5-K14-AP6XTurckSO3m-MI-6KeyenceES-X38FischerDS3101FM00A1Honeywell15ZS1Honeywell11ZS1SCHMERSAL5-18-10STPPepperl&FuchsNJ5-18GK50-E2KeyenceFS2-60SICKWLL160-F420TurckNI-M12-VN6Xpulsotronic9861-1000DatasensorS5-5-C10-37Siemens3SG3201-3AJ33TurckBi2-G12-AN6ifmOTH-CPKGSICKWL9-2P431KeyenceFS-V32CPSiemens3SG3202-0NJ33pulsotronic9918-2831Pepperl&FuchsNBB20-L2-A2-C-V1AFRISOGWG23-Ro400SICKWT14-P430pulsotronic9964-4095pulsotronic9863-0400pulsotronic9961-0400pulsotronic9964-1500SENSOPARTFMS30-34UL4-55wenglorHW11PC3Baumer08D90403620Baumer08D9001S35ifmIF-2002-ABOWwenglor113-232-202E0TurckBIM-PST-AP6XifmIA5063ifmIAE3010-BPKGifm2004-ABOWOVPifmM00789Pepperl&FuchsNBB-18GM50-E2-V1ifmTS-200KCKD10pulsotronic9918-08SCHUNKINK40S0301555SCHUNKIN30S0301571wenglorHD12PCT3KeyenceFU-77VOVPFESTOPEV14B10773Pepperl&FuchsNJ50-FP-A2-P1ipfelectronicIC300126Balluff516-371-SASCHÖNBUCH2705-P050811Turck5-G18-Y0TurckNI8-M18-AP6XSchneiderXUK5APANM12ifmOFEFPKGUSSICKLL3-DT01ipfelectronicMZ310120Pepperl&FuchsNJ4-F1-E2KeyenceFS-V32CPSICKLBSAT32900Pepperl&FuchsNJ5-18GM50-E2-V1Pepperl&FuchsNJ6-F-APepperl&FuchsNJ6-F-E2Leuze184150G3000KeyenceFU-86Balluff819-X496-99-R-11ifmIE-3001-ANOGifmIFA3004-ANKGEurotecW191082SMCCRB1BW20-180SifmIE5129Honeywell14CE2-2ifmIF-3004-BPKGifmIG6014ifmIF-3002-BPKGFestoSME-3-LED-24SchneiderXMLP600BD12Nordson322414Pepperl&FuchsNJ4-12GM40-E2FestoSMTO-6-PS-S-LED-24ifmIN5129ifmIA3010-LANOGifmII3010-ANKGifmIN3002-ANOGFestoKVI-CP-1-GS-WD-8CONTRINEXDW-AD-403-04pulsotronic9919-18ifmIG5502EupecT218N14TOFLotharFM303003WLotharFM303003BKeyencePS-45Siemens3RG4602-1AB00TurckNIGA2-HTurckBi2-G12-AP7Pepperl&Fuchs5-8GM-N106361SBalluff516-326-BO-CifmIGC232ifmII-3015LBPOGKeyenceLV-21APBalluff516-326-S4-CSickVL180-P460ipfIB180123KeyencePS-47COmronE32-ET11RTurckBC10-M30-AP6XTurckBi10-M30-AP6XSickMZT6-03VPS-KP0BalluffBMF32M-PS-C-2-S4BaumerFCE200E1Y00SCHMERSAL33-12zGKeyenceFU-86ifmIGA3008-BPKGifmIF3004-BPKGBalluff516-304VBaumer12P1702/LwenglorHN24PA2OmronE2A-S08KS02-WP-B1ifmIGA3005-BPKGifmIGA3008-BPKGTurckIST-M12-AP4-H1141Turck8HS540Y0Bosch0830100380Balluff516-325-S4-CMegatronCMK1000ifmIG5397ifmII5430ifmIF5018FestoKVI-CP-1-WS-WD-2OmronE2E-X1R5E1KeyencePS-T2PBannerS18SN6RCrouzetIACMN1202C5CrouzetIACMN1202C6OmronE2E-X1C2FestoCRSMEO-4-K-LED-24SCHMERSALBNS120-02ZKüblerSP11-ASTelemecaniqueXS1M18PA370CEBERLERAR87501Balluff516325S4CifmIF5297Festo150378ifmIEB3002BBPKGifmIF5492ifmIEB3001-BPOGFestoSMEO-211884CrouzetIACPN1805C5ifmIF5493ifmIG5399Banner55441IR23SBannerC30AP7LFestoSME-17469SMCD-F7PDruckmeterbis22ipf080204ipf02351-93650IBR40106RösselRL2560-1PTCPepperl&FuchsNJ2-12GM40-E2ifmE70019ifmE11455Turck8014484Turck8016328KeyenceOP-66842ifmE11493NordsonW-HM937277Bosch0830100460FestoSMEO-4U-S-LED-24-BifmE10466ifmE70018ifmE10274ifmE11454KeyenceOP-96436KeyencePZ-B81Festo396054SMCSY100-68-A30OmronEE-SX674P)