Removing (broadcast) signals (#SIGNAL REMOVE)

Signals are generally cleared after consumption by an assigned WAIT. In addition, non-broadcast signals are implicitly cleared for an NC reset of the receiver channel (see section Reset handling). Since broadcast signals are not cleared by a WAIT unless the consumption counter is specified, they must be cleared explicitly. An additional NC command exists for this purpose. This NC command can also be used to clear normal signals although in this case the identification number and the addressed channel must match.

If a single signal is specified for clearing, only one signal is cleared if more than one identical signals exist. However, when specifying a signal range [ID; IDMAX], i.e. including several identical signal numbers, all signals within this range are cleared.

Syntax:

#SIGNAL REMOVE [<mode>] [ ID=.. | IDMIN=.. [IDMAX=..] { CH=.. } ]

<mode>

Synchronisation mode. Permitted identifiers:

---: Synchronisation at decoding level (initial state) For example, this synchronisation is required if it is necessary to synchronise to parameters or variables.

SYN: Synchronisation at interpolator level. This synchronisation is required in the case of real-time requests, e.g. synchronisation of two machining units on a multi-column machine

ID=..

Number of broadcast signal to be cleared. Positive integer.

IDMIN=..

First broadcast signal in a range to be cleared. Also alternative to ID=... Positive integer

IDMAX=..

Last broadcast signal in a range to be cleared. Positive integer

CH=..

Number of channel for which the signal to be cleared is destined.
1...max. number of channels (1)

If no channel number is specified, the corresponding broadcast signal is cleared

(1) see [6]-2.4

Programing Example

prg_example

Clearing (broadcast) signals

(Clear a broadcast signal 812, synchronisation at DEC level)

N500 #SIGNAL REMOVE [ID812] or

#SIGNAL REMOVE [IDMIN812]

(Clear a signal 812 to channel2, synchronisation at DEC level)

N500 #SIGNAL REMOVE [ID812 CH2]

(Clear all broadcast signals in 812-820,
synchronisation at DEC level)

N500 #SIGNAL REMOVE [IDMIN812 IDMAX820] or

#SIGNAL REMOVE [ID812 IDMAX820]

(Clear all signals 812 to channel 1, synchronisation at DEC level)

N500 #SIGNAL REMOVE [ID812 IDMAX812 CH1]

(Clear a broadcast signal 813, synchronisation at IPO level)

N600 #SIGNAL REMOVE SYN [ID813]