系統(tǒng)上位的人機(jī)界面是用VB編程,提供人機(jī)交互操作界面及數(shù)據(jù)選擇和相應(yīng)的數(shù)據(jù)處理等功能。系統(tǒng)上位的操作界面如圖4所示。在操作界面的左上部是通訊鏈接控制框,這里只需要正確選擇PC的串口并輸入遠(yuǎn)程PLC所連接的號(hào)碼后即可撥號(hào)鏈接,遠(yuǎn)程的無(wú)線GSM MODEM模塊摘機(jī)響應(yīng)一般設(shè)置為鈴響后自動(dòng)摘機(jī),通訊鏈接建立后,當(dāng)上位PC檢測(cè)到串口端的數(shù)據(jù)載波DCD信號(hào)后,通訊鏈接控制框中的“鏈接狀態(tài)”指示燈由紅變綠,表示通訊鏈路已建立。撥號(hào)或掛機(jī)的操作均是通過對(duì)GSM MODEM模塊發(fā)送AT指令執(zhí)行的。490NAE91100網(wǎng)絡(luò)通訊及附件
廈門仲鑫達(dá)自動(dòng)化設(shè)備有限公司
:李素云
企業(yè)QQ:,2851195466
手機(jī):
:
對(duì)PLC數(shù)據(jù)的讀寫操作如操作界面的右上部所示,在相應(yīng)文本框內(nèi)填寫好數(shù)據(jù)的類型、地址、數(shù)值和操作方式后點(diǎn)擊“發(fā)送”即可執(zhí)行對(duì)PLC的讀或?qū)懖僮?。界面的下半部分顯示的是PC串口發(fā)送和接收的代碼以及當(dāng)前操作的結(jié)果。
3.2 系統(tǒng)上位計(jì)算機(jī)的串口設(shè)置
在上位PC的人機(jī)界面中,串口的設(shè)置是通過下拉選擇框選擇出所連接的串口后由程序自動(dòng)讀取。在使用GSM MODEM無(wú)線模塊時(shí),上位PC對(duì)遠(yuǎn)程PLC鏈接呼叫時(shí)采用的是AT指令。程序語(yǔ)句為:MSComm1.Output=“ATDT”&Trim (Text1.Text)& vbCrLf//Text1文本框內(nèi)為欲連接的號(hào)碼。掛機(jī)的AT指令為:MSComml.Output=“ATDT”&“+++”& vbCrLf。串口數(shù)據(jù)格式的設(shè)定語(yǔ)句為:MSComml.SetTIngs=“9600. N,8.1”,與TC35iGSM MODEM無(wú)線通訊模塊和遠(yuǎn)程PLC自由口的串行數(shù)據(jù)通訊格式一致。
3.3 通訊數(shù)據(jù)格式的約定
由于遠(yuǎn)程PLC采用的是自由口用戶通訊方式,這里對(duì)每次收發(fā)數(shù)據(jù)字節(jié)暫約定為18個(gè)字節(jié),數(shù)據(jù)字節(jié)的可根據(jù)實(shí)際需要而酌情約定。本系統(tǒng)中18個(gè)字節(jié)的約定:Bytel為數(shù)據(jù)的字節(jié)數(shù);Bvte2為數(shù)據(jù)開始特征字;Bvte3為數(shù)據(jù)讀或?qū)懱卣髯郑築yte4為數(shù)據(jù)類型特征字;Bvte5~Byte8為PLC數(shù)據(jù)地址;Bvte9~Bytel6為PLC數(shù)據(jù)的數(shù)值;Bytel7為收發(fā)數(shù)據(jù)的校驗(yàn)碼;Bvtel8為數(shù)據(jù)結(jié)束特征字。串口數(shù)據(jù)的傳輸除數(shù)據(jù)地址字節(jié)和數(shù)據(jù)數(shù)值字節(jié)用ASCII碼表示外,其他均以十六進(jìn)制方式表示。因而在上位PC的編程中需涉及大量的進(jìn)制轉(zhuǎn)換操作。特別要注意的是由于PLC中的實(shí)數(shù)采用32位單精度數(shù)表示,并按照ANSI/IEEE745 1985標(biāo)準(zhǔn)格式以雙字長(zhǎng)度來(lái)存取,所以無(wú)論是上位的PC或是下位的PLC在編程時(shí)對(duì)實(shí)數(shù)數(shù)據(jù)的處理均需嚴(yán)格遵循ANSI/IEEE7451985標(biāo)準(zhǔn)格式的規(guī)定,否則將不可能讀到正確的數(shù)據(jù)。
New Robohand CABL-010 Sensor Cable, Picofast Female Connections, 3-Wire, 2m Long
New Allen Bradley 889P-F3BB-2 Quick-Disconnect Cable, Pico Straight Connection
Industrial Devices NH315B-18-MF1-FS2-Q-B3S Electric Cylinder Actuator w/ Brake
Tolomatic #8100-9080 Quick-Disconnect Cable, Female Straight Connection
Linemaster 632-S Clipper Foot Switch, Momentary, SPDT, 125-250VAC 20A 1HP
Struers Multidoser Compound Dispensing Unit 6 Bottle Capacity 24VAC 50/60Hz
44 Assorted Terminal Blocks on 15 1/4" Elevated Rail Single Tier *Sold AS-IS*
New Allen Bradley 1489-M2C005 Circuit Breaker, 2-Pole, Rated: 0.5A 400VAC
Robohand DPG-10-4 Parallel Gripper, Stroke: 1", Bore: 0.688", Ports: M5
New Banner SI-QS90F Safety Door Switch, Power: 400VAC 6A *No Key Included*
Parker BH4-60 Coupler With BH4-61 Nipple, Shut Off Poppet Valve, 1/2-14 NPT
Tescom 44-3262H283 Pressure Reducing Regulator, Inlet: 500psi, Outlet: 0-100psi
162 Assorted Terminal Blocks on 39" Elevated Rail 1 & 2 Tier *Sold as Pictured*
62 Assorted Terminal Blocks on 15 1/4" Raised DIN Rail *Sold as Pictured*
124 Assorted DIN Rail Terminal Blocks Two-Tier 36" Rail Length *Sold as Pictured
TDK Lambda DSP30-15 Power Supply 100-240VAC 0.8A In 15VDC 30W Out DIN Mount
New Cognex DM100S DataMan ID Reader Kit w/ Bracket, USB Cable, CD-ROM, Guide
Allen Bradley 1489-A Circuit Breaker 2 Pole 7A 480/277VAC 48VDC DIN Mountable
New Allen Bradley 1769-ECL Ser A Left End Cap for Compact I/O Modules
New Allen Bradley 1769-ECL Ser A Left End Cap for Compact I/O Modules
Tescom 44-2213-242V Regulator, Inlet: 400psig, Outlet: 0-250psig, 1/4" NPT Ports
Bimba M-040.5-DPBT2 Air Cylinder, Bore: 3/4", Stroke: 0.5", Ports: 1/8" NPT
New Marion Chicago 100S Strip-N-Stick Silicone Gasket Tape 3/8" x 1/8" x 10yds
MAC 411A-BOB-DP-DFBC-1BA Solenoid Valve, 5-Port 2-Position, 24VDC Solenoid
New Marian Chicago 300AR Strip-N-Stick Silicone Gasket 1/2" x 3/16" x 5yds
SMC NVFR2110R-5DZ Solenoid Valve, 5-Port 2-Position, 24VDC, *No Gasket/Screws*
Lot of 2 New Marian 300AR Strip-N-Stick Silicone Gasket 1/2" x 1/8" x 30'
SMC AFM30-N03-Z Mist Separator, Max Pressure: 150psi, Ports: 3/8" NPT
SMC AW20-N02H-CZ Filter/Regulator, Set Pressure: 7~125psi, Ports: 1/4" NPT
SMC AW20-N02C-CZ Filter/Regulator, Set Pressure: 7~125psi, Ports: 1/4" NPT
SMC NAW2000-N02-C Filter/Regulator, Set Pressure: 0.05~0.85MPa (7.25~123.28psi)
SMC AW20-N02-CZ Filter/Regulator, Set Pressure: 7~125psi, Ports: 1/4" NPT
SMC AF30-N03-Z Air Filter, Pressure: 150psi Max, Ports: 3/8" NPT
AWEH S. .401-000 Transformer 230V Pri 52/39V Sec 2kVA 3PH
Watlow AFCJ0FA03UK100 Thermocouple, Type K, 10FT Leads, 0.032" Diameter
Watlow E1E43 Firerod Cartridge Heater, Voltage: 120VAC, Power: 150W
Allen Bradley 700-HX86SU24 Timer Relay, Multifunction, 8-Pin, 24VAC/12-24VDC
Omron H5CX-A11D-N Digital Timer, Supply: 12-24VDC/24VAC, Time: 0.001s to 9999h
Omron H5CX-L8-N Digital Timer, Supply: 100-240VAC, Time Range: 0.001s to 9999h
Robohand OISN-002 Inductive Proximity Sensor, Voltage: 10-30VDC, NPN 200mA
New Bimba MSKX Pneumatic Reed Switch, 4.5-30VDC 200mA, NO Contact NPN
New Turck Bi2U-EG08-AN6X Proximity Sensor, Sensing Distance: 2mm, 10-30VDC 150mA
Allen Bradley 855T-BPM10 Stack Light With Red and Amber Lights, 24VAC/DC
Turck FCS-GL1/2A4-NAEX0/A Flow Monitoring Immersion Sensor, 4-Wire Connection
PowerVolt PP-4-24 Compact Power Transformer, Single Primary, Voltage: 115V
Fabco Air F55 CX3-10-MR Multi-Power Pneumatic Press w/ Dial-A-Stroke 8460lbf
Janesville Tool & Mfg A-2066 Pneumatic Press 3" Stroke 3" Bore 528lbf @ 80PSI57120001-CV
48990001-NK
48980001-AP/1 DSSB146*BAT2C
3HAC037084-001
3HAC028357-001
3HAC029157-001
3HAC026254-001
3HAC026253-001
3HAC025917-001
3HACO24488-001
3HAC13389-2
3HAC14178-1
3HAC12934-1
3HAC12928-1
3HAC14363-01
3HAC18159-1/03
3HAC035301-001
3HAC3180-1
3HAC1462-1
3HNE00065-1
3HAB8101-8
3HAB8101-3
3HAB8101-2
3HAB6182-1
3HAB9669-1
YB560103-CH
YB560103-CE
YB560103-CD
YB560103-BK
Janesville Tool & Mfg A-2070 Pneumatic Press 3" Stroke 3" Bore 560lbf @ 80PSI
Janesville Tool & Mfg A-0066 Pneumatic Press 3" Stroke 3" Bore 528lbf @ 80PSI
De Sta Co RP-10 Parallel Gripper, Bore: 1" Diameter, Stroke: 0.25", 10-32 Ports
Compact SG112-1 Angular Gripper, Bore: 1.125" Diameter, 1" Jaw Length, 1/8" NPT
Janesville Tool and Mfg A-3243 Pneumatic Press 1944lbf w/ Downstroke Sensor
Janesville Tool and Mfg A-3243 Pneumatic Press 3" Stroke 4" Bore 1944lbf @ 80PSI
Tescom BB-13PH1KEA4 Non-Venting Regulator, Max Inlet: 6000psi (414bar)
SMC VK3120-5DZ-M5-F 5-Port Solenoid Valve, 2-Position, Voltage: 24VDC, M5 x 0.8
Turck MS96-11Ex0-R Controller Signal Processor, Operating Voltage: 21-28VDC
其他推薦產(chǎn)品
首頁(yè)| 關(guān)于我們| 聯(lián)系我們| 友情鏈接| 廣告服務(wù)| 會(huì)員服務(wù)| 付款方式| 意見反饋| 法律聲明| 服務(wù)條款
490NAE91100網(wǎng)絡(luò)通訊及附件
490NAE91100網(wǎng)絡(luò)通訊及附件
490NAE91100網(wǎng)絡(luò)通訊及附件