系統(tǒng)上位的人機界面是用VB編程,提供人機交互操作界面及數(shù)據(jù)選擇和相應的數(shù)據(jù)處理等功能。系統(tǒng)上位的操作界面如圖4所示。在操作界面的左上部是通訊鏈接控制框,這里只需要正確選擇PC的串口并輸入遠程PLC所連接的號碼后即可撥號鏈接,遠程的無線GSM MODEM模塊摘機響應一般設置為鈴響后自動摘機,通訊鏈接建立后,當上位PC檢測到串口端的數(shù)據(jù)載波DCD信號后,通訊鏈接控制框中的“鏈接狀態(tài)”指示燈由紅變綠,表示通訊鏈路已建立。撥號或掛機的操作均是通過對GSM MODEM模塊發(fā)送AT指令執(zhí)行的。490NAE91100網絡通訊及附件
廈門仲鑫達自動化設備有限公司
:李素云
企業(yè)QQ:,2851195466
手機:
:
對PLC數(shù)據(jù)的讀寫操作如操作界面的右上部所示,在相應文本框內填寫好數(shù)據(jù)的類型、地址、數(shù)值和操作方式后點擊“發(fā)送”即可執(zhí)行對PLC的讀或寫操作。界面的下半部分顯示的是PC串口發(fā)送和接收的代碼以及當前操作的結果。
3.2 系統(tǒng)上位計算機的串口設置
在上位PC的人機界面中,串口的設置是通過下拉選擇框選擇出所連接的串口后由程序自動讀取。在使用GSM MODEM無線模塊時,上位PC對遠程PLC鏈接呼叫時采用的是AT指令。程序語句為:MSComm1.Output=“ATDT”&Trim (Text1.Text)& vbCrLf//Text1文本框內為欲連接的號碼。掛機的AT指令為:MSComml.Output=“ATDT”&“+++”& vbCrLf。串口數(shù)據(jù)格式的設定語句為:MSComml.SetTIngs=“9600. N,8.1”,與TC35iGSM MODEM無線通訊模塊和遠程PLC自由口的串行數(shù)據(jù)通訊格式一致。
3.3 通訊數(shù)據(jù)格式的約定
由于遠程PLC采用的是自由口用戶通訊方式,這里對每次收發(fā)數(shù)據(jù)字節(jié)暫約定為18個字節(jié),數(shù)據(jù)字節(jié)的可根據(jù)實際需要而酌情約定。本系統(tǒng)中18個字節(jié)的約定:Bytel為數(shù)據(jù)的字節(jié)數(shù);Bvte2為數(shù)據(jù)開始特征字;Bvte3為數(shù)據(jù)讀或寫特征字:Byte4為數(shù)據(jù)類型特征字;Bvte5~Byte8為PLC數(shù)據(jù)地址;Bvte9~Bytel6為PLC數(shù)據(jù)的數(shù)值;Bytel7為收發(fā)數(shù)據(jù)的校驗碼;Bvtel8為數(shù)據(jù)結束特征字。串口數(shù)據(jù)的傳輸除數(shù)據(jù)地址字節(jié)和數(shù)據(jù)數(shù)值字節(jié)用ASCII碼表示外,其他均以十六進制方式表示。因而在上位PC的編程中需涉及大量的進制轉換操作。特別要注意的是由于PLC中的實數(shù)采用32位單精度數(shù)表示,并按照ANSI/IEEE745 1985標準格式以雙字長度來存取,所以無論是上位的PC或是下位的PLC在編程時對實數(shù)數(shù)據(jù)的處理均需嚴格遵循ANSI/IEEE7451985標準格式的規(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
其他推薦產品
490NAE91100網絡通訊及附件
490NAE91100網絡通訊及附件
490NAE91100網絡通訊及附件