sts098

I am very excited about OpenPLC.  It is a very interesting project. 

 

I am hoping to use OpenPLC to interface with an existing Inverter on a mixer.  The Inverter is an ABB ACS580.   This inverter has a modbus TCP card attached to it allowing access to the inverter setup, operating data (DIO, AIO, rpm, torque, voltage, amps, load, etc) errors and other variables all stored in holding registers. 

 

I have successfully used OpenPLC to connect with the inverter as a slave device.  I was able to map important registers to a provided block so I can poll DIO (Start, Stop, Auto/Manual buttons) and get rpm, torque, voltage, amps, load. 

 

My main issue now is writing a value to the holding registers (a block of five or more registers) to start the drive when in auto mode and start is pressed.  Logic is no problem.  My concern is writing the modbus holding register too frequently when data is not changing.  Currently I am polling at the default rate of 100 ms (I may shorten or lengthen as I check on responsiveness).  I do not wish to write the control registers every 100 ms, but prefer to do that on demand.  (Typically start Mixer / Stop Mixer may only be called every 20 minutes or longer and there may be hours until a subsequent batch needs to be mixed). 

 

I see there is a communications library.  Is there any way to access your modbus routines to write multiple register (function 16) from a function block?  Can you offer any guidance?

thiagoralves
That’s not possible yet. I’m working to add Modbus blocks on the editor so that you could do something like that in the future 
Reply 0 0
sts098
Thanks for the Quick Reply.  Looking forward to your update!  
Reply 0 0
Reply