Home » Electronic Gear with Lexium 32 over Ethernet and M241

Electronic Gear with Lexium 32 over Ethernet and M241

3 views

A technical note from Schneider Electric describes how to synchronize two Lexium 32 servo drives as an electronic gear from an M241 PLC, using Modbus TCP over Ethernet and a GTU series HMI. The solution lets you set the gear ratio, change it on the fly and decouple the slave axis so it runs independently.

System architecture

The architecture consists of two axes with Lexium 32 (LXM32M) servo drives and BSH servo motors, both fitted with Ethernet communication modules. An M241 PLC with an Ethernet port runs the motion control using function blocks, and a GTU HMI is used to visualize and operate the whole setup. All communication between PLC, drives and terminal runs over Ethernet cabling.

The synchronization between axes does not travel over Ethernet. It is done physically with pulses: the PTO output of the master drive feeds the PTI input of the slave. A point-to-point Ethernet patch cable with RJ45 connectors is enough to link them, and it is advisable to use the commercial reference indicated by the manufacturer to avoid signal problems. The master PTO output is on connector CN4 and the PTI input is on CN5.

Lexium 32 drive showing the PTO output and PTI input connectors

Lexium 32 CN4 PTO connector wiring diagram and pin assignment

Lexium 32 CN5 PTI 5 V connector wiring diagram

Table of 5 V A/B encoder signals on the Lexium 32 PTI input

Master Lexium 32 configuration

On the master, the PTO mode is set as an encoder simulation of the actual position. The encoder simulation parameter adjusts the resolution of the output, so that each motor revolution generates 4,096 pulses.

Parameter Value
PTO_mode Esim pAct Enc 1
ESIM_scale 4,096 pulses per motor revolution
Master Lexium 32 parameter list with PTO_mode Esim pAct Enc 1 and ESIM_scale 4096

Calculating the gear ratio

The master PTO output delivers a maximum of 4,096 pulses per revolution, while the slave’s internal encoder reaches 131,072 pulses per revolution. The gear ratio is calculated as motor increments divided by reference increments, that is, Gear Num / Gear Denom = 131,072 / 4,096 = 32/1.

  • 1:1 ratio (one master revolution, one slave revolution): Gear Num = 32 and Gear Denom = 1.
  • 2:1 ratio (the slave runs at twice the speed): Gear Num = 64 and Gear Denom = 1.

Slave configuration and control flow

The slave works in communication control mode, with the Electronic Gear operating mode and type A/B PTI input signals. The gear ratio is defined by factor, with velocity processing. In the example, Gear Num is left at 1 in the drive because the gear ratio is written over communications from the HMI.

Slave Lexium 32 basic configuration: fieldbus control, Electronic Gear mode and A/B PTI signals

In the program, the MC_GearIn block enables and starts the synchronization between the two axes, and MC_STOP ends it. While MC_GearIn is not running, the slave can perform independent movements, for example with MC_MoveVelocity or MC_MoveRelative. To change the ratio, first select the desired ratio among the predefined ones and then enable MC_GearIn so that it is taken into account.

Four-step control flow: initialization, independent motion, active synchronization and stop

Machine Expert POU with MC_Power, MC_MoveVelocity, MC_GearIn and MC_Stop function blocks for both axes

Control and supervision from the GTU HMI

The graphic terminal allows the axes to be controlled and monitored in real time. Master and slave can move independently, in velocity or position, and the numeric displays show the position and speed of each axis. At any moment the synchronized mode can be activated with the predefined transmission ratio that is needed. Acceleration and deceleration are also adjustable, so the slave response in synchronism can be made smoother or more dynamic.

GTU HMI screen in Vijeo Designer with axis controls, gear ratio buttons and position and speed displays

Why it matters for integrators and machine builders

This approach is useful in machines where two axes must advance proportionally and sometimes work separately: changing the ratio and coupling or decoupling the axes is handled in the program, without modifying the wiring. The technical note includes the configuration of the master and slave Lexium drives, the program in Machine Expert v2.3 and the HMI project in Vijeo Designer v6.3. More parameterization details are available in the LXM32M product manual.

Find more motion control news in our Schneider Electric news section, such as the new Lexium SCARA robot for manufacturing and assembly processes.

Authors Santiago Lozano, Iván Guerrero

Related News