Can the esp32 program created in visual code run the factory io simulation?

Is it possible to run an esp32 program created through visual studio code and then simulated to factory io?
I tried to connect it via modbus tcp/ip server. then connect the appropriate coil in the program.
The modbus connection has been read in factory io, but the simulation has not run.
Then what is the solution?