Digital Inputs in Simulation

Hi,

I have the newest RobotStudio version 2023.2.
I am trying to implement a move down motion until the TCP touches a sensor.
The sensor will be connected to Controller via Digital I/O.
Could you please tell me how to configure the I/O in simulation the the required RAPID Snippet? Thanks!

Best Regards,
Shuang