Error configuring IO terminal 750_496_16

Hi everyone,

I want to configure my terminal (750_496_1) via Codesys.

I am using the following function to configure my channels:

aeChannel_WagoModul_750_496_SignalType[1] := 0;
aeChannel_WagoModul_750_496_SignalType[2] := 0;
aeChannel_WagoModul_750_496_SignalType[3] := 0;
aeChannel_WagoModul_750_496_SignalType[4] := 0;
aeChannel_WagoModul_750_496_SignalType[5] := 0;
aeChannel_WagoModul_750_496_SignalType[6] := 0;
aeChannel_WagoModul_750_496_SignalType[7] := 0;
aeChannel_WagoModul_750_496_SignalType[8] := 0;

IF NOT xIsInit THEN
CASE wState OF
0:
i:= 1;
wState:= 10;

	10: 
		xDocfg := TRUE; 
		IOs.WagoModul_750_496.GetRawChannelSettings(
			usiChannel 		:= i,
			xTrigger		:= xDoCfg,
			xError			=> xError_Get,
			oError			=> Error_Get,		
			utRawChannelSettings	:= oCfg_WagoModul_750_496);
		IF NOT xDoCfg THEN 
			IF oCfg_WagoModul_750_496.eSignalType = aeChannel_WagoModul_750_496_SignalType[i] THEN 
				wState:= 30;
			ELSE 
				oCfg_WagoModul_750_496.eSignalType := aeChannel_WagoModul_750_496_SignalType[i]; 
				wState:= 20; 
			END_IF
		END_IF
		
	20: 
		xDoCfg:= TRUE;
		IOs.WagoModul_750_496.SetRawChannelSettings(
			usiChannel				:= i,
			xTrigger				:= xDoCfg,
			xError					=> xError_Set,
			oError					=> Error_Set,		
			utRawChannelSettings	:= oCfg_WagoModul_750_496);
		IF NOT xDoCfg THEN 
			wState:= 30; 
		END_IF
		
	30: 
		i:= i+1;
		IF i <= WagoTypesModule_75x_496.MAX_CHANNEL_496 THEN 
			wState:= 10;
		ELSE 
			xIsInit:= TRUE; 
			wState:= 100; 
		END_IF
		
	100:
		
			;
		
END_CASE

Unfortunately, the configuration does not work, and I get the error ‘Invalid terminal access → terminal not set’ when using the Get function.

What is the problem here?

Thank you in advance.

Hello,

Can you please share a screenshot of the KBUS configuration in CODESYS?

Please also share the controller part number and firmware.

Thank you!

The problem has been resolved. I was accessing the wrong module.