7 – 100 HEIDENHAIN Technical Manual TNC 426, TNC 430 
7.7.17 SET NOT (SN)
Syntax: SN (SET NOT)
Operands: M, I, O, T, C
Action:
If the logic accumulator = 0, then set the addressed operand to 1, otherwise 
do not change it. Use the SN command at the end of a sequence of logical 
gating operations in order to influence an operand independently from the 
result of gating. This command can be used several times in succession (see 
example).
Example:
Gate input I4 and I5 with OR. If the gating result is 0, then set output O2 and 
marker M500. 
Initial state:
Input I4 = 0
Input I5 = 0
Output O2 = ? 
Marker M500 = ?
Function STL Accumulator contents [bit] Operand contents [bit]
31..15 ..................... 7 ................. 0
Load the operand 
content into the logic 
accumulator.
L I4 x ..... x xxxxxxx0xxxxxxx 0
Gate the content of 
the logic 
accumulator and 
input I5 with OR
O I5 x ..... x xxxxxxx0xxxxxxx 0
Since the result of 
the operation is 0, 
set output O2.
SN O2 x ..... x xxxxxxx0xxxxxxx 1
Since the result of 
the operation is 0, 
set marker M500.
SN M500 x ..... x xxxxxxx0xxxxxxx 1