Write data from PLC SIM to factory i/o

I use WINCC to make an example to turn on and off the light bulb and it still works. When connecting to Factory i/o via PLCsim, it cannot be turned on or off via HMI, but HMI can still show the light on when pressing the button on Factory i/o. Please help me, thank you everyone.