Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write bit value of a holding register with boolean control by modbus?

I can read or write word value of a holding register, but I don't know how to change a bit of a holding register. Is there any function to do that?

0 Kudos
Message 1 of 4
(2,739 Views)

There are many ways that you could possibly do this, one method that might work is to use the "Number to boolean array" function.https://zone.ni.com/reference/en-XX/help/371361R-01/glang/number_to_boolean_array/

 

0 Kudos
Message 2 of 4
(2,704 Views)

I have found the function I want. Thank you for your reply.

0 Kudos
Message 3 of 4
(2,693 Views)

Hello, can you explain how did you get to write a boolean value into a holding register ?

0 Kudos
Message 4 of 4
(1,126 Views)