您好,欢迎访问三七文档
254:HollySysKKK=012...SSTSTS1()MacsCtrol.lib()I1RSAVSS(IV)(MS),641.79769313486232E308(MC)255()MacsCtrol.libRS{AV(K)=AV(K-1)+I1(K)*MCAV(0)=IVAV(K)MSSS=0{SS=1AV(K)=AV(K)-MS}}RS01{LR=AV(K)AV(K)=IVSS=0}MCMacsCtrol.libI11I22HLHL0LLLL0DV256I1(K)-I2(K)=HLI1(K)-I2(K)=-LL{DV(K)=1AM=1}{DV(K)=0AM=0}MacsCtrol.lib()INDV(HL)HL0(LC)1LC10(AP)1AP65535|IN(K)-IN(K-LC)|HL{DV(K)=1LC}DV(K)=1{LCAPLC1{DV=0LC}}257MacsCtrol.lib()I1AV(PS)2PS111X(X0)...1Y(Y0)11X(X10)X10...X1X0...11Y(Y10)10((I1(K)X(i))&&(I1(K)=X(i+1))){K(i)=(Y(i+1)-Y(i))/(X(i+1)-X(i))AV(K)=Y(i)+K(i)*(I1(K)-X(i))}i=012...10K(i)X0X10CHARC_EX:HSCHARC:=(PS:=11,X:=0,1,2,3,4,5,6,7,8,9,10,Y:=0,10,20,30,40,50,60,70,80,90,100);HSCHARC1IEC258MacsCtrol.lib()I11I22DVCEQ1CNE2CGE3CLE4CGT5CLT6.CEQ=TRUE{I1==I2DV=1DV=0}CNE=TRUE{I1I2DV=1DV=0}CGE=TRUE{I1I2DV=1DV=0}CLE=TRUE{I1I2DV=1DV=0}CGT=TRUE{I1I2DV=1DV=0}CLT=TRUE{I1I2DV=1DV=0}616259MacsCtrol.lib()SSRSAV(PS)2PS9(TB)()0TB4294967295(TE)()0TE4294967295TET(TL)(BL)TimeBase1T(T(0))()0T(0)4294967295T(0)TB……9T(T(8))()0T(8)4294967295T(0)T(1)...T(8)1Y(Y(0))……9Y(Y(8))TimeOutLastSsLastOt(TX)260MacsCtrol.libTXRS,TO(SS01)(SS=1RS=1){TX=TBTO=1,TO=0RS=1RS=0}ST=1{TXTE{AV(K)TX}TXTETO=0,TO=1}:TX=T(0)AV(K)=Y(0)+K(0)*(TX-T(0))TXT(i)&&TX=T(i+1)){K(i)=(Y(i+1)-Y(i))/(T(i+1)-T(i))AV(K)=Y(i)+K(i)*(TX-T(i))}i=012...7K(i).T(8)TXTEAV(K)=YI(8)+K(7)*(TX-T(8))AV(K)TLAV(K)=TLAV(K)LLAV(K)=LL261MacsCtrol.lib()I11I22SWDV1SW=1DVK=I1K2SW=0DVK=I2K262MacsCtrol.lib()INAV(IS)2IS10FM)01IS.AV=(IN(K)+IN(K-1)+...+IN(K-(IS-1)))/IS:IS1/31/31/3AV263MacsCtrol.lib/INAV()cycle(KG)KG0(TC)TC0AV(S)=(KG*IN(S))/(TC*S+1)AV(K)=[KG*TS*IN(K)+TC*AV(K-1)]/(TS+TC)264MacsCtrol.lib()ERECAV(K1)K10(K2)K20(K3)K30(BS)(DU[i][i])[-7,7](1)ERECK1K2(2)EREC(3)K3ERECAVK1K2K3BSK1K2K32650100%BS50PIDAVPIDOC1-2PIDOCPID266MacsCtrol.lib()V1V2LC0LC1LC2LC3LC4LC5LC6LC7LC8DVRVTime24294967295*TSDeviceTypeSCS_KINDDDJDDMDCFStopControl01CommandMemory01OpenStop01CloseStop01OutputReverse01267MacsCtrol.lib1.//////12/3268❒DV1RV1DVRV0❒DV1RV1TS1DVRV0❒DVRVDV01269DV1DV0DV0DV12.1//1-21-210100101///2270/30114////56271MacsCtrol.lib()I11I22SWRT,AVSW(K)=0AV(K)=I1(K)SW(K)=1AV(K)=I2(K)AVORAV(K)=AV(K-1)+OR*(I2(K)-I1(K))AV(K)=I2(K)AV(K)=AV(K-1)+OR*(I1(K)-I2(K))AV(K)=I1(K)AV(K)=I1(K)272MacsCtrol.lib()I1I2DVRV()DIDI0DCSI1(K)-I2(K)DI,DV=1,RV=0I1(K)-I2(K)-DI,DV=0,RV=1-DII1K-I2KDIDV=0RV=0273MacsCtrol.lib()SSRSDVTC24294967295*TSTT,TM_BSTM_PFTM_EWTM_DSTM_DRTM_KDCURRENTCOUNT,274MacsCtrol.lib(1)SSTTTDVRSSS01TDVRS01DVT=(2)SSDVTRSSS01DVSSTSS1DVSS0RSDV275MacsCtrol.lib()(3)SSDVTTRSSS01DVTRSDVSS(4)SSTTDVRSSS01TDVSS0RSDV(5)SSDVTTRSSS01DVDVSSTDVRSDV276MacsCtrol.lib()(6)SSTTTDVRSSSTDVRSDVSSDVSSMacsCtrol.lib()I1OT0100OB0100LC0,LC1,DVRV1.2.277hsart.libINFMPATSTPLC0LC1LC2LC3/AVBSOutROutTOutBMUMDRM0---MAN1---AUTO2---TRACK,3---FORCEMANMR0~100278hsac.libAV(K)=IN(K)+BSAV(K)=AV(K-1)MRMU–MDAV(K)=AV(K-1)MRAV(K)AV(K)OutTAV(K)=OutTAV(K)OutBAV(K)=OutBOR/❒❒10❒()(0)1❒1279hsac.libHSALGMANPVSPAMPIDPIDPIDPIDPIDPID280hsac.libINFMPADVMETRUEFALSEAETRUEFALSERM,0---MAN,1---AUTO,2---FORCEMANFM1RM=FORCEMAN{PA01RM=MAUTO}RMMMANMFORCEMANDV1DV=10DV=0.RMMAUTODV(K)=IN(K)FM1RM=DMFORCEMAN{PA01RM=DMAUTO}RMDMMANDMFORCEMANDV1DV=10DV=0.RMDMAUTODV(K)=IN(K)281:❒DV01()❒()(0)1❒10282PIDhsart.lib()SPPIDPIDPIDPVICOCTPTScycle,:MCPID0---PID1--PID2---PIDCSRMPIDPIDCSOC-CSOCIPIDPID283PIDhsart.lib(RM)PIDPIDPID0--MAN1--AUTO2--CAS3--MANTRACK4--AUTOTRACK,(PT)0%(TI)0(KD)0(TD)0AV/(SV)0%/(DI)0%(OutT)(OutB)(OutR)0(DL)0%(MU)(MD)(PK)01(OutM)0-1--(AD)0--1--TM01CSPRSPMISIMM,1--2--3--4--ME10-AE10-CE10-MTE10-284PIDhsart.libATE10-PVMUPVPVMDPVAC,,,CSOCI-PIDCSOCPID.()()+++=sKdTdsTdsTiKpsEsU*1**11Si:|E(n)|SVSi=0PD|E(n)|=SVSi=1PIDICICE(n)ICOCU(n)OCU(n)OCPIDPIDPID❒PID❒PID❒,PID285❒PIDPID10PID1-11-11.-2.PIDPIDRSPRSP=(1-AIFA)*SP+AIFA*RSP;RSP:SP:AIFA:0.2PID1MC:=0---PIDPVMU---PVPVMD---PVSPPID1PID286(**)(*sigleloop*)PID08:HSPID:=(PT:=100,TI:=30,SV:=100,KD:=5,TD:=2,DI:=0,OutT:=100,OutB:=0,OutR:=5,DL:=10,MU:=100,MD:=0,PK:=0,OutM:=0,AD:=1,TM:=FALSE,RM:=2,ME:=TRUE,AE:=TRUE,CE:=TRUE,MTE:=FALSE,ATE:=FALSE,AV:=50,PVMU:=100,PVMD:=0,MC:=0,cycle:=0.1);2PIDCFC3PIDFBD4PIDSTPID00(SP:=PID_SP00,PV:=PID_PV00,cycle:=PERIOD);2MC:=1---PIDMC:=2---PIDPVMU---PVPVMD---PVSPPIDCSRM---PIDCSOC---PIDPV-ICMC:=2---1)PID287(**)PID06:HSPID:=(PK:=0,MC:=1,PT:=100,TI:=30,SV:=100,KD:=1,TD:=2,DI:=0,OutT:=100,OutB:=0,OutR:=5,DL:=10,MU:=100,MD:=0,OutM:=0,AD:=1,TM:=FALSE,RM:=1,ME:=TRUE,AE:=TRUE,CE:=TRUE,MTE:=FALSE,ATE:=FALSE,AV:=50,PVMU:=100,PVMD:=0,cycle:=0.1);(**)PID07:HSPID:=(PK:=0,MC:=2,PT:=100,TI:=30,SV:=100,KD:=1,TD:=2,DI:=0,OutT:=100,OutB:=0,OutR:=5,DL:=10,MU:=100,MD:=0,OutM:=0,AD:=1,TM:=FALSE,RM:=2,ME:=TRUE,AE:=TRUE,CE:=TRUE,MTE:=FALSE,ATE:=FALSE,AV:=50,PVMU:=100,PVMD:=0,cycle:=0.1);2PIDCFC3PIDFBDPID_SP03FBD2884PIDST(**)(*seriesPIDloop*)PID06(SP:=PID_SP06,PV:=PID_PV06,CSRM:=PID07.RM,CSOC:=PID07.CSOCI);PID07(SP:=PID06.AV,PV:=PID_PV07);5FacView312MC41PIDPIDPIDPIDPID2PIDPIDPIDPID3PIDPIDPID-289PID1.HSPIDPID1CSP:CSP:RSP:RSPIFRM==1ANDMC==2THENCSP*PIDCSP*ELSESPEND2.HSPIDITGPID1PID,SmartProPID2)PIDPID3.FacViewHS_EXAMPLE.PROPID_CFC
本文标题:和利时标准模块说明
链接地址:https://www.777doc.com/doc-7031314 .html