USB port On/Off

Hi, Is there a way to turn the USB port on and off via the PLC program?

Hi,

not as I know.
But as long as you’ve no code running using the USB port (for example code based on AsUsb + FileIO or DvFrame libraries), the port has no function except of the built-in functions.
These built-in functions are:

  • detecting and using a B&R hardware dongle (1TG…)
  • using a USB mass storage device by a static defined file device inside the Automation Studio project (this is configurable in the AS project by the developer)
  • initial installation of a PLC with a USB stick containing a valid project structure prepared by Automation Studio

Best regards!

1 Like

Thank you Alexander,

I am running the Raspberry Pi device via the USB port of the PPC2200 PLC and it would be nice to be able to turn its power on and off whenever I want via USB.

Best regards!

Hi,

ah ok, now I understood, your question is not about security :slight_smile:
So unfortunately I don’t think it’s possible.

Best regards!

1 Like