欢迎您访问:瑞昌明盛自动化设备有限公司,我司将竭诚为您服务!
REXRTOH R911276826 MHD093B-035-NG0-AN自动化驱动板卡

主页 > 产品中心 > 力士乐

REXRTOH R911276826 MHD093B-035-NG0-AN自动化驱动板卡

类目:力士乐
型号:R911276826 MHD093B-035-NG0-AN
全国服务热线:+86 15270269218
手机:+86 15270269218
微信:+86 15270269218
QQ:3136378118
Email:stodcdcs@gmail.com

在线咨询
产品详情

REXRTOH  R911276826 MHD093B-035-NG0-AN自动化驱动板卡 REXRTOH  R911276826 MHD093B-035-NG0-AN自动化驱动板卡
瑞昌明盛进出口贸易有限公司
主营DCS控制系统备件,PLC系统备件及机器人系统备件,
优势品牌:Allen Bradley、BentlyNevada、ABB、Emerson Ovation、Honeywell DCS、Rockwell ICS Triplex、FOXBORO、Schneider PLC、GE Fanuc、Motorola、HIMA、TRICONEX、Prosoft等各种进口工业零部件
REXRTOH  R911276826 MHD093B-035-NG0-AN自动化驱动板卡 REXRTOH  R911276826 MHD093B-035-NG0-AN自动化驱动板卡 REXRTOH  R911276826 MHD093B-035-NG0-AN自动化驱动板卡

REXRTOH  R911276826 MHD093B-035-NG0-AN自动化驱动板卡
录波子程序每隔40毫秒将采样的数据送到各自的数据块中。为每个数据块定义一个数据指针,其初始值分别指向各数据块的首地址。每传送一次数据,各指针向下移动2字节。故障前7秒数据(350字节)是循环记录的,即如果在故障到来之前数据已存满,各数据指针将重新指向数据块的首地址。定义指针index用来记录20秒故障数据开始的位置。当故障到来时,数据指针指向故障后13秒数据(后650字节),此时指针index将前7秒数据分为前后两部分,正确的顺序是将前后两部分交换过来。当后13秒数据记录完后,录波子程序结束。程序流程图如图2所示。   3.3 通信子程序   通信子程序负责与上位机通信,将存储在数据区的故障数据通过串口分批传送给上位机。上位机每发送一次传送命令(用整数255表示),PLC在接收中断程序中判断收到的字符是否为传送命令,如果是则将传送命令标志M6.0置位并且在主程序中调用通信子程序。   定义指针tran_pointer用来指向待传送数据的首地址,其初值为&VW4000,即指向数据区首地址。定义变量count用来记录传送的次数。在通信子程序中,首先停止自由口的接收,然后将以指针tran_pointer为首地址,大小200字节的数据传送到发送缓冲区中,接着用发送命令通过串口发送出去。每发送一次数据,将指针tran_pointer向下移动200字节,变量count值加1, M6.0复位。当上位机发送完第26次传送命令时,PLC中数据区VW4000~VW8998的5000个字节已发送完毕,再将额定电压、额定电流、额定有功功率、额定无功功率和指针index发送出去, count值清零,指针tran_pointer重新初始化,M6.0复位。至此,一次完整的故障数据传送过程结束。
图2. 录波子程序流程图 4. 上位机程序设计   上位机程序设计是以Visual Basic 6.0 为平台,利用MS Comm控件,以事件驱动方式实现计算机与PLC之间串行通讯,完成数据间的交换。上位机程序包括用户界面设计、通讯和数据处理程序、显示程序等。   4.1 用户界面设计   本系统中,设计了两个窗体(Form1和Form2)。其中Form1为主界面,Form2为波形显示界面。在Form1中设计了一个MSComm控件、一个定时器控件(Timer1)和两个按钮控件(Command1和Command2)。其中Command1是开始按钮,即按下时开始和PLC通讯,读取其中的数据。Command2是显示按钮,即按下时调用窗体Form2,显示每个运行量的波形曲线。在Form2中设计了一个图片框控件(Picture1),用来显示图形。   4.2 通讯和数据处理程序设计   configured softlink 300 series compatible module. Since the equipment is mainly used for concrete pouring, the work continuity is large, the on-site environment is poor, and the interference is also large. However, since the commissioning and operation of the equipment for half a year, the performance of the control system is stable, the digital input and output has not been disturbed and misoperation, the analog input and output is stable, and the floating range is small, which well meets the control requirements, facilitates the maintenance of the equipment and greatly improves the productivity. The programmable controller has high reliability and strong anti-interference ability. The programmable controller uses software to replace a large number of intermediate relays and time relays, leaving only a small amount of hardware related to input and output. The wiring can be reduced to 1 / 10 ~ 1 / 100 of the relay control system, and the faults caused by poor contact can be greatly reduced. Programmable controller is the key performance of electrical control