20.12.2017, 11:44 
		
	
	
		Hello, I am working with MODBUS  module for TESYS U and LM5, but I need to write one bit individually. For example set 602.1 to 1. Could anyone help me please? Thanks
	
	
| 
					Write one bit in register modbus
				 | 
| 
		
		
		20.12.2017, 11:44 
		
	 
		Hello, I am working with MODBUS  module for TESYS U and LM5, but I need to write one bit individually. For example set 602.1 to 1. Could anyone help me please? Thanks
	 
		
		
		20.12.2017, 13:38 
		
	 
		Are you using profiles or scripts? In any case you will need a script to assemble final register value because profiles do not support writing individual bits.
	 
		
		
		20.12.2017, 15:25 
		
	 
		
		
		21.12.2017, 07:14 
		
	 
		As far as I understand, only one bit from 0..2 range can be set to 1. For this control I suggest creating 1-byte unsigned integer object and assign custom values (0 = set bit 0, 1 = set bit 1, 2 = set bit 2) to it so you don't have to create binary objects for each bit. Code: mode = grp.getvalue('1/1/1') -- 1-byte unsigned integer | 
| 
					« Next Oldest | Next Newest »
				 |