Logic Audio plugin to Midi track

hello everybody,
is it possible to have a plugin in Logic generating midi Output for a Midi track?
in Ableton Live this is easy to do, I just have to create midi output on my audio plugin and then select that audio channel/ plugin instance as a midi input for my midi track.
but how would it work in logic?
thanks,
d