Back to top
Reading of AKD axes position by Python and Raspberry Pi 3 Modell B
Nothing to do into any AKD drive, the minimum request is to set up different IP addresses.
Install Python into Raspberry and a Python editor as Thonny.
Get and install Modbus TCP functions:
sudo pip3 install pyModbusTCP for Raspbian
Refer to https://pypi.org/project/pyModbusTCP/ for more information.
In this example the AKD drive addresses are 192.168.0.1, 192.168.0.2 and 192.168.0.3.
ADDR_PL_FB is the Modbus address of the parameter PL.FB, axis position.
This is the very simple code:
Run the project. The output will be: