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

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

?? msz_rab.lib

?? modbus 運(yùn)用事例
?? LIB
?? 第 1 頁 / 共 3 頁
字號(hào):
			    while (serCwrUsed() || \
			    		  BitRdPortI(SCSR,2) || \
			    		  BitRdPortI(SCSR,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.
					
					serCrdFlush();	 
			  }			

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

/* START FUNCTION DESCRIPTION *****************************************
msCtx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msCtx  (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 msCtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msCtx(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 *****************************************
msDinit                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int msDinit(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port D as a Modbus ASCII Slave.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int msDinit(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	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);
}
				 

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

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

/* START FUNCTION DESCRIPTION *****************************************
msDrx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msDrx  (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 msDrx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msDrx(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 *****************************************
msDtx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msDtx  (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 msDtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msDtx(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 *****************************************
msEinit                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int msEinit(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port E as a Modbus ASCII Slave.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int msEinit(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	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);
}
				 

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

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

/* START FUNCTION DESCRIPTION *****************************************
msErx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msErx  (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 msErx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msErx(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 *****************************************
msEtx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msEtx  (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 msEtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msEtx(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 *****************************************
msFinit                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 	int msFinit(unsigned qBaud)

DESCRIPTION: User function for
				 Initializing serial port F as a Modbus ASCII Slave.
				 
				 This function must reside in your application code.
				 Typical code for this function would be the following;
				 
int msFinit(unsigned qBaud)        
{
	// Open the serial port.  THIS MUST BE DONE PRIOR TO SETTING THE
	// DATA BITS AND PARITY SETTINGS.
	
	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);
}
				 

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

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

/* START FUNCTION DESCRIPTION *****************************************
msFrx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msFrx  (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 msFrx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msFrx(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 *****************************************
msFtx                         <MSZ_RAB.LIB>

NOTE: MSZ_RAB.LIB functions are generally not reentrant.

SYNTAX: 			void	msFtx  (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 msFtx(void)
					{
					}
					
					For rs485 control, you can do the following;

EXAMPLE:	  void msFtx(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 ******************************************************/

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91美女视频网站| 国产美女娇喘av呻吟久久| 日韩亚洲欧美在线观看| 国产91精品在线观看| 午夜精品免费在线| 中文字幕在线一区免费| 欧美一级午夜免费电影| 色综合夜色一区| 国产成人超碰人人澡人人澡| 日本网站在线观看一区二区三区 | 久久婷婷国产综合国色天香| 在线亚洲免费视频| jlzzjlzz亚洲女人18| 久久99国内精品| 亚洲一区在线观看网站| 欧美国产激情一区二区三区蜜月| 欧美一区二区三级| 欧美影院一区二区三区| 99久久精品费精品国产一区二区| 黄一区二区三区| 久久国产精品一区二区| 日韩二区三区四区| 亚洲va韩国va欧美va| 樱花影视一区二区| 国产精品久久国产精麻豆99网站| 2017欧美狠狠色| 精品久久久网站| 欧美一区在线视频| 欧美日韩电影在线| 精品视频一区二区不卡| 在线欧美小视频| 色久综合一二码| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 欧美日韩精品一区二区三区 | 久久精品理论片| 五月激情综合婷婷| 日韩精品一区第一页| 一区二区免费看| 亚洲精品伦理在线| 亚洲视频在线观看一区| 亚洲精品国产a| 亚洲欧美一区二区三区孕妇| 中文字幕中文字幕在线一区| 亚洲三级免费观看| 亚洲色图欧洲色图| 一区二区三区高清在线| 亚洲综合成人在线视频| 亚洲午夜一二三区视频| 五月天精品一区二区三区| 日韩电影在线观看电影| 九九精品一区二区| 国产成人综合亚洲网站| 99精品黄色片免费大全| 色美美综合视频| 欧美无砖专区一中文字| 日韩精品专区在线影院重磅| 久久免费美女视频| 国产精品久久久久国产精品日日| 国产精品福利av| 亚洲va欧美va人人爽午夜| 老司机免费视频一区二区三区| 国产一区二区在线视频| 成人国产精品免费观看| 色噜噜夜夜夜综合网| 欧美一级免费大片| 欧美极品aⅴ影院| 亚洲人成人一区二区在线观看| 亚洲国产色一区| 激情国产一区二区| 一本大道av一区二区在线播放 | 欧美在线三级电影| 日韩欧美电影一区| 亚洲视频电影在线| 日本sm残虐另类| 波多野结衣在线一区| 欧美日韩国产123区| 国产欧美一区二区精品久导航| 亚洲免费观看高清在线观看| 亚洲成人av一区| 国产成人免费av在线| 在线国产电影不卡| 久久精品日产第一区二区三区高清版 | 日本韩国一区二区| 欧美一二三区在线| 国产精品三级电影| 亚洲一线二线三线久久久| 美女视频黄 久久| 99久久er热在这里只有精品66| 在线播放中文字幕一区| 中文字幕视频一区二区三区久| 日本aⅴ免费视频一区二区三区| 丁香五精品蜜臀久久久久99网站| 欧美性生活大片视频| 国产亚洲精品7777| 天堂一区二区在线| 99久久综合国产精品| 欧美草草影院在线视频| 一区二区三区欧美亚洲| 国产成人精品综合在线观看| 欧美日韩视频第一区| 国产精品久久久久久久久动漫 | 美脚の诱脚舐め脚责91| 色香蕉成人二区免费| 国产日韩一级二级三级| 日韩国产精品久久| 色综合亚洲欧洲| 国产精品久久久久永久免费观看| 久久99精品久久久久久| 欧美日韩国产综合久久| 亚洲精品国产高清久久伦理二区| 国产成人亚洲精品狼色在线| 亚洲精品在线观看网站| 免费人成黄页网站在线一区二区| 色吧成人激情小说| 国产精品久久一卡二卡| 久久激情五月激情| 日韩欧美国产三级| 午夜精品视频在线观看| 欧美日韩中文国产| 亚洲综合久久av| 99精品在线免费| 国产免费观看久久| 国产精品一区2区| 欧美精品一区二区三区高清aⅴ| 日韩精品免费专区| 欧美三级三级三级爽爽爽| 一区二区三区欧美在线观看| 色先锋久久av资源部| 亚洲激情中文1区| 7777女厕盗摄久久久| 亚洲一区二区五区| 在线看日本不卡| 亚洲成人动漫在线观看| 91丨porny丨中文| 亚洲欧美自拍偷拍色图| av网站免费线看精品| 国产精品萝li| 色香蕉久久蜜桃| 亚洲一区二区综合| 欧美性色欧美a在线播放| 午夜伦理一区二区| 欧美一区二区三区色| 日本欧美一区二区| 精品国产一二三| 国产成人三级在线观看| 国产精品麻豆久久久| 一本大道久久a久久精二百| 亚洲高清中文字幕| 日韩欧美中文字幕公布| 国产自产v一区二区三区c| 亚洲精品在线免费观看视频| 成人免费不卡视频| 亚洲欧美另类图片小说| 欧美日韩一二三区| 精品在线你懂的| 亚洲国产精品激情在线观看 | 精品少妇一区二区三区日产乱码 | 丝瓜av网站精品一区二区| 91精品国产综合久久福利| 久久国产尿小便嘘嘘尿| 中文一区二区在线观看| 色综合欧美在线视频区| 日韩精品亚洲专区| 久久一区二区视频| 91麻豆国产自产在线观看| 亚洲成人免费观看| 精品福利在线导航| 99久久精品一区| 日本美女一区二区| 国产欧美一二三区| 欧美色网站导航| 国产一区999| 一区二区三区小说| 精品日韩在线一区| 一本一道久久a久久精品| 免费看黄色91| 亚洲三级在线播放| 久久亚洲精品国产精品紫薇| 91一区二区在线| 美女视频黄久久| 亚洲欧美国产77777| 精品国产人成亚洲区| 91亚洲国产成人精品一区二三| 日本成人在线一区| 成人免费小视频| 精品久久久久久综合日本欧美| 色噜噜狠狠成人中文综合| 国产一区二区伦理片| 性欧美大战久久久久久久久| 亚洲国产成人一区二区三区| 7878成人国产在线观看| 99精品国产99久久久久久白柏| 精品无码三级在线观看视频| 一区二区三区精品视频| 国产精品网站在线播放| 欧美一区二区播放| 欧美色偷偷大香| 972aa.com艺术欧美| 国产老妇另类xxxxx| 日韩国产欧美三级|