XG5000 Example Code

This section shows some sample code to control the SureServo2 drive.

  • The Drive_Status_Program scan program contains code to read the drive status over Modbus RTU and store it in the UDT variable.

  • The Drive_Control_Program scan program contains code to control variables in the UDT variable to control the SureServo2 over Modbus RTU.

  • This example code is available in XEM_SS2_ModRTU_Example.zip and can be downloaded from Example Applications.

 

 

 

 

 

 

 

 

LP213-5