27 lines
		
	
	
		
			671 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			671 B
		
	
	
	
		
			C#
		
	
	
	
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						|||
| 
								 | 
							
								using System.Linq;
							 | 
						|||
| 
								 | 
							
								using System.Text;
							 | 
						|||
| 
								 | 
							
								using System.Threading.Tasks;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								namespace DM_Weight.Port
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
								    public class MyBaseMessage
							 | 
						|||
| 
								 | 
							
								    {
							 | 
						|||
| 
								 | 
							
								        public int addr { get; set; } = 1;
							 | 
						|||
| 
								 | 
							
								        public short lockNo { get; set; }
							 | 
						|||
| 
								 | 
							
								        public short delay { get; set; } = 02;
							 | 
						|||
| 
								 | 
							
								        public int functionCode { get; set; } = 6;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        public MyBaseMessage() { }
							 | 
						|||
| 
								 | 
							
								        public MyBaseMessage(short lockNo, int addr = 1, short delay = 20, int functionCode = 6)
							 | 
						|||
| 
								 | 
							
								        {
							 | 
						|||
| 
								 | 
							
								            this.addr = addr;
							 | 
						|||
| 
								 | 
							
								            this.lockNo = lockNo;
							 | 
						|||
| 
								 | 
							
								            this.delay = delay;
							 | 
						|||
| 
								 | 
							
								            this.functionCode = functionCode;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								    }
							 | 
						|||
| 
								 | 
							
								}
							 |