Sign in to follow this  
Followers 0
fahed

Twido to TeSys U Motor Starter comms. EXCH2 Control table?

4 posts in this topic

Hi, I need to connect a Twido to a TeSys U motor starter. The starter has a modbus module that can be used for remote comms. I understand that I need to use EXCH instruction but I am not very clear on how it is used and needs to be setup in twidosoft. I wold appreciate some help on this matter. This is how I have tried to implement it but it doesnt seem to work: (* RESET DATA EXCHANGE *) BLK %MSG2 LD %I0.0.1 R END_BLK (* INITIALIZE CONTROL TABLE *) LDR %I0.0.2 [ %MW0:15 := 0 ] [ %MW0 := 16#010C ] (* transmission length *) [ %MW1 := 16#0007 ] (* transmission reception offset *) [ %MW2 := 16#0503 ] (* address/ request code.. 05 is address, 03 is modbus code *) [ %MW3 := 455 ] (*control word... register of starter that has the info*) [ %MW4 := 2 ] (* no.of words to write*) (* 0 = REQUEST ACTIVE; 1 = READY TO TRANSMIT *) LDR %I0.0.2 [ %MW6 := 16#0000 ] (* high word data *) [ %MW7 := 16#000F ] (* low word data *) AND %MSG2.D [ EXCH2 %MW0:12 ] This is adapted from another application I found that uses EXCH2 instruction. I would appeciate if someone could help me out here, specifically on calculating the transmission length, offsets and word data etc. Thank you.

Share this post


Link to post
Share on other sites
This is how I write Modbus Master (* DCOMCONTROL MANAGEMENT *) LDR %M1 [ %MW0:12 := 0 ] [ %MW0 := 16#010C ] [ %MW1 := 16#0007 ] [ %MW2 := 16#0510 ] (*10 is my modbus code*) [ %MW3 := 1234 ] (*Address of the word to write*) [ %MW4 := 16#0002 ] (*N = Number of words to write*) [ %MW5 := 16#0004 ] (*00, 2*N*) [ %MW6 := 16#000F ] I hope this helped you. Edited by esload

Share this post


Link to post
Share on other sites
Thanks esload. I have tried that and my controller still cannot talk/control the slave over modbus. I need to change bit 0 to a value of one in register number 705 of a modbus slave. what would be the values of %MW3, %MW5, %MW6 and %MW7 in my control table? I thank you for your help.

Share this post


Link to post
Share on other sites
%MW3:= 705 %MW5 -> if %MW4:=2 then %MW5:=4 %MW6:=1 %MW7 -> I think that you don't need to write this one. How TeSys U motor starter handeling Modbus double word sequence? Twido use LowHigh order. Example I have to chance Lexium 05 Modbus communication from HighLow to LowHigh to get it work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0