Dear community, I am developing a system that is connected to a plant PLC through ModbusTCP protocol, this PLC sends information regarding the production process to my system, the data must be saved in function to a flag that enables a discrete value of 0 to 1, once the value changes the data related to that flag is saved, the duration of the flag is of 1 second, and it is here where it appears my doubt if I use programming without threads a flag can be activated just at the same time that another flag what would cause the loss of data, to solve this they believe that it should use multi thread or that another solution suggests me or simply I am trying to kill flies with a flame thrower, from already I am thankful for its gentle attention.
Kind regards.