PLC-Simulators do not have this events, because the polling frequency
of switches depends on the microcontroller, where the application will
run last. But at the moment lets not pay attention to that point.
The last steps would be to compile that application to C-code, then
adapt the outcoming to the special requirements of the microcontroller
and last compile it with the microntrollers C-Compiler to a runable
To concentrate on this process, the programm should be as easy as
possible. Thus I chose, that the microcontroller should simply work as
an AND-Gate with two switches at two inputs and an LED at one outputs.
Thats all. I have tested AND Gate (Logical-Op) successful in Scicos
with the radio-buttons and the Affich-m block, which are only for
testing-purpose and thus can be removed. Thus the only remaining block
is the AND-Gate.
Now: How can I translate this (AND) Programm from Scicos into "C"
I would expect a very simple C-outcoming, something like
VarOut = VarIn1 && VarIn2.
Malheureu *** t je ne peux pas attach any programm in this newsgroup.