Servosila-SC-25-Programming-Guide

In general, user software for a control computer/PLC can be developed in any language that
supports either Linux SocketCAN API or read/write operations for virtual COM ports on
Windows 10/8 or Linux. This includes C/C++, Qt, Java, Python, MATLAB, LabView, and many
other languages and packages.
The brushless motor controllers come with a graphical software tool called “Servoscope”. The
tool provides means of configuring the controllers, displaying real-time telemetry coming via
CANbus or USB, and sending commands down to the controllers.
The tool allows visualizing the telemetry data by plotting graphical charts. This is helpful when
tracking down transient issues with electric drives.
The application runs on Windows 10/8 or Linux including the popular distributions of Debian
and Linux. No drivers need to be installed on either of the platforms to run the tool. The tool
connects to Servosila controllers via CANbus or USB interfaces.
The Servoscope application comes with a built-in software simulator of electric drives. In a real
time way, the simulator numerically solves differential equations that define the dynamics of
brushless motors, and provides a simulated CANbus/CANopen interface via Linux SocketCAN
API for user control software being tested to connect to. The interface of the software simulator
exactly matches the interface of a real Servosila controller coupled with a real electric drive.
The simulator allows debugging of user software via CANbus/CANopen protocol prior to
procuring a real hardware. Even if the hardware is available, it is still wise to first test your code
against a simulator to avoid risking to burn a motor, break a gearbox, or cause an injury.
The simulator allows modeling the behavior of brushless motors or control systems under
various conditions including dangerous or critical ones. The simulator is one of the software
tools packaged into Servoscope application.
5 www.servosila.com