Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Mon Nov 20, 2017 2:19 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Modbus communication
PostPosted: Fri Jul 24, 2009 7:51 am 
Offline

Joined: Wed Apr 11, 2007 4:47 pm
Posts: 32
I have follow the application note of "qlarity_terminals_as_modbus_master.pdf" to setup a modbus communication.

I setup two MBRegisterV2 object named MB_register01 and MB_register02, I read slave's register via MB_register01 and write slave's register via MB_register02.

the read communication looks fine, slave change the register value and MB_register01 will get the change. but when i trigger the follow code try to write some thing to register, some error will come

Modbuscomm: TCP/IP lost. Attempting to reconnect
Ethernet Error: Responce Delay

my code to write register

func handlekeypress()
test_wr:=test_wr+15
label_2.value=str(test_wr)
Mb_register02.Value =label_2.value
endfunc

is anything wrong on my code?


Top
 Profile  
 
 Post subject: Re: Modbus communication
PostPosted: Mon Jul 27, 2009 8:56 am 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
The code looks correct, assuming Mb_register02 is a holding register.

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group