亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mmz_rab.lib

?? modbus 運(yùn)用事例
?? LIB
?? 第 1 頁 / 共 3 頁
字號:
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmCtx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    / Turn on the RS485 transmitter by doing the following;      
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	ON_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, ON_VALUE, PORT_BIT);
			    
			    				
				//  If your product is a Zworld SBC, you can do the following
				
					ser485Tx();
					
				
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/



/* START FUNCTION DESCRIPTION *****************************************
mmDrx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmDrx  (void)

DESCRIPTION: 	User defineable function for disabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmDrx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmDrx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    while (serDwrUsed() || \
			    		  BitRdPortI(SDSR,2) || \
			    		  BitRdPortI(SDSR,3)); 
				
				// Turn off the RS485 transmitter by doing the following;
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	OFF_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, OFF_VALUE, PORT_BIT);
					
				// if your product is a Zworld SBC, you can do the following 
				//	instead
				
					ser485Rx();
					
				//  Flush out the serial port read buffer, so you are ready for
				//  the next packet.
					
					serDrdFlush();	 
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmDtx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmDtx  (void)

DESCRIPTION: 	User defineable function for enabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmDtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmDtx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    / Turn on the RS485 transmitter by doing the following;      
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	ON_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, ON_VALUE, PORT_BIT);
			    
			    				
				//  If your product is a Zworld SBC, you can do the following
				//	 instead
					ser485Tx();
					
				
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmDopen                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int mmDopen(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port D as a Modbus Master.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int mmDopen(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	if (serDopen(qBaud)) 
	{  
		// setup parity.  Either PARAM_OPARITY, PARAM_EPARITY, PARAM_NOPARITY, 
		// or PARAM_2STOP  
	
		serDparity(PARAM_EPARITY);
	 
		// setup data bits. Either PARAM_7BIT, or PARAM_8BIT 
	 
		serDdatabits(PARAM_8BIT);
	
  		// Set the Serial port mode. Used for Zworld SBC's only.  
		serMode(0);  
		return(1);
	 }
	 else return 0;
}
				 

PARAMETER1: slave address.
PARAMETER2: baud rate (bits per second).

RETURN VALUE: 1 if successful, 0 if unsupported baud rate.
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmErx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmErx  (void)

DESCRIPTION: 	User defineable function for disabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmErx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmErx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    while (serEwrUsed() || \
			    		  BitRdPortI(SESR,2) || \
			    		  BitRdPortI(SESR,3)); 
				
				// Turn off the RS485 transmitter by doing the following;
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	OFF_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, OFF_VALUE, PORT_BIT);
					
				// if your product is a Zworld SBC, you can do the following 
				//	instead
				
					ser485Rx();
					
				//  Flush out the serial port read buffer, so you are ready for
				//  the next packet.
					
					serErdFlush();	 
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmEtx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmEtx  (void)

DESCRIPTION: 	User defineable function for enabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmEtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmEtx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    / Turn on the RS485 transmitter by doing the following;      
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	ON_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, ON_VALUE, PORT_BIT);
			    
			    				
				//  If your product is a Zworld SBC, you can do the following
				//	 instead
					ser485Tx();
					
				
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmEopen                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int mmEopen(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port E as a Modbus Master.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int mmEopen(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	if (serEopen(qBaud))
	{ 
	  
		// setup parity.  Either PARAM_OPARITY, PARAM_EPARITY, PARAM_NOPARITY, 
		// or PARAM_2STOP  
		
		serEparity(PARAM_EPARITY);
		 
		// setup data bits. Either PARAM_7BIT, or PARAM_8BIT 
 		 
  		serEdatabits(PARAM_8BIT);
	
  		// Set the Serial port mode. Used for Zworld SBC's only.  
 		serMode(0);  
  		return(1);
	}
	else return (0);
}
				 

PARAMETER1: slave address.
PARAMETER2: baud rate (bits per second).

RETURN VALUE: 1 if successful, 0 if unsupported baud rate.
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmFrx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmFrx  (void)

DESCRIPTION: 	User defineable function for disabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmFrx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmFrx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    while (serFwrUsed() || \
			    		  BitRdPortI(SFSR,2) || \
			    		  BitRdPortI(SFSR,3)); 
				
				// Turn off the RS485 transmitter by doing the following;
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	OFF_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, OFF_VALUE, PORT_BIT);
					
				// if your product is a Zworld SBC, you can do the following 
				//	instead
				
					ser485Rx();
					
				//  Flush out the serial port read buffer, so you are ready for
				//  the next packet.
					
					serFrdFlush();	 
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmFopen                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int mmFopen(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port F as a Modbus Master.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int mmFopen(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	if (serFopen(qBaud)) 
	{  
		// setup parity.  Either PARAM_OPARITY, PARAM_EPARITY, PARAM_NOPARITY, 
		// or PARAM_2STOP  
	
		serFparity(PARAM_EPARITY);
		 
		// setup data bits. Either PARAM_7BIT, or PARAM_8BIT 
	 
		serFdatabits(PARAM_8BIT);
		
  		// Set the Serial port mode. Used for Zworld SBC's only.  
		serMode(0);  
		return(1);
	}
	else return (0);
}
				 

PARAMETER1: slave address.
PARAMETER2: baud rate (bits per second).

RETURN VALUE: 1 if successful, 0 if unsupported baud rate.
END DESCRIPTION ******************************************************/

/* START FUNCTION DESCRIPTION *****************************************
mmFtx                         <MMZ_RAB.LIB>

NOTE: MMZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	mmFtx  (void)

DESCRIPTION: 	User defineable function for enabling the rs485
					transmitter.  This function is needed in your application
					code.  If you are doing RS232, you need only to have
					an empty function like
					
					void mmFtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void mmFtx(void)
			  {
			    // Ensure that all the data has bent sent.
			    
			    / Turn on the RS485 transmitter by doing one the following;      
				
				//	PORT:				The parrallel port (PADR,PBDR,PCDR etc)          
				// PORTShadow: 	The Shadow register of the port
				//	ON_VALUE:		1 or 0
				//	PORT_BIT:		parrallel port bit (0-7)
				
					BitWrPortI(PORT,&PORTShadow, ON_VALUE, PORT_BIT);
			    
			    				
				//  Or,  you can do the following if your product is a Zworld SBC.        
						
					ser485Tx();
					
				
			  }			

RETURN VALUE: none
END DESCRIPTION ******************************************************/


/*** BeginHeader */
#endif
/*** EndHeader */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品综合免费视频观看| 亚洲一区二区三区国产| 国产成人夜色高潮福利影视| www国产精品av| 国产激情精品久久久第一区二区 | 久久激情综合网| ww久久中文字幕| 9l国产精品久久久久麻豆| 亚洲欧美日韩国产综合| 精品视频1区2区3区| 老司机午夜精品99久久| 国产精品三级在线观看| 欧洲精品一区二区三区在线观看| 日本怡春院一区二区| 2021国产精品久久精品 | 91天堂素人约啪| 石原莉奈一区二区三区在线观看| 日韩午夜三级在线| 国产成人8x视频一区二区| 亚洲欧美日韩国产一区二区三区| 91麻豆精品国产91久久久更新时间| 美美哒免费高清在线观看视频一区二区 | 人人爽香蕉精品| 亚洲国产精品ⅴa在线观看| 在线观看国产一区二区| 久久99精品国产麻豆婷婷| 国产精品女主播av| 91精品国产品国语在线不卡| 大美女一区二区三区| 午夜视频在线观看一区二区三区 | 成人动漫视频在线| 天天做天天摸天天爽国产一区| 久久婷婷国产综合精品青草| 99re成人在线| 国产中文字幕精品| 亚洲成人在线观看视频| 国产亚洲va综合人人澡精品| 欧美日韩精品欧美日韩精品一综合| 国内国产精品久久| 亚洲一区二区欧美| 国产精品另类一区| 精品蜜桃在线看| 欧美性猛交xxxx乱大交退制版| 国产一区二区视频在线| 亚洲sss视频在线视频| 国产精品色哟哟网站| 欧美videossexotv100| 在线观看欧美黄色| 99久久国产免费看| 国产真实精品久久二三区| 亚洲第一会所有码转帖| 亚洲欧美韩国综合色| 国产欧美视频一区二区三区| 欧美xfplay| 欧美日韩高清一区二区不卡| 91久久香蕉国产日韩欧美9色| 懂色av一区二区夜夜嗨| 国产一区二区三区高清播放| 日韩高清电影一区| 亚洲综合久久久| 亚洲免费在线视频| 亚洲人吸女人奶水| 中文字幕一区二区三区在线播放| 久久久不卡网国产精品一区| 日韩一区二区免费在线观看| 3atv一区二区三区| 在线观看91精品国产麻豆| 欧美四级电影在线观看| 欧美在线观看视频一区二区| 日本乱码高清不卡字幕| 91亚洲精品一区二区乱码| www.色精品| 91亚洲国产成人精品一区二区三| www.日韩大片| 日本乱人伦aⅴ精品| 91福利社在线观看| 欧美性色综合网| 777奇米四色成人影色区| 制服丝袜中文字幕一区| 日韩一区二区影院| 精品久久久久99| 国产人伦精品一区二区| 国产蜜臀97一区二区三区| 国产欧美精品一区| 国产精品久久久久久久久免费丝袜| 国产精品对白交换视频| 一区二区在线观看视频在线观看| 亚洲精品久久久蜜桃| 亚洲一区二区三区四区在线观看 | 欧美理论在线播放| 欧美卡1卡2卡| 精品成人私密视频| 久久精品亚洲精品国产欧美| 国产精品另类一区| 亚洲视频免费观看| 天天做天天摸天天爽国产一区| 免费人成在线不卡| 国产河南妇女毛片精品久久久 | 久久久精品免费网站| 国产精品美女久久久久久久久| 日韩毛片视频在线看| 亚洲国产精品视频| 久久66热偷产精品| jlzzjlzz亚洲女人18| 欧美日韩国产综合久久| 精品黑人一区二区三区久久| 国产欧美精品一区二区色综合| 一区二区三区资源| 久久激情五月激情| 色美美综合视频| 精品成人一区二区三区四区| 成人欧美一区二区三区小说| 三级一区在线视频先锋 | 99国产欧美另类久久久精品| 欧美日韩午夜在线| 国产欧美日韩一区二区三区在线观看| 亚洲视频综合在线| 捆绑紧缚一区二区三区视频| 成人一区二区三区| 欧美精品一二三| 国产精品天天摸av网| 日韩电影在线观看一区| 懂色av噜噜一区二区三区av| 欧美日本国产视频| 欧美国产综合色视频| 天天综合天天做天天综合| 国产成人精品综合在线观看| 51午夜精品国产| 亚洲精品午夜久久久| 国产河南妇女毛片精品久久久| 欧美日韩三级在线| 亚洲欧洲无码一区二区三区| 免费人成在线不卡| 欧美视频在线观看一区二区| 欧美激情一区不卡| 蜜乳av一区二区| 欧美日韩成人综合在线一区二区 | 国产精品久久久久aaaa| 麻豆免费精品视频| 91福利视频在线| 亚洲国产精品国自产拍av| 美女网站色91| 欧美在线视频你懂得| 国产精品麻豆一区二区| 国内精品久久久久影院薰衣草| 欧美精品国产精品| 一区二区在线观看免费视频播放| 成人手机在线视频| 久久久久久免费毛片精品| 久久精品国产第一区二区三区| 欧美主播一区二区三区美女| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 色噜噜狠狠色综合中国| 国产精品毛片高清在线完整版| 国产精品一区二区三区乱码| 亚洲天堂成人在线观看| 国内偷窥港台综合视频在线播放| 欧美一级欧美三级| 五月天婷婷综合| 欧美无砖砖区免费| 亚洲乱码中文字幕| 91在线你懂得| 亚洲另类在线视频| 色婷婷香蕉在线一区二区| 亚洲免费观看高清完整版在线 | 色哟哟亚洲精品| 日韩伦理免费电影| 日本精品裸体写真集在线观看| 亚洲日本青草视频在线怡红院 | 日韩欧美激情四射| 免费高清成人在线| 精品精品国产高清a毛片牛牛| 久久精品国产免费| 久久久久久久综合| 成人av在线电影| 亚洲精品国产高清久久伦理二区| 97aⅴ精品视频一二三区| 亚洲人成网站精品片在线观看| 国产亚洲一区字幕| 亚洲成人av福利| 久久久久久久久久久99999| 欧美在线免费视屏| 国产乱码精品1区2区3区| 亚洲成人免费观看| 国产精品蜜臀在线观看| 日韩女同互慰一区二区| 色婷婷久久久综合中文字幕| 国产精品自在在线| 日韩黄色小视频| 精品中文字幕一区二区| 久久精品在线免费观看| 国产精品免费免费| 免费国产亚洲视频| 久久久蜜桃精品| 91婷婷韩国欧美一区二区| 亚洲无线码一区二区三区| 日韩欧美一级精品久久| 国产精品自在在线| 一区二区三区中文字幕精品精品 | 一区二区三区日韩精品视频|