LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dsc module modbus server handling uint8 variables

Hello!

 

I have a problem with handling Modbus uint8 variables in the dsc module . Unit8 Shared variables
are available in labview but Modbus i/o server Unit8 variables are not:


http://zone.ni.com/reference/en-XX/help/371618J-01/lvmve/dsc_modbus_using/

In our controller we split some 16 bit modbus registers into two 8 bit variables to pack some more usefull data in there. 


All of my shared variables are running nicely in the shared variable engine but I've no way of
easily binding them to my Modbus i/o server uint8 variables easily.

 

Any ideas?

I like the auto-scaling logging and binding of the DSC module shared variables
so I want to avoid some manual labview processes.

I want to view all shared variables in my front ponel at run time. I have 300+ variables so I'm trying to avoiding manual one-off hacks.

 

James

0 Kudos
Message 1 of 2
(2,344 Views)

jamesy777, 

 

The reason Unit8 variables are not available in the Modbus I/O sever is the nature of the I/O server data types compatible with the registers. If you’re writing to two registers, you can just read those two separate registers as U16s in LabVIEW. Otherwise, if you’re writing to the upper and lower half of the register, you can split the register into its 8-bit halves using the Split Number function in LabVIEW.

 

Split Number Function - http://zone.ni.com/reference/en-XX/help/371361L-01/glang/split_number/

 

Regards, 

 

Will M.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,306 Views)