Basic characteristics

Activation

In the channel parameter list you can specify a program name for which changeover to the streaming mode takes place if this program is started.

That is to say that this virtual streaming NC program is started as the main program (automatic mode) or as a global subprogram, and so the data is read automatically out of the streaming interface.

For users, this program then behaves as if it were available as a real file on the hard disk.

Terminating

The streaming mode can be appropriately terminated in a regular fashion by means of a main program end (M2/M30) or a subprogram end (M17/M29).

Basic characteristics 1:

That is to say that, after a program end M2/M30/M17/M29 has been written, you should first wait until the streaming interface has been completely read empty.

The area of a program start marked red in the figure above is ignored.

Only then is there a guarantee that the next streaming program will be executed correctly from the very beginning.

Example: Activating streaming when invoking the program, Channel parameter list

# **************************************** 
#
#TC_CHANNEL_DESC_1: SDA-Daten
#
# ****************************************
streaming_prog_file streaming.nc
…
N10 G01 X200 F1000
N20 X240 Y100
N30 X200 Y0
N40 L streaming.nc

Writing, timing sequence

The data stream can be written via a corresponding interface object, and one data packet can consist of one or several NC blocks.

In the case of several successive read accesses, the individual data packets are sorted according to chronological access and are available to the CNC for reading as a data packet consisting of several blocks.

On extraction, the data packets are no longer extracted singly but, instead, all data available at the time of read access is extracted as one common data packet (program segment).

Basic characteristics 2:

Notice

Art und Quelle der Gefahr

Each NC block must be terminated with carriage return (ASCII value = 13) and line feed (ASCII value = 10).

Interrupting

If the data stream is not written any further, this leads to temporary interruption of movement. Movement can then be continued by writing the data stream.

Cancelling/reset/deleting

The streaming mode is deactivated in the event of NC reset. The previous contents of the streaming interface are also deleted.