LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus with zelisodt gives error Error -1967353901 occurred at Shared Variable

Solved!
Go to solution

Hi!

 

I'm trying to write data from LabiVIEW to the Zeliosft PLC from Schneider.  My program looks like this:

 

SveinTore_1-1662051375840.png

 

 

 

The IP adress for the PLC  is given as follows:

 

SveinTore_3-1662051631308.png

 

 

But when I run the program I get the following error message:

 

SveinTore_2-1662051498331.png

 

I'm using the DSC module.  And I'm using Ethernet Modbus.

 

Any suggestions?

 

 

Svein-Tore

 

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

Hi Svein,

 

can you ping the PLC from your LabVIEW computer?

Have you tried to use one of those available Modbus libraries instead of DSC?

Have you tried to use plain UDP or TCP functions to handle the "Modbus over Ethernet" messages on your own?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,217 Views)

Hi GerdW!

 

Honestly I am a bit noob when it comes to this.  I have found a youtube video and have followed the instructions from it.  The problem here I guess is the ip adress for the PLC.  I'm not sure, but I have found it to be 85.16.110.236.  So to your questions:

 

 can you ping the PLC from your LabVIEW computer?

 

 I'm not sure on how to do it.

 

Have you tried to use one of those available Modbus libraries instead of DSC?

 

I'm going to try.  I have started on a code that looks like this:

 

SveinTore_0-1662111110529.png

I think, if things is OK I will not get any error on the error out from the program.  I haven't tested this program though.

 

Have you tried to use plain UDP or TCP functions to handle the "Modbus over Ethernet" messages on your own?  I don't know how to do this.

 

BTW: I have to use Ethernet, so I think New TCP Master means ethernet?

 

Svein-Tore

 

 

0 Kudos
Message 3 of 4
(1,210 Views)
Solution
Accepted by topic author Svein-Tore

Finally I solved the problemn. I did some mistakes with setting the IP adresses.

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