This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Again about semaphore
#2
Restarting the script during execution can break the semaphore status. My suggestion is to use only one resident script that combines RS485 and localbus for monitoring certain objects and writing to the port when values change.
You can also use string.char instead of string.format so you don't have to worry about the format string having correct number of elements.
Reply


Messages In This Thread
Again about semaphore - by Andey - 23.11.2020, 19:53
RE: Again about semaphore - by admin - 24.11.2020, 07:46
RE: Again about semaphore - by Andey - 24.11.2020, 09:21

Forum Jump: