Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

Wake Your PC Remotely with PLCnext via Wake‑On‑LAN

What Is Wake-on-LAN?

Wake-on-LAN (sometimes abbreviated WoL) is an industry standard protocol for waking computers up from a very low power mode remotely. The definition of “low power mode” has changed a bit over time, but we can take it to mean while the computer is “off” and has access to a power source.

Install wakeonlan on the PLCnext

We are going to use wakeonlan python package
to execute the UDP datagram and wake destination MAC address

Before we can do this we need to install ipk., Python and the pip package manager on the controller.
Ensure that you have a Ethernet connection.

Log in as Root and do following commands.

Commands to install and use the ipkg.

wget -O - http://ipkg.nslu2-linux.org/optware-ng/bootstrap/buildroot-armeabihf-bootstrap.sh | sh
export PATH=$PATH:/opt/bin:/opt/sbin

Install Python

/opt/bin/ipkg install python3

Install package manager pip

/opt/bin/ipkg install py3-pip

Upgrade pip

/opt/bin/pip3 install --upgrade pip

Install wakeonlan package

/opt/local/bin/pip install wakeonlan

Include the path

export PATH=$PATH:/opt/bin:/opt/local/bin

Now you can execute the command to wake up a PC on your network

execute command to wake on a PC

wakeonlan your_mac

This command you can execute in PLCnext engineer using the PLCnextBase Library
FB: PBCL_SysLinuxShell_1

Need extra informaton?

Please contact   axsupport@phoenixcontact.be

Further readings

Source:https://www.howtogeek.com/70374/how-to-geek-explains-what-is-wake-on-lan-and-how-do-i-enable-it/

Makersblog:https://www.plcnext-community.net/en/hn-makers-blog/295-making-automation-001-where-s-the-package-manager.html


Industrial Technology

  1. Why Thermoset Composites Are the Ideal Choice for Modern Manufacturing
  2. Elevate Your Manufacturing Operations with ISO 9004: A Proven Quality Management Guide
  3. Control Your TV with Alexa: Arduino & ESP8266 Setup
  4. Install a Dust Collector on Your CNC Router: A Comprehensive Safety Guide
  5. Laser Cutting: The Ultimate Guide to Transforming Your Product Ideas into Reality
  6. Leverage Edge AI to Optimize Operations for Warehouse and Manufacturing Success
  7. Maximize Asset Management: 5 Proven Strategies to Leverage Asset Tags with Tracking Software
  8. Optimize Your Parts with Mold Flow Analysis: A Comprehensive Guide
  9. Integrating Alibaba Cloud Connector with PLCnext: A Step-by-Step Guide
  10. Configure Custom Security Certificates for OPC UA on PLCnext Control