How Can We Help?
EASY – Fronts
Gestion des fronts en langage ST sous EasySoft

Exemple : https://github.com/brucott/frontsEasySoft
0001 (* ==============================================
0002 Front en langage ST sur EasySoft
0003
0004 M01 : Front montant
0005 M02 : Front descendant
0006 M03 : Fronts montant et descendant
0007 M04 : Flag
0008 ===============================================*)
0009
0010
0011 M01 := I01 AND NOT M04; // Front montant
0012
0013 M02 := NOT I1 AND M04; // Front descendant
0014
0015 M03 := I1 XOR M04; // Fronts montant et descendant
0016
0017 M04 := I1; // Gestion du flag
0018
0019 C01 (C_ := M01, QV => MB12); // Test front montant
0020 C02 (C_ := M02, QV => MB13); // Test front descendant
0021 C03 (C_ := M03, QV => MB14); // Test front montant et descendant