欢迎您访问:瑞昌明盛自动化设备有限公司,我司将竭诚为您服务!
REXRTOH R911278149工控自动化控制器

主页 > 产品中心 > RELIANCE

REXRTOH R911278149工控自动化控制器

类目:RELIANCE
型号:R911278149
全国服务热线:15270269218
手机:15270269218
微信:15270269218
QQ:3136378118
Email:3136378118@qq.com

在线咨询
产品详情

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

REXRTOH  R911278149工控自动化控制器
构建双方的传输时序时必须充分考虑PLC系统的工作原理、输出特性及其差异以及传输过程的可靠性等问题。综合考虑这些因素后所设计的传输时序如图4所示。传输1次显示数据总共需要21个时钟周期,其中3个时钟用于同步信号,16个时钟用于传输显示数据的4位BCD码或特定的提示字符,2个时钟用于传输2位表示小数点显示位置的信息。显示数据和小数点位置信息的低位在前,高位在后。例如,图4表示传输的显示数据为8951,小数点位置信息为10,表示小数点在十位之后,因此终显示数据为895.1。
图4 数显仪表和PLC系统之间的传输时序图片加载中…
图4 数显仪表和PLC系统之间的传输时序
由于PLC系统基于扫描原理周而复始地刷新输入信号、执行用户程序和输出运行结果[4],在一个扫描周期内让PLC系统的输出信号发生跳变难于实现,因此图4的一个时钟周期需要占用PLC系统的两个扫描周期。每次传输过程增设3个同步脉冲是为了提高传输过程的可靠性,确保PLC系统及其传输线路无论出现何种故障,都可以在故障恢复后的一个传输周期内正确地传输显示数据。
3 软件设计
数显仪表的程序由初始化、外中断0服务程序、外中断1服务程序和定时器T0中断服务程序4部分组成。T0每隔5ms中断1次,在其中断服务程序中根据接收到的显示数据及其小数点位置信息完成4位数码管的动态显示。外中断0服务程序用于检测同步信号,外中断1服务程序用于接收16位显示数据的BCD编码和2位表示小数点显示位置的信息。
3.1 外中断0服务程序
外中断0由数据信号线的下降沿触发,在其中断服务程序中,如果检测到时钟线为低电平,则视为同步信号。当检测到3个同步脉冲后,则表明收到了正确的同步信号,此时关闭外中断0,开启外中断1,借助于外中断1服务程序接收数据。如果在前一次或前两次中断服务程序中已检测同步脉冲而本次未检测到同步脉冲,则视为无效同步信号。外中断0服务程序的主要代码如下:
void Int0_Srvice(void) interrupt 0
{ p33=1;
if(p33==0) SysClock++; //有效,同步脉冲加1
else SysClock=0; //无效,同步脉冲清零
if(SysClock==3)
{ //检测到3个同步脉冲
RecEnable=1; //置允许接收标志
EX0=0; //关闭外中断0
EX1=1; //开放外中断1detection and data networking. 3.2.1 the formula management module realizes the batch control of parameters, and designs different formulas according to different crops or different growth stages of the same crop. The software provides simple and convenient configuration and operation functions. The parameters to be modified are first defined as variables, so that the operator can modify them easily through the operation screen. The detailed expression is as follows:



3.2.2 detection of real-time parameters

The detection of real-time parameters is always the most important link of front-line production, and timely respond to the current production situation. The detection instruments selected by the system try to output standard signals. For the application environment of the greenhouse in the agricultural park is characterized by high humidity, so special attention should be paid to moisture prevention in the selection of transmitters. In such an environment, analytical transmitters such as