包装机设备PLC控制系统PowerScript源代码.docx
《包装机设备PLC控制系统PowerScript源代码.docx》由会员分享,可在线阅读,更多相关《包装机设备PLC控制系统PowerScript源代码.docx(96页珍藏版)》请在冰豆网上搜索。
![包装机设备PLC控制系统PowerScript源代码.docx](https://file1.bdocx.com/fileroot1/2022-11/23/6f5ef61e-b28d-4b5c-8aa2-9ff4d41a987a/6f5ef61e-b28d-4b5c-8aa2-9ff4d41a987a1.gif)
包装机设备PLC控制系统PowerScript源代码
forward
globaltypew_cardtypefromWindow
endtype
typest_3fromstatictextwithinw_cardtype
endtype
typeddlb_tianfromdropdownlistboxwithinw_cardtype
endtype
typest_1fromstatictextwithinw_cardtype
endtype
typecb_exitfromcommandbuttonwithinw_cardtype
endtype
typecb_okfromcommandbuttonwithinw_cardtype
endtype
typest_2fromstatictextwithinw_cardtype
endtype
typeddlb_cardtypefromdropdownlistboxwithinw_cardtype
endtype
endforward
globaltypew_cardtypefromWindow
intX=699
intY=652
intWidth=1376
intHeight=524
booleanTitleBar=true
stringTitle=""
longBackColor=79741120
booleanControlMenu=true
WindowTypeWindowType=response!
st_3st_3
ddlb_tianddlb_tian
st_1st_1
cb_exitcb_exit
cb_okcb_ok
st_2st_2
ddlb_cardtypeddlb_cardtype
endtype
globalw_cardtypew_cardtype
onw_cardtype.create
this.st_3=createst_3
this.ddlb_tian=createddlb_tian
this.st_1=createst_1
this.cb_exit=createcb_exit
this.cb_ok=createcb_ok
this.st_2=createst_2
this.ddlb_cardtype=createddlb_cardtype
this.Control[]={this.st_3,&
this.ddlb_tian,&
this.st_1,&
this.cb_exit,&
this.cb_ok,&
this.st_2,&
this.ddlb_cardtype}
endon
onw_cardtype.destroy
destroy(this.st_3)
destroy(this.ddlb_tian)
destroy(this.st_1)
destroy(this.cb_exit)
destroy(this.cb_ok)
destroy(this.st_2)
destroy(this.ddlb_cardtype)
endon
eventopen;ddlb_cardtype.text="1000"
ddlb_tian.text="365"
endevent
typest_3fromstatictextwithinw_cardtype
intX=745
intY=240
intWidth=91
intHeight=76
booleanEnabled=false
stringText=""
booleanFocusRectangle=false
longTextColor=33554432
longBackColor=67108864
intTextSize=-9
intWeight=400
stringFaceName="Arial"
FontCharSetFontCharSet=Ansi!
FontFamilyFontFamily=Swiss!
FontPitchFontPitch=Variable!
endtype
typeddlb_tianfromdropdownlistboxwithinw_cardtype
intX=352
intY=224
intWidth=357
intHeight=308
intTabOrder=40
booleanBringToTop=true
BorderStyleBorderStyle=StyleLowered!
booleanVScrollBar=true
booleanAllowEdit=true
longTextColor=33554432
intTextSize=-9
intWeight=400
stringFaceName="Arial"
FontCharSetFontCharSet=Ansi!
FontFamilyFontFamily=Swiss!
FontPitchFontPitch=Variable!
stringItem[]={"365",&
"182",&
"90",&
"30",&
"10000"}
endtype
eventopen;//kcbb_winopen(),
//
dw_1.settransobject(sqlca);
//
dw_1.retrieve();
endevent
typecb_4fromcommandbuttonwithinkcbb_win
integerx=1888
integery=52
integerwidth=197
integerheight=72
integertaborder=60
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
stringtext=""
booleancancel=true
endtype
eventclicked;//kcbb_winclicked()
close(parent)
endevent
typecb_3fromcommandbuttonwithinkcbb_win
integerx=1659
integery=52
integerwidth=197
integerheight=72
integertaborder=50
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
stringtext=""
endtypetypesle_3fromsinglelineeditwithintabpage_1
integerx=1408
integery=16
integerwidth=782
integerheight=76
integertaborder=20
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
borderstyleborderstyle=stylelowered!
endtype
eventmodified;tab_1.tabpage_1.sle_4.setfocus()
endevent
typest_2fromstatictextwithintabpage_1
integerx=55
integery=24
integerwidth=517
integerheight=76
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_15fromstatictextwithintabpage_1
integerx=1088
integery=552
integerwidth=379
integerheight=64
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_14fromstatictextwithintabpage_1
integerx=55
integery=552
integerwidth=517
integerheight=76
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_13fromstatictextwithintabpage_1
integerx=1088
integery=464
integerwidth=379
integerheight=64
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_12fromstatictextwithintabpage_1
integerx=55
integery=464
integerwidth=517
integerheight=76
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_11fromstatictextwithintabpage_1
integerx=1088
integery=376
integerwidth=379
integerheight=64
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_10fromstatictextwithintabpage_1
integerx=55
integery=376
integerwidth=517
integerheight=76
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_9fromstatictextwithintabpage_1
integerx=1088
integery=288
integerwidth=379
integerheight=64
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_8fromstatictextwithintabpage_1
integerx=55
integery=288
integerwidth=517
integerheight=76
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_7fromstatictextwithintabpage_1
integerx=1088
integery=200
integerwidth=379
integerheight=64
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_6fromstatictextwithintabpage_1
integerx=55
integery=200
integerwidth=517
integerheight=76
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_5fromstatictextwithintabpage_1
integerx=1088
integery=112
integerwidth=379
integerheight=64
integertextsize=-10
integerweight=400
fontcharsetfontcharset=gb2312charset!
fontpitchfontpitch=variable!
stringfacename=""
longtextcolor=33554432
longbackcolor=67108864
stringtext=""
booleanfocusrectangle=false
endtype
typest_1fromstatictextwithinw_cardtype
intX=46
intY=236
intWidth=251
intHeight=64
booleanEnabled=false
stringText=""
booleanFocusRectangle=false
longTextColor=33554432
longBackColor=67108864
intTextSize=-9
intWeight=400
stringFaceName="Arial"
FontCharSetFontCharSet=Ansi!
FontFamilyFontFamily=Swiss!
FontPitchFontPitch=Variable!
endtype
typecb_exitfromcommandbuttonwithinw_cardtype
intX=997
intY=156
intWidth=251
intHeight=84
intTabOrder=30
stringText=""
intTextSize=-9
intWeight=400
stringFaceName="Arial"
FontCharSetFontCharSet=Ansi!
FontFamilyFontFamily=Swiss!
FontPitchFontPitch=Variable!
endtype
eventclicked;close(parent)
endevent
typecb_okfromcommandbuttonwithinw_cardtype
intX=997
intY=60
intWidth=251
intHeight=84
intTabOrder=20
stringText=""
booleanDefault=true
intTextSize=-9
intWeight=400
stringFaceName="Arial"
FontCharSetFontCharSet=Ansi!
FontFamilyFontFamily=Swiss!
FontPitchFontPitch=Variable!
endtype
eventclicked;ifnotinteger(ddlb_tian.text)>0then
messagebox("","")
return
endif
closewithreturn(parent,ddlb_cardtype.text+";"+ddlb_tian.text)
endevent
typest_2fromstatictextwithinw_cardtype
intX=46
intY=80
intWidth=283
intHeight=64
booleanEnabled=false
stringText=""
booleanFocusRectangle=false
longTextColor=33554432
longBackColor=67108864
intTextSize=-9
intWeight=400
stringFaceName="Arial"
FontCharSetFontCharSet=Ansi!
FontFamilyFontFamily=Swiss!
FontPitchFontPitch=Variable!
endtype
typeddlb_cardtypefromdropdownlistboxwithinw_cardtype
intX=352
intY=76
intWidth=485
intHeight=308
intTabOrder=10
booleanBringToTop=true
BorderStyleBorderStyle=StyleLowered!
booleanVScrollBar=true
booleanAllowEdit=true
longTextColor=33554432
intTextSize=-9
intWeight=400
stringFaceName="A