RobotStudio event

Sending event or error messages from IRC5 to HMI

Hello to all. What would be the best way to send any info that is displayed on FlexPendant to HMI that will control production cell.
Thanks in advance.