欢迎来到天天文库
浏览记录
ID:32010974
大小:1.17 MB
页数:25页
时间:2019-01-30
《《GBT19769.1-2005-(3)工业过程测量和控制系统用功能块第1部分:结构》.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、免费标准下载网(www.freebz.net)GB/T19769.1-2005ALGORITHMRESETINST:(*ResetQ,)Q:=FALSE;ENDALGORITHMEND-FUNCTION-BLOCKFUNCTION-BLOCKE_SELECT(*Selectionbetweentwoevents二)EVENT_INPUTEIOWITHG;(‘Inputevent,selectedwhenG二0)EllWITHG;(*Inputevent,selectedwhenG=1‘)END-EVENTEVENT-OUTPUTEO;(,OutputEve
2、nt*)ENDesEVENTVAR-INPUTG:BOOL;(*SelectEIOwhenG二0,EllwhenG=1,)ENDVARECSTATESSTART;(二InitialState*)EO:一>EO;(‘IssueOutputEvent‘)EIO;(*EIOarrived,)Ell;(二Ellarrived,)END一STATESEC_TRANSITIONSSTARTTOEIO:=EIO;STARTTOEll:=Ell;EIOTOEO:=NOTG;EIOTOSTART:=G;EllTOEO:=G;EllTOSTART:=NOTG;EOTOSTAR
3、T:=1;END一TRANSITIONSEND-FUNCTION-BLOCKFUNCTION-BLOCKE-SPLIT(,Splitanevent‘)EVENT_INPUTEl;(‘Inputevent‘)END-EVENTEVENT_OUTPUTEOl;(‘Firstoutputevent二)E02;(‘Secondoutputevent,etc.‘)ENDEVENTEC_STATESSTART;(*InitialState二)EO:(二Extensible*)免费标准下载网(www.freebz.net)无需注册即可下载免费标准下载网(www.free
4、bz.net)GB/T19769.1-2005一>EOl,(*Outputfirstevent‘)一>E02;(‘Outputsecondevent,etc.‘)END一STATESECesTRANSITIONSSTARTTOEO:=El;EOTOSTART:=1;ENDTRANSITIONSENDLFUNCTION_BLOCKFUNCTION-BLOCKE_SR(*Event-drivenbistable,Setdominant,)EVENTesINPUTS;(二SetEvent*)R;(二ResetEvent*)END一EVENTEVENTeeOUTP
5、UTEOWITHQ;(*OutputEvent‘)ENDseEVENTVAR-OUTPUTQ;BOOL;(*CurrentOutputState*)ENDVARECeeSTATESQO;(,QisFALSE,)RESET:RESET一>EO;(,ResetQandissueEO*)Ql;(二QisTRUE二)NULL;(*NoactionwhenQisTRUE二)SET:SET一>EO;(*SetQandissueEO,)NULO;(*NoactionwhenQisFALSE*)ENDSTATESECeeTRANSITIONSQOTONULO:=R&NOT
6、S;NULOTOQO:=1;QOTOSET:=S&(RORNOTR);SETTOQl:=1;QlTONUL1:=S&(RORNOTR);NULLTOQl:=1;QlTORESET:=R&NOTS;RESETTOQO:=1;END-TRANSITIONSALGORITHMSETINST:(,SetQ二)Q:=TRUE;ENDesALGORITHMALGORITHMRESETINST:(二ResetQ‘)Q:=FALSE;ENDesALGORITHM免费标准下载网(www.freebz.net)无需注册即可下载标准下载网(www.bzxzw.com)免费标准下
7、载网(www.freebz.net)GB/T19769.1-2005END-FUNCTION-BLOCKFUNCTION-BLOCKE_SWITCH(*Switch(demultiplex)anevent*)EVENT-INPUTEIWITHG;(二EventInput,)END-EVENTEVENTesOUTPUTEOO;(*Output,switchedfromElwhenG=0二)EOl;(*Output,switchedfromElwhenG=1,)ENDEVENTVAR-INPUTG:BOOL;(二SwitchEltoEIOwhenG=0,toE
8、lIwhenG=1二)ENDVAREC_STATESSTART;(
此文档下载收益归作者所有