stackpointer Posted August 11, 2013 Report Share Posted August 11, 2013 Dear all, I am dealing with a project to control a VFD altivar 312 with a V130-33-T2. It is my first time with a PLC, have choosed unitronics, because I think that it is a great piece of equipment with a good cost. My problem is that I do not understand how to read a register from the VFD; I want to read ETA status word (W3201), it is a 16 bit register. Every bit gives the most important information on the current status of the VFD. Then I will use these bits to perform a check, give information on the display, and make decisions. Reading the projects examples, I understand how to configure the V130 as a Master. Understand how to enable the port com and how to enable the modbus. But do not understand how do I have to read the register. I have done the following: Slave ID 3 Slave start of vector 3201 Read: vector lenght 1 Master: Start of vector MB100 Status messages MI0 Total sessions DW0 Acknowledgements DW1 And this is what I do not understand, the 16 bits will be stored in MB100 as an integer decimal number, or every bit will be stored in MB100, MB101,...,MB115? Thanks a lot for your answers, the learning curve is hard in the beginnings. Regards, Quote Link to comment Share on other sites More sharing options...
Gabriel Franco Posted August 11, 2013 Report Share Posted August 11, 2013 Master Start of Vector must be an MI also. FB doesn´t allow you to select MB. Make sure you are using Read Holding Register (03) Quote Link to comment Share on other sites More sharing options...
MVP 2014 Simon Posted August 12, 2013 MVP 2014 Report Share Posted August 12, 2013 Following on from the previous post, Once you get the block of 16-bits into an MI on the PLC, use the "Numeric to Bits" function from the "Vector" menu to unpack the value to 16 individual bits. Quote Link to comment Share on other sites More sharing options...
stackpointer Posted August 12, 2013 Author Report Share Posted August 12, 2013 Dear Gabriel and Simon, Thanks for the answers. Using now Read Holding Register (03), and using MI's. Using the Num to Bits function. Want to have all the info to perform checks. Regards, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.