LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to a holding register _ Tension controller MODBUS

Solved!
Go to solution

I've tried writing the register using python but it did not work. The manual talks about writing to the memory but I do not fully understand it..., how I am supposed to use the blocks in Labview and writing in the memory of the device.

henk1000_0-1720171911814.png

 

0 Kudos
Message 11 of 17
(218 Views)

Hi Henk,

 


@henk1000 wrote:

I've tried writing the register using python but it did not work. The manual talks about writing to the memory but I do not fully understand it..., how I am supposed to use the blocks in Labview and writing in the memory of the device.


At first: You should ask the manufacturer when you have questions on their manual…

 

My interpretation of the shown text snippet: you need to write certain values to a command register (@320) to have your device actually use the changed values in the parameter registers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 17
(214 Views)

I have sent them email early when I arrived at work. Still waiting for a reply.
I will  write a single register to @320 and after try to write to @142, 143 and see if it works.

0 Kudos
Message 13 of 17
(209 Views)

Did not work 😑

0 Kudos
Message 14 of 17
(193 Views)

How is the controller connect to your PC ? 

 

Can you share your test vi with us?

0 Kudos
Message 15 of 17
(176 Views)

Computer -> switch (static address) -> device
For reading it works now. The main problem is to write. I am now trying with python for writing the values in the register.

henk1000_1-1720203580124.png

 

 

0 Kudos
Message 16 of 17
(172 Views)
Solution
Accepted by topic author henk1000

So far the solution is using a python script. 

0 Kudos
Message 17 of 17
(142 Views)