Generally, the thermodynamic parameters can assess the rationality of numerous chemical reaction pathways. Thus, the free energies of the transformation systems were calculated at the B3LYP/6-31G(d,p) level in DMSO-H2O, using the IEFPCM model. The results revealed that the Gibbs free energy of NPDM(K) is 0.1 kcal/mol higher than that of the NPDM(E) (Fig. ), proving that this transfer process is an exothermic reaction, which is thermodynamically favorable from the NPDM(K) to NPDM(E). In further investigation of the luminous mechanism, the ESP maps were performed to interpret the charge distribution difference between NPDM-Al 3+ (E) and NPDM-Al 3+ (K). As shown in Fig. , the ESP values of NPDM-Al 3+ (E) and NPDM-Al 3+ (K) are positive across the whole molecular scaffolds, demonstrating the inhibition of PET effect in NPDM-Al 3+ , which are consistent with the above spectral analysis. These results consolidated our proposed response mechanism (Scheme 1). Molecular logic gate is an interdisciplinary research field, and many efforts have been made to design molecular memory device in recent years. Sequential logic circuits are significant for the making of molecular memory devices to store data and execute logic gate operation via feedback loops, in which one of the outputs functions as an input of the memory device and is memorized as a 'memory element'. Inspired by the above observations, we designed a sequential logic circuit that displayed a 'Reading-Writing-Erasing-Reading' property assisted by a binary logic function (Fig. ). In the concrete system, we chose dual strong fluorescence outputs at 520 and 556 nm as the 'ON' state (Output = 1) and two quenched emission outputs as the 'OFF' state (Output = 0). Here, the two chemical inputs, namely Al 3+ (1) and F -(2), were chosed for the Set (S) and Reset (R) processes, respectively, and their existance is considered as "1" and the absence is designated as "0". The operation of this memory function is as follows: when the S input is a dual high emission values (S = 1), the system writes and then memorizes the binary state "1". By using R input (R=1), the stored data is erased, and then the binary state "0" will be memorized with the dual emissions quenching dramatically. Fig. depicts the bistable behavior, 'OFF-ON' state, of the tweezers NPDM and discloses the non-volatile feature of the "memory effect". The behavior can be popularly used in microprocessors for memory cells of integrated logic circuits. As described in Fig. , this type of repeatable and reconfigurable sequences of S/R logic operations can be embodied in the shape of a feedback loop, which manifests a memory nature akin to 'Reading-Writing-Erasing-Reading' functions. It is noteworthy that the logic device as presented here demonstrates its large advantages over early developed related systems, at least in relation to the reversibility and reproducibility as well as the great potentials for successive determination of common metal ions and anions (F -). The above results enunciated the eminent sensing performance of NPDM towards Al 3+ in solution, then again, the MTT assay showed that NPDM has very low cytotoxicity even at high concentrations (Fig. , ESI). In view of the redox-active Schiff-base-based fluorogenic probes can easily suffer from oxygenolysis which was induced by reactive oxygen species (ROS) and reactive nitrogen species (RNS), such as OCl -, ONOO -, and H2O2, which are three primary ROS and RNS in live cells, and evidence also suggests that OCl - and ONOO -can affect the fluorescence changes by oxidizing the C=N moiety of DAMN-based Schiff-base luminophores, the chemical stability of NPDM for Al 3+ detection in living cells was also investigated by evaluating the resistance to endogenous OCl -and ONOO -. As shown in Fig. , when the cells were treated with NPDM alone, there was almost none fluorescence signal. Then, lipopolysaccharide (LPS) and PMA were used to stimulate cells produce endogenous ONOO -and OCl -. However, no fluorescence signal was observed in the green channel but the cells showed ignorable fluorescence signal in the blue channel when the cells were pretreated with LPS and PMA for 4 h, and then stained with NPDM for 0.5 h (Fig. ). Next, the cells further cultured with Al 3+ showed obvious green fluorescence (Fig. ), indicating the excellent chemical stability of NPDM in living cells. All the results clearly manifested that NPDM is capable of long-term tracing Al 3+ without interferences by active substances in living cells.