B&R Automation Studio demo cnc application with B&R mapp components (MpCNC based on mapp motion)
This project can be started in a simulation environment ('ArSim') with a vnc viewer connected to 127.0.0.1 (8-Bit colour mode). Just press button '1.', '2.' and '3.' one after another to see Mickey.
The 'standard' way to run a cnc program is to insert a special data module named "CNC program" in Automation Studio and to edit it with the built-in editor that also supports minimalistic G-Code highlighting.
The second way is to create it outside with a text editor and store it as ANSI file on local flash or a network share. Just point a 'File Device' to the partition or directory ("CPU configuration/File devices")
Sometimes it might be useful to run the program out of a 'normal' data object. So just use Automation Studio and create a data object with unterminated strings followed by a single LF ('\n') character
Do similar in e.g. a STRING variable and create a general data object from by help of system Library 'DataObj' (DatObjCreate())