dom
Hello,

I have a program in SFC with integer variables. The program runs correctly. I can read with monitor the inputs and outputs. How can I read program s internal variables ?

Thank you

Domingo
Reply 0 0
thiagoralves
You can only read variables that are located (i.e. at a IEC location like %QX0.0 or %MW3 or %MD0, etc)
Reply 0 0
dom
Great, it works perfectly.
Could you tell me more about the memory usage in the arduino?
The blocs are 2Ko SRAM, 1Ko EEPROM and Flash 32Ko. I suppose the runtime is in the flash part and the program compiled runs in the PC. And SRAM ?

Thank you

Domingo
Reply 0 0
thiagoralves
Arduino is just a slave device on the OpenPLC ecosystem. It doesn't run any program, just receives commands from the host and execute them. Therefore, you need to pair the arduino with something else for it to actually run a program. Usually people pair it with the Raspberry Pi which is close in size to the Arduino, but nothing prevents from having your host being an industrial PC, or a laptop, or something else.
Reply 0 0
Reply