OK thanks for your advice! I tried and i thought I had already fixed the problem! The problem was about Xon and Xoff that the software did not send line by line to the Bluetooth and the robot did not run well! I had fixed that problem and also changed little the code based on yours! Thank you so much!
In fact, i understood your code in processing 3. When i input the gcode file (.ngc) they appear in the command but the robot does nothing! Not like when t write "T102" or "T103" to make it draw!? Do you know how to solve the problem?
Okay! I see your point but i cannot find how to connect bluetooth of the robot to the "Processing 3" software like using Tera Term. Can you show me how to do it?