Controlling PFC200 via Modbus with Python

Hi,

I have a 750-8210, to which a Festo VTUX is to be connected via EtherCAT. The PFC200 is intended, among other things, to control cylinders with their corresponding limit switches cleanly using a state machine.

How can I integrate the VTUX into CODESYS? Do I need additional libraries for this?

The extension and retraction of the cylinders should be triggered from a PC via Python over Modbus. At the same time, the corresponding states of the inputs and outputs should be displayed on the computer. What is the best way to implement this?

Best regards,

Dominic

Festo has application notes on various communication protocols for the vtux terminal.

See their expert knowledge.

https://www.festo.com/no/en/p/valve-terminal-id_VTUX/?tab=SUPPORT_PORTAL&documentTypeGroup=EXPERT_KNOWLEDGE&supportPortalTab=18

In CODESYS, an EtherCAT Master Device can be used on a network interface of the PFC.
The following video demonstrates the use of a Wago EtherCAT Coupler on a PFC:

Connect EtherCAT | Connect EtherCAT Coupler with a PFC

Communication via Modbus TCP can be implemented using the Modbus Server Device with the CODESYS Device Configurator.

See the following video:
Modbus TCP in CODESYS 3.5 | PFC as Slave: Memory and Address Areas

Alternatively, there is a library from Wago (WagoAppPlcModbus) to set up a Modbus Server from the application code.