176449-01*3500/40M
BENTLYNEVADA3500/40M176449-01BENTLYNEVADA3500/40M176449-01BENTLYNEVADA3500/40M176449-01近年来,随着可编程控制器(以下简称PLC)技术的不断发展,速度、功能、可靠性和稳定性的不断提升,其在工业控制中的运用越来越广泛。个人计算机(以下简称PC)具有人机界面好,编程软件丰富,数据处理快,信息存储方便,图像功能完善等优点。以PLC为下位机,以PC机为上位机的联机控制模式,结合了PLC与PC各自的优点,提高了控制能力和可靠性,不仅操作使用方便,产品造价也较低,因而成为工业控制中应用较多的模式。本文以电动机正反转控制为实例,说明松下FP1系列PLC与PC实现联机控制的方法。1.松下FP1系列PLC与PC机的通信连接松下FP1系列PLC均设有一个RS422串行通信接口。该接口既可用于PLC与PC机联机进行梯形图程序编程与调试,也可用于正常工作时的数据通信。PC机一般均设有一个以上的RS232C串行通信接口。由于RS232C和RS422属于不同的串行通信接口,通信信号的类型和工作方式不一样,因此,PLC与PC进行串行通信连接时,必须在中间安装一个RS422/RS232C适配器来完成信号的转换(部分PLC也具有RS232C口,此时可直接连接)。FP1系列PLC与PC机的通信连接如图1所示。2.PLC控制电机正反转电路设计PLC控制电机正反转的接线如图2所示,其中SB0、SB1、SB2开关按钮分别用于控制电机的正转、反转和停止;KM1、KM2分别为电机正反转控制的接触器。由于PLC直接控制交流接触器,所以PLC应选择继电器输出型,并在接触器回路采用互锁来保证电路的安全。3.PC与PLC的联机控制程序按上述图1完成PLC与PC机的通信连接后,还需采用PLC联机编程软件或手持编程器对PLC内部通信参数专用的系统寄存器No.410~No.418进行设定,具体为:串口选择为COM1,波特率为9600bps,数据位长度为8位,停止位为1位,奇校验,单元号为1。4.PLC控制程序PLC的控制程序要既能现地控制,又能使PC机通过串口通信实现上位机对电动机的正反转控制和电机状态信息反馈。具体程序如图3所示。程序中为实现PC机对电机的控制使用了R100、R101和R102三个内部继电器。内部继电器可由PC机按松下FP1系列PLC的NEWTOCOL专用通信协议(具体协议可参考厂家资料),以发送特定字符串的形式进行读写。为了仿效按钮操作的效果,三个内部继电器由上位机置位后启动对应的定时器,经0.8S后由定时器对内部继电器自动进行复位。5.PC机控制程序与界面作为上位机,PC机通过人机界面,将操作人员的操作指令转换成相应的通信字符串并经串口发送至PLC,实现对电机的控制;另一方面,PC机定时读取PLC寄存器的数据,从而可判断出PLC对电动机的控制状态并在人机界面上显示出来。PC机的程序利用VisualBasic6.0进行开发,首先,从菜单“工程”→“部件…”→“控件”中添加串行口通信控件MicrosofcCommControl6.0到工具箱中,然后从工具箱中往窗体添加下表所列的控件。FBM25"""Expander""FieldbusModule25(FBM25)"FBM26"""Main""FieldbusModule26(FBM26)"FBM27"""Expander""FieldbusModule27(FBM27)"FBMYAY-AdapterG06800x300x1200FieldEnclosureFrontAccessG10800x800x2000SystemEnclosureF/RAccessG11800x800x2000TerminationEnclosureF/RAccessG12800x800x2000Sys&TermEnclosureF/RAccessG15800x800x2000SystemEnclosureFrontAccessG16800x800x2000TermEnclosureFrontAccessG17800x800x2000Sys&TermEnclosureFrontAccessG20800x600x2000SystemEnclosureF/RAccessG21800x600x2000TerminationEnclosureF/RAccessG22800x600x2000Sys&TermEnclosureF/RAccessG40800x800x2000UtilityEnclosureF/RaccessG45800x800x2000UtilityEnclosureFrontaccessHFPWS01I/ASeriesHardenedFlat-PanelWS(RESALE)HFPWS1I/ASeriesHardenedFlat-PanelWS(RESALE)J0173BAApplicationsProcessor10(AP10)OPSYSLicJ0173BBApplicationsProcessor20(AP20)OPSYSLicJ0173BCWorkstationProcessor10(WP10)SWLicJ0173BDWorkstationProcessor20(WP20)SWLicJ0173BEControlProcessor10SWLicJ0173BFCommunicationProcessor10SWLicJ0173BGSPECTRUMSlaveGatewaySWLicJ0173BHCarrierbandLANInterfaceSWLicJ0173BJPW-FBOpsysSWLicJ0173BKPWOpsysSWLicJ0173BMSystemMonitorSWLicJ0173BNSysMgrDisplayHandlerSWLicJ0173BPIntegratedControlConfiguratorSWLicJ0173BQDiagnosticImagesSWLicJ0173BRINFORMIXISQLSWLicJ0173BSINFORMIXESQL/CSWLicJ0173BTPhysicalPropertiesLibrarySWLicJ0173BUPRELUDESpreadsheetSWLicJ0173BVMathLibrarySWLicJ0173BWHistorian10SWLicJ0173BXSystemConfiguratorSWLicJ0173BYProcessOptimizerSWLicJ0173BZPerformanceCalculationSWLicJ0173CAProductionModelSWLicJ0173CBDataValidatorSWLicJ0173CCBatchPlantManagementSWLicJ0173CDAutomatedDataCaptureSWLicJ0173CEHistorianSWLicJ0173CFStatisticalProcessControlSWLicJ0173CGAllen-BradleyDataHighwaySWLicJ0173CJSPECTRUMMasterGatewaySWLicJ0173CKCommandCenterGatewaySWLicJ0173CL760/761GatewaySWLicJ0173CMVAXNodebusGatewaySWLicJ0173CNInformationNetworkInterface10SWLicJ0173CPPanelDisplayProcessor10SWLicJ0173CQModiconGatewaySWLicJ0173CRCompoundSummaryAccessSWLicJ0173CSProductionModelEditorSWLicJ0173CTDeviceMonitorSWLicJ0173CUFoxCADSWLicJ0173CVExpertSystemRun-TimeSWLicJ0173CWHTGOPSYSSWLicJ0173DAApplicationWorkstation51SWLicJ0173DBApplicationProcessor51SWLicJ0173DCWorkstationProcessor51SWLicJ0173DDCompoundSummaryAccess(51Series)SWLicJ0173DEDiskMirroring/Concatenation(51Series)SWLic.J0173DFDeviceMonitor(51Series)SWLicJ0173DGSunDECnet(51Series)SWLicJ0173DHDisplayUtilities(51Series)SWLicJ0173DJSystemConfigurator(51Series)SWLicJ0173DKSunFORTRAN(51Series)SWLicJ0173DLHistorian500(51Series)SWLicJ0173DMHistorian1000(51Series)SWLicJ0173DNHistorian1500(51Series)SWLicJ0173DPHistorian2000(51Series)SWLicJ0173DQHistorian4000(51Series)SWLicJ0173DSIntCtlConfigurator(51Series)SWLicJ0173DTINFORMIXDevEnv(51Series)SWLicJ0173DUCMathLibrarySolarisMedia&SWLicJ0173DVOperatorMessageInterfaceSWLicForSolarisJ0173DWPhysPropertiesLibrarySWLicForSolarisJ0173DXReportWriter(51Series)SWLicJ0173DYSMDHForAP(51Series)SWLicJ0173DZSystemMonitor(51Series)SWLicJ0173EAFORTRANMathLibrary(51)SWLicJ0173EBStatisticalProcessControl(51Series)SWLicJ0173ECSpreadsheet(51Series)SWLicJ0173EDCCompiler(51Series)SWLicJ0173EEXTermHosting(51Series)SWLicenseJ0173EFSMDHForWP/AW(51Series)SWLicJ0173EGAllen-BradleyStationSWLicJ0173EHAdditionalDM/FoxView(51Series)SWLicJ0173EJAnalyzerManagementSW(AMS)ServerLicJ0173EKAnalyzerManagementSW(Ams)ConsoleLicJ0173EMFoxAnalystMedia&SWLicForWindowsNTJ0173EUCP40SWLic(2,000Block)J0173EVMODBUSPlusIntegratorSWLicJ0173EZAlarmAndMessageInterfaceSWLicJ0173FAApplicationProcessor10(AP10)OPSYSPkgJ0173FBApplicationsProcessor20(AP20)OPSYSPkgJ0173FCWorkstationProcessor10(WP10)SWPkgJ0173FDWorkstationProcessor20(WP20)SWPkgJ0173FEControlProcessor10(CP10)SWPkgJ0173FFCommunicationProcessor10SWPkgJ0173FGSPECTRUMSlaveGatewaySWPkgJ0173FHCarrierbandLANInterfaceSWPkgJ0173FJPW-FBOpsysSWPkgJ0173FKPWOpsysSWPkgJ0173FLHTGOPSYSSWPkgJ0173FMSystemMonitorSWPkgJ0173FNSystemManagerDisplayHandlerSWPkgJ0173FPIntegratedControlConfiguratorSWPkgJ0173FQDiagnosticImagesSWPkgJ0173FRINFORMIXISQLSWPkgJ0173FSINFORMIXESQL/CSWPkgJ0173FTPhysicalPropertiesLibrarySWPkgJ0173FUPRELUDESpreadsheetSWPkgJ0173FVMathLibrarySWPkgJ0173FWHistorian10SWPkgJ0173FXSystemConfiguratorSWPkgJ0173FYProcessOptimizerSWPkgJ0173FZPerformanceCalculationSWPkgJ0173GAProductionModelSWPkgJ0173GBDataValidatorSWPkgJ0173GCBatchPlantMgmtSWPkgJ0173GDAutomatedDataCaptureSWPkgJ0173GEAllen-BradleyDataHighwayGatewaySWPkgJ0173GFAllen-BradleyEPASWPkgJ0173GGSPECTRUMMasterGatewaySWPkgJ0173GHCommandCenterGatewaySWPkgJ0173GJ760/761GatewaySWPkgJ0173GKVAXNodebusSWPkgJ0173GLStatisticalProcessControlSWPkgJ0173GMInformationNetworkInterface10SWPkgJ0173GNPanelDisplayProcessor10SWPkgJ0173GPHistorian20SWPkgJ0173GQModiconGatewaySWPkgJ0173GRCompoundSummaryAccessSWPkgJ0173GSProductionModelEditorSWPkgJ0173GTDeviceMonitorSWPkgJ0173GUFoxCADSWPkgJ0173GVLoadableDocPkgJ0173GWExpertSystemRun-TimeSWPkgJ0173GXDeviceIntegrator15SWLicJ0173GYINT15SWPkg(V2.x)-BasicASCIIJ0173GZAIMAX-PLUSSWPkgJ0173HAINTERSPECIntegratorSWLicenseJ0173HBIntegrator30ForAllen-BradleyPLC'sSWLicJ0173HCIntegrator30ForModiconPLC'sSWLicJ0173HDDeviceIntegrator30SWLicJ0173HEApplicationWorkstation50SWLicJ0173HFHistorian500SWLicJ0173HGHistorian1000SWLicJ0173HHHistorian4000SWLicJ0173HJStatisticalProcessControl50SWLicJ0173HKSystemConfiguration50SWLicJ0173HLDisplayUtilities50SWLicJ0173HNApplicationProcessor51BSWLicJ0173HPApplicationWorkstation51BSWLicJ0173HQWorkstationProcessor51BSWLicJ0173HRApplicationWorkstation51CSWLicJ0173HSINFORMIXDev.Env.(AW51C)SWLicJ0173HTFoxAnalystV1.2Media&SWLicForSolarisJ0173HUMICRO-I/A100ValuePointNonFTSWLicJ0173HVMICRO-I/A500ValuePointNonFTSWLicJ0173HWFoxGuardManagerSWLicJ0173HXOMC250ControlPointSWLicJ0173HZMICRO-I/A1000ValuePointNonFTSWLicJ0173JAAW70SCADA(L&N)SWDriverLicJ0173JBAW70SCADAI/O(BB)SWDriverLicJ0173JCAW51SCADA(L&N)SWDriverLicJ0173JRHistorian8000(51Series)SWLicJ0173NAInstrumentGatewaySWPkgJ0173NBPathMgmtSWPkgJ0173NCPathMgmntSWLic(RequiresAddlCustomServices)J0173NDPW-NBOpsysSWPkgJ0173NEPW-NBOpsysSWLicJ0173NFPW-HTGOpsysSWPkgJ0173NGPW-HTGOpsysSWLicJ0173NJPWOperatingSystemJ0173NKPW-SSIOpsysSWPkgJ0173NLPW-SSIOpsysSWLicJ0173NMOperatorMessageInterface20SWPkgJ0173NNOperatorMessageInterface20SWLicJ0173NPPW-HTGSpreadsheetSWLicJ0173NQPW-SSISpreadsheetSWLicJ0173NRSpreadsheetPWJ0173NSPW-NBModiconGatewaySWLicJ0173NTPW-NBAllen-BradleyGatewaySWLicJ0173NUPW-NBInstrumentGatewaySWLicJ0173NVPW-NBHTGSWLicJ0173NWPW-NB760SeriesConfiguratorSWLicJ0173NXPW-SSI760SeriesConfiguratorSWLicJ0173NYPW-NBCP10SWLicJ0173NZGCSAPWJ0173PAInstrumentGatewaySWLicJ0173PBPW-COpsysSWPkgJ0173PCPW-COpsysSWLicJ0173PDPW-FBSystemMonitorSWPkgJ0173PEPW-NBSystemMonitorSWPkgJ0173PFPW-HTGSystemMonitorSWPkgJ0173PHPW-SSISystemMonitorSWPkgJ0173PJPW-NBDisplayProcessorSWPkgJ0173PKPW-NBDeviceMonitorSWPkgJ0173PLPW-FBSystemMonitorSWLicJ0173PMPW-NBSystemMonitorSWLicJ0173PNPW-HTGSystemMonitorSWLicJ0173PPPW-SSISystemMonitorSWLicJ0173PQSystemMonitorPWJ0173PRPW-NBDisplayProcessorSWLicJ0173PSPW-NBDeviceMonitorSWLicJ0173PTIntegratedControlConfiguratorPWJ0173PUPW-CHistorianSWLicJ0173PVPW-CSpreadsheetSWLicJ0173PWPW-CHistorianSWPkgJ0173PXPW-CPRELUDESpreadsheetSWPkgJ0173QAE-DocSystem(NoDocuments)SWPkgJ0173QBSitePlanningE-DocPkgJ0173QCEquipInstallation(PartA)E-DocPkgJ0173QDEquipInstallation(PartB)E-DocPkgJ0173QEEquipInstallation(PartC)E-DocPkgJ0173QFEquipInstallation(PartD)E-DocPkgJ0173QGSystemMaintE-DocPkgJ0173QHHWDescriptionE-DocPkgJ0173QJSySWSConfigurator.&MiscGatewayE-DocPkgJ0173QKSystemConcepts/ProcOpGuideE-DocPkgJ0173QLDisplayBuilder/Configurator/GraphicsE-DocPkgJ0173QMProcAlarm/IntControlConfiguratorE-DocPkgJ0173QNIntegratedControlConceptsE-DocPkgJ0173QPIntegratedControlBlocks(1)E-DocPkgJ0173QQIntegratedControlBlocks(2)E-DocPkgJ0173QRUsing/WritingE-DocPkgJ0173QSMath&PhysicalProp.LibraryE-DocPkgJ0173QTHistorianAndSpreadsheetE-DocPkgJ0173QUProdModel/DataValid/OptimizerE-DocPkgJ0173QVINFORMIXISQLE-DocPkgJ0173QWINFORMIXESQL-CSWDocPkgJ0173QXVENIXUserReferenceE-DocPkgJ0173QYVENIXAdmin/ProgrammersRefE-DocPkgJ0173QZVENIXUserGuideSWDocPkgJ0173RAVENIXSupportTools/DocProcE-DocPkgJ0173RBVENIXMicroRFS/ProgrammersGuideE-DocPkgJ0173RCModWorkstationInstallation(1)E-DocPkgJ0173RDModWorkstationInstallation(2)E-DocPkgJ0173RESWPlan,InstallationAndSystemMsgsE-DocPkgJ0173RFBatchPlantMgmtE-DocPkgJ0173RGSystemOperE-DocPkgJ0173RHSitePlanningE-DocPkgJ0173RJLANSitePlanningE-DocPkgJ0173RKFOXCADE-DocPkgJ0173RLEquipInstr.PartEE-DocPkgJ0173RMIntegratedControlBlocksPartCE-DocPkgJ0173RNSystemMessagesE-DocPkgJ0173RPGraphicUtility,DisplayConfigurator,AMGE-DocPkgJ0173RQPSRConfig,SysConcepts,SysConfigE-DocPkgJ0173UAPW-FBHistorianSWPkgJ0173UBPW-NBHistorianSWPkgJ0173UCPW-HTGHistorianSWPkgJ0173UDPW-SSIHistorianSWPkgJ0173UFPW-FBPRELUDESpreadsheetSWPkgJ0173UGPW-NBPRELUDESpreadsheetSWPkgJ0173UHPW-HTGPRELUDESpreadsheetSWPkgJ0173UJPW-SSIPRELUDESpreadsheetSWPkgJ0173ULPW-NBCP10SWPkgJ0173UMPW-NBModiconGatewaySWPkgJ0173UNPW-NBAllen-BradleyGatewaySWPkgJ0173UPPW-NBInstrumentGatewaySWPkgJ0173UQPW-NBHTGSWPkgJ0173URPW-NB760SeriesConfiguratorSWPkgJ0173USPW-SSI760SeriesConfiguratorSWPkgJ0173UTPW-FBHistorianSWLicJ0173UUPW-NBHistorianSWLicJ0173UVPW-HTGHistorianSWLicJ0173UWPW-SSIHistorianSWLicJ0173UXHistorianPWJ0173UYPW-FBSpreadsheetSWLicJ0173UZPW-NBSpreadsheetSWLicJ0173VAPW-NBDeviceGatewaySWPkg(ReqAddlCustServ)J0173VBPW-NBINI10SWPkgJ0173VCPW-FBSystemManagerDisplayHandlerSWPkgJ0173VDPW-FBSystemConfiguratorSWPkgJ0173VEPW-FBCompoundSummaryAccessSWPkgJ0173VFPW-FBInt.ControlConfiguratorSWPkgJ0173VGPW-NBSystemManagerDisplayHandlerSWPkgJ0173VHPW-NBSystemConfiguratorSWPkgJ0173VJPW-NBCompoundSummaryAccessSWPkgJ0173VKPW-NBInt.ControlConfiguratorSWPkgJ0173VLPW-CSystemConfiguratorSWPkgJ0173VMPW-CCompoundSummaryAccessSWPkgJ0173VNPW-CInt.ControlConfiguratorSWPkgJ0173VPPW-SSISystemManagerDisplayHandlerSWPkg
厦门渤格电气技术有限公司
业务 QQ: 1982497648