5 Function test
5
Function test
To quickly test your settings, use one of the demo programs included in our
MC_Modbus_Library
Click on the following link to download the library from our Panasonic Download Center:
MC_Modbus_Library with demo program for block operation
Conduct trial operation on the servo motor only with the motor shaft disconnected from the
machine to avoid any unexpected accidents.
1.
Connect the PLC to the servo driver as described in this
Quick Start Guide
.
2.
Install the MC_Modbus library by executing the setup file.
3.
Select “FP0R Example” or “FP7 Example” from “Start” menu. FPWIN Pro starts and
opens the demo project included in the library.
4.
Select “Online” > “PLC type” and set the connected PLC type.
5.
Check the communication settings of the serial port you are using and make sure the
system register settings match the settings in PANATERM.
The “Communication mode” must be “Modbus RTU master/slave”.
The baud rate setting in this demo program is 115200 baud, the parity is odd, and the
number of stop bits is 1.
6.
Select “Online” > “Online mode”. When asked, select “Compile all” and “Download
program code and PLC configuration to PLC” to download the demo program to the
connected PLC.
7.
Select “Online” > “Change PLC mode” or double-click on “PROG” in the status bar to
switch to RUN mode
8.
Double-click the POU “_999_Sample_MoveRelative” in the navigator.
The POU opens in the programing window:
14
QS2002_V1.0_EN