Output of additional information at block end
The #ADD command can be used for programming additional information in NC block. The possibilities for the structuring of an additional information (message text) are identical to the #MSG commands. But in contrast to the #MSG commands other NC commands may be programmed before the #ADD. Therefore #ADD has to be programmed always as the last command on NC block end. Following comments are allowed.
#ADD [<receiver>] ["<additional_information>"]
The programming of a mode (SYN) is not necessary and causes an error, because the message is always to be output synchronously with the processing state in the interpolator.
For the receiver specifications, the same requirements as for the #MSG commands apply.
The additional information must be enclosed in quotation marks "...".
Programming example
%add_block_info
N05 P1=20
N10 G00 X0 Y0 Z0
N15 T1 #ADD["Tool T=%d active", V.G.T_AKT]
N20 G01 F2000 X10 #ADD["Move to X-position"] (Comment)
N30 YP1 #ADD["Y-position=%d", P1]
N40 Z30 #ADD["Z-position"]
N50 Z33 #ADD["Z-position"] X11 Y22 ->Error 21509
N999 M30