in this video, you will learn how to communicate between Compactlogix and Micrologix processors over the ethernet. My course on udemy if you wanna learn more in detail www.udemy.com/...
I had problem when I was doing that in rslogix 500, in messages I received error code e0. I did not know why, but I tried your way and it worked :) I was using micrologix 1100 series B and compactlogix L32E.
First we use VFD for this kind of application and if we want to control it from PLC you need some input value to make sure its ramping up and down, therefore you need encoder as well so you PLC can get some kind of feedback.