I've written something simple in SCL. Problem I have is, the data that is transmitted with a rising edge or a falling edge to the DB's (see red) becomes zero, I mean, the data transmitted into the DB is hold for only 1 cycle ????
When I connect Merkerwords MW100 and MW102 for example, then the data is kept in these datalocations, but in the DB's not ???
When I connect Merkerwords MW100 and MW102 for example, then the data is kept in these datalocations, but in the DB's not ???
Code:
BEGIN
Flank_Voorloper:= Voorloper_Tapijt AND (NOT Membit_1);
Flank_Tapijt:= (NOT Voorloper_Tapijt) AND Membit_2;
IF Flank_Voorloper THEN // Background colors van de knoppen Voorloper & Tapijt
Background_Voorloper:= 2;
Background_Tapijt:= 0;
END_IF;
IF Flank_Tapijt THEN
Background_Voorloper:= 0;
Background_Tapijt:= 2;
END_IF;
Membit_1:= Voorloper_Tapijt; // Flanken wegschrijven
Membit_2:= Voorloper_Tapijt;
END_FUNCTION