Dual processing on OPTA wifi (Dynamic webpage and regulation)

Hello,
I'm trying to use OPTA wifi to create a wifi hotspot with a web page to monitor the activity of a system (1 time per second) and the PLC must permanently regulate a motor of this system in parallel. It seems to me that if this is done in parallel, dual processing or multithreading should be used, but I can't find any conclusive examples of either.
Note that the web page will have to retrieve data read from the OPTA bus in its thread.
Do you have any examples or documentation on this?

Thanks in advance.

Programming the OPTA with PLC/IDE you can add a sketch as a resource. The sketch runs parallel to the PLC program and the two can interchange data.

You could do the webpage on the one and the motor on the other I think.

Are you programming the Opta in PLC IDE? Can't this be done simply by processing the motor in a fast task (10ms) and the webpage part as a slower Task?