系统上位的人机界面是用VB编程,提供人机交互操作界面及数据选择和相应的数据处理等功能。系统上位的操作界面如图4所示。在操作界面的左上部是通讯链接控制框,这里只需要正确选择PC的串口并输入远程PLC所连接的号码后即可拨号链接,远程的无线GSM MODEM模块摘机响应一般设置为铃响后自动摘机,通讯链接建立后,当上位PC检测到串口端的数据载波DCD信号后,通讯链接控制框中的“链接状态”指示灯由红变绿,表示通讯链路已建立。拨号或挂机的操作均是通过对GSM MODEM模块发送AT指令执行的。490NAE91100网络通讯及附件
厦门仲鑫达自动化设备有限公司
:李素云
企业QQ:,2851195466
手机:
:
对PLC数据的读写操作如操作界面的右上部所示,在相应文本框内填写好数据的类型、地址、数值和操作方式后点击“发送”即可执行对PLC的读或写操作。界面的下半部分显示的是PC串口发送和接收的代码以及当前操作的结果。
3.2 系统上位计算机的串口设置
在上位PC的人机界面中,串口的设置是通过下拉选择框选择出所连接的串口后由程序自动读取。在使用GSM MODEM无线模块时,上位PC对远程PLC链接呼叫时采用的是AT指令。程序语句为:MSComm1.Output=“ATDT”&Trim (Text1.Text)& vbCrLf//Text1文本框内为欲连接的号码。挂机的AT指令为:MSComml.Output=“ATDT”&“+++”& vbCrLf。串口数据格式的设定语句为:MSComml.SetTIngs=“9600. N,8.1”,与TC35iGSM MODEM无线通讯模块和远程PLC自由口的串行数据通讯格式一致。
3.3 通讯数据格式的约定
由于远程PLC采用的是自由口用户通讯方式,这里对每次收发数据字节暂约定为18个字节,数据字节的可根据实际需要而酌情约定。本系统中18个字节的约定:Bytel为数据的字节数;Bvte2为数据开始特征字;Bvte3为数据读或写特征字:Byte4为数据类型特征字;Bvte5~Byte8为PLC数据地址;Bvte9~Bytel6为PLC数据的数值;Bytel7为收发数据的校验码;Bvtel8为数据结束特征字。串口数据的传输除数据地址字节和数据数值字节用ASCII码表示外,其他均以十六进制方式表示。因而在上位PC的编程中需涉及大量的进制转换操作。特别要注意的是由于PLC中的实数采用32位单精度数表示,并按照ANSI/IEEE745 1985标准格式以双字长度来存取,所以无论是上位的PC或是下位的PLC在编程时对实数数据的处理均需严格遵循ANSI/IEEE7451985标准格式的规定,否则将不可能读到正确的数据。
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网络通讯及附件