The connector attaches to Plant Simulation via the COM interface. The following functions are available in the "IRemoteControl" that Plant Simulation creates:
Plant Simulation documentation of the COM interface:
Description on how to listen to events: