LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus examples

I'm curious if this could be setup in mailbox mode like an opc server, or does it have to be query/response. I have a setup with momentum plc's, on ethernet, that uses the I/O scanner feature in the plc config. The plc continually transmits data to the opc server as part of the logic scan. It requires no plc logic to transmit data. Almost like turning labview into a remote I/O drop on a network. That would be really cool.
0 Kudos
Message 11 of 18
(4,379 Views)
You have to be careful when using this library. The query vi's do not close the VISA session after they are executed. I have my serial port locked at the moment. Time to reboot.
0 Kudos
Message 12 of 18
(4,373 Views)

It's probably too late now, but if I remember correctly, you don't need to reboot after not closing a VISA session, only to restart LV. Smiley Surprised


___________________
Try to take over the world!
0 Kudos
Message 13 of 18
(4,370 Views)
Here is a serial read multiple holding registers example. Data values are then put into a graph. 7.0 format
0 Kudos
Message 14 of 18
(4,361 Views)
Here is a modbus ethernet query for holding registers.
0 Kudos
Message 15 of 18
(4,347 Views)

Sorry for replying in an old thread...

I was searching for Modbus examples, I came across to this post.

tst,

I masscompiled the folder of VIs you posted to 8.5 & all of a sudden, some are broken. I dont know why...

unclebump,

The 2 VIs you posted miss some subVIs. Can you repost them now?

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 16 of 18
(3,324 Views)
Try this. It's supposed to be the original 7.1 LLB.

___________________
Try to take over the world!
Message 17 of 18
(3,314 Views)
Thanks, tst! Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 18 of 18
(3,307 Views)