Working GRBL in Arduino

Hi guys,
I've been working in a project with Arduino and CNC machine. I found out that I need GRBL software to generate G-codes to the machine and, also, I need another program to control the machine. Well, I use the Universal G-code Sender to control the CNC and Arduino to send G-codes to it. However, I would like to use just Arduino to do both, that is, I want to type some G-codes in the Arduino Serial Monitor and use this as my controlling program instead of Universal G-code Sender. I think I cannot get only one Arduino board to do this job (maybe I can, but I cannot see how) because I need one to run the Serial Monitor program and another one to run the GRBL. Well, I just don't know how to communicate both boards or how to do it by using just one board.
If someone has an idea, please, tell me.
Thanks!

The Serial Monitor runs on your computer, not an Arduino (unless you mean something
like the Tre)

GRBL doesn't generate G-code, its a G-code interpreter that can run on an Arduino.

oh, ok!
I meant that Serial Monitor runs on my computer, sorry.
And you're right, it's a G-code interpreter.
I just wanna know how to control a CNC machine by typing G-codes on Serial Monitor. That's my purpose.

Read the GRBL documentation? I've set it up once (the Arduino library version) and
I do vaguely recall it wasn't behaving very well from the Serial monitor.

I think I got my version from GRBL Arduino Library – Use the Arduino IDE to flash GRBL directly to your Arduino | Protoneer.co.nz

You asked about this issue in another Thread where I gave some information. Please don't waste everyone's time by discussing the same problem in two places.

...R