Sending gcode to smoothieboard realtime

Haven’t been around in a while… My current smoothieboard based project is doing great… On to the next one…

Not sure if this is possible… Would think so… Just need some direction where to start…
Can I have a micro (arduino or similar) send Gcode to smoothie board in “real-time” so to speak?
I wanted to use a vision system to detect parts and as a part is “found” on the conveyor send the x/y/z coordinates to smoothie to go “fetch” them.
So its not a “preprogrammed” Gcode file but streaming as needed…

Imported from wikidot

Sure that’s no problem at all, just send G-codes normally over the UART ( Serial ) port.