LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DSC to use a modbus implementation.

Hello,

I have some questions concerning the implementation of modbus connection using the dsc module. 
The examples using modbus are working fine but I need to implement a modbus connection using registers from function code 03: read output registers and function code 06: Preset single register.
In the modbus zip file (not the dsc file) found in labview website it is possible to select a function code but in DSC module I couldn't find any possibility to add a function code.
So my question is where could I add a function code inside the DSC module. I have searched in all labview documentation but I didn't find any information about this issue.
Because the registers using function code 03 is between 400001- 465535 and this is in the same range as function code 06. So the writing and reading shall conflict each other because it use the same register.

Hopefully anyone can help me,

Regards,

Justin Au-yeung
0 Kudos
Message 1 of 3
(6,745 Views)
Hey,
If I've well understood your problem, you want to speak with a device using the Modbus Protocol ?
I've done this via the Visa option in Labview. If you want some help,
let me know,
bye,
V-F
0 Kudos
Message 2 of 3
(5,712 Views)
Function code 3 is actually called read holding registers, not read output registers.   This operates on the 40,000 series registers.  Preset single register (code 6) and write multiple registers (code 16) also operate on the 40,000 series registers.  Those registers can be read from or written to.  There is no "conflict".
 
Function code 4 is Read input registers, which can only be read.  There is no writing to them.  They are a different set of registers in the 30,000 series.
 
I've used the DSC module, but not to read from or write to a Modbus device.  However, I'm certain it would have all the functions you would need and there is no need to "add a function code."
0 Kudos
Message 3 of 3
(5,673 Views)