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.
/opt/bin/ipkg install python3
Install package manager pip
/opt/bin/ipkg install py3-pip
/opt/bin/pip3 install --upgrade pip
Install wakeonlan package
/opt/local/bin/pip install wakeonlan
Include the path
Now you can execute the command to wake up a PC on your network
execute command to wake on a PC
This command you can execute in PLCnext engineer using the PLCnextBase Library
Need extra informaton?
Please contact email@example.com