minion71
I am cloning a program from cx-programmer it uses an input on a move block to reset the program. "MOV(021) #D1 W0" it sends D1 to work zone 0 as far as I understand. I am trying to make something similar in OpenPLC but I have a hard time getting doc on what memory does.
 
Thansks
Reply 0 0
thiagoralves
OpenPLC does not have any instruction to reset the program. If you’re running the OpenPLC runtime on a Linux machine you can try passing a C instruction in pragmas like
{{ system(“reboot now”) }}
which will reboot the machine. If you’re running on a microcontroller, then you will have to find the documentation for your specific microcontroller to know what instruction resets it and then send it in a C pragma similar to above
Reply 0 0
Reply