取消
显示结果 
搜索替代 
您的意思是: 

Modbus TCP/ip Error 56

Yes.As i already mentioned with unit id=1 i can not communicate with module by modbus poll software.

Unit id has been set to "0" in the module and i can not change it.

0 项奖励
11 条消息(共 20 条)
3,355 次查看

The Unit ID is the Slave address. You say you cannot change it. But it is a constant in your VI.

So you can change it.

 

ModBus Poll Software ???? ModBus is a Master-Slave connection I don't what ModBus Poll Software is.

0 项奖励
12 条消息(共 20 条)
3,343 次查看

Hi again

 

Thanks my friend for your reply.

The Slave id of module is "0" and is fixed internally.I don't have possibility of changing that.

So

I just can communicate with module via ID="0".

Modbus poll is a software for connecting devices via modbus .Just search net.It is popular.

 

I experienced in modbus poll that by setting ID=0 i can communicate with my slave module without ant error(and of course by modbus poll software).When i change id from 0 to 1 , communicating will not establish and just receive error(in modbus poll).

NOW

 

I just need to :

read coil status of module by labview program.I wrote such a program but i receive error 56.

I was in doubt about antivirus.I disabled it but nothing changed.

Perhaps any toolkit should be installed.If so,please guide me dear friends.

I really need your help.

 

best regards

0 项奖励
13 条消息(共 20 条)
3,333 次查看

Well it could be that the toolkit VI does not receive any data because normally there is no data to receive when the Unit ID/Slave address is 0. 

But I cannot see that. That is why I created my own ModBus VI's (also because we use dedicated ModBus commands)

 

You can ask NI what the LIb does with a read registers with Unit ID 0

0 项奖励
14 条消息(共 20 条)
3,327 次查看

Is there any other solution ?

IO server or ...

0 项奖励
15 条消息(共 20 条)
3,322 次查看

I will try to build a VI for for test. Need to find the time.....

0 项奖励
16 条消息(共 20 条)
3,317 次查看

@nanocycle wrote:

Is there any other solution ?

IO server or ...


Try the library found here.  MODBUS Library for LabVIEW

 

It is a bit older, but I still use it.  Though I mainly do serial not TCP/IP.  Another advantage is that you open up all the subVI's to see how they work.

0 项奖励
17 条消息(共 20 条)
3,306 次查看

Hi,

 

Forgot all about this old Lib.  Thank you

I checked and I don't see that is doing something else when the unit ID is 0

 

Nanocycle: Can you try this Lib ?

 

Kees

0 项奖励
18 条消息(共 20 条)
3,297 次查看

Dear Friend,

 

i am not familiar with using old lib.

can you guide me how to use it?

 

regards

0 项奖励
19 条消息(共 20 条)
3,252 次查看

It's pretty similar as to how the new libraries work.  You initialize the connection, you use the read and write subVI's and select the version for the type of register you want to read and write, and close it out the end.  Use context help to read what each of the inputs mean.

0 项奖励
20 条消息(共 20 条)
3,203 次查看