The recommended way would be to use I/O signals. E.g. model the smart component with input signals to open/close the tool, connect them to controller signals using Station Logic, and activate them with SetDO/PulseDO.
You need to add signals in IO configuration file.
Do this in the controller tab->configuration Editor button->IO system (see screen grab)
Right click signal in the listing and give the signal a name, select the type of signal, (I also change the access level to All for simulation but this is your choice) the rest of the fields can be left as they are. Add all the signals you need before restarting the controller. This create virtual signals as they are not assigned to a actual IO board/unit so they would not work in the real world to operate a valve, etc but is fine for simulations.
Here is a station that shows one way to do do it: