Usage 750-652 with EtherCAT coupler

I want to use 750-652 module with EtherCAT Coupler.

Is there some way to create instance of

I_Port WagoTypesCom.I_WagoSysComBase

to continue use FbMbMasterSerial function block?
or at least FbSerialInterface?

Hi,

check here CODESYS Solution for Serial Comms via EtherCAT

1 Like

You can use WagoSysFieldbusModule.FbModule_75x_652 library to create a I_Port.

VAR
_abPi				: ARRAY[0..47] OF BYTE;
_abPo				: ARRAY[0..47] OF BYTE;
_oCom1				: WagoSysFieldbusModule.FbModule_75x_652;
END_VAR

_oCom1.SetNewPaInputs(ADR(_abPi),TO_USINT(SIZEOF(_abPI)));
_oCom1.GetNewPaOutputs(ADR(_abPo),TO_USINT(SIZEOF(_abPo)));

Where _abPI and _abPO are the process image of your 75x-652, from your EtherCAT communication, and _oCom1 is the I_Port you can simply use at the input of your function block.

2 Likes

Hello, @quenorha

Does this method work with PLCs from other manufacturers? Is it possible to use WAGO libraries with other PLCs (Codesys 3.5) to work with WAGO EtherCAT couplers?

Hello @Andrew,

As far as I know WAGO libraries are licensed for WAGO devices only.
So I’m not sure.
Maybe you can try importing the WagoSysFieldbusModule library in your CODESYS environment and check if you have license error while running it.

Which PLC do you use ?

Xinje XSF5-A16

I need to connect to several WAGO EtherCAT couplers, which also have modules 750-652 installed.

Upd
There is no errors