# Configuring 750-450 Module in Codesys 3.5

**URL:** <https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956>\
**Category:** CODESYS\
**Tags:** pfc100\
**Created:** [May 15, 2024, 7:48pm UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956 "2024-05-15T19:48:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/jacob/32/642_2.png) [@Jacob](https://www.wago.community/u/Jacob)\
**Post date:** [May 15, 2024, 7:48pm UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/1 "2024-05-15T19:48:44Z")

</div>

Hello,

Is there documentation on how to configure the 750-450 module in Codesys 3.5?

WAGO I/O Check can configure this module easily however, the goal is to have a Codesys 3.5 program using the 750-450 configuration library so the program can be implemented on multiple repeat systems.

Any support is greatly appreciated.

Cheers,

---

<div class="post-metadata">

**Author:** ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)\
**Post date:** [May 16, 2024, 7:59am UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/2 "2024-05-16T07:59:09Z")

</div>

Good afternoon, I don’t understand from the text what difficulties you encountered? Can’t add a module to the program tree?

---

<div class="post-metadata">

**Author:** ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)\
**Post date:** [May 16, 2024, 2:05pm UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/3 "2024-05-16T14:05:59Z")

</div>

There is a library WagoSysModule\_750\_450  
It has two blocks:

- FbModule\_750\_450
- FbModule\_750\_450\_dynConfig  
I think you will find everything you need there.

---

<div class="post-metadata">

**Author:** ![Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/jacob/32/642_2.png) [@Jacob](https://www.wago.community/u/Jacob)\
**Post date:** [May 20, 2024, 3:10pm UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/4 "2024-05-20T15:10:41Z")

</div>

Hi Tomas,

Thank you for responding.

We were unable to find any supporting documents for the 750-450 Function Block.

We attempted to build the 750-450 configuration method st code. However, we were unable to get it to actually work.

Do you have a working sample project in Codesys 3.5 or an application note you can provide?

Best Regards,

---

<div class="post-metadata">

**Author:** ![TomasD](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/tomasd/32/2042_2.png) [@TomasD](https://www.wago.community/u/TomasD)\
**Post date:** [May 20, 2024, 3:24pm UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/5 "2024-05-20T15:24:06Z")

</div>

I don’t have a project and I don’t have a module. I think if I had a module I could make an example. In general, there is a short description in the library manager. Have you tried getting information from there?

---

<div class="post-metadata">

**Author:** ![Jacob](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/jacob/32/642_2.png) [@Jacob](https://www.wago.community/u/Jacob)\
**Post date:** [May 20, 2024, 3:38pm UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/6 "2024-05-20T15:38:48Z")

</div>

Yes, we followed along with the provided information.

There are 2 options:  
SetRawChannelConfiguration  
SetRawChannelSettings

Which would you choose?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/467c265ba666daf5eb579e6acb5a580fbb0a3b70.png)

When we attempted to use the following CASE example we received errors one of which was that eServiceState.Done is not defined in the system.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/1X/8f90dfc113f8feb3b42169767f69dcac3c3b0f30.png)

---

<div class="post-metadata">

**Author:** ![PatrickR](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/patrickr/32/262_2.png) [@PatrickR](https://www.wago.community/u/PatrickR)\
**Post date:** [May 21, 2024, 6:20am UTC](https://www.wago.community/t/configuring-750-450-module-in-codesys-3-5/956/7 "2024-05-21T06:20:01Z")

</div>

Hi,  
Here is an example for a 451:

```auto
VAR
	
	usiChannel_451 : USINT (1..WagoSysModule_750_451.WagoTypesModule_750_451.MAX_CHANNEL_451) := 1;
	xGetRawChannelConfiguration_451 : BOOL := TRUE;
	utRawChannelConfiguration_451 : WagoSysModule_750_451.WagoTypesModule_750_451.typRawChannelConfiguration;	// here also an array can be defined to configure the channels differently if necessary
	ogetError_451 : WagoSysModule_750_451.WagoSysErrorBase.FbResult;
	xSetRawChannelConfiguration_451 : BOOL;
	osetError_451 : WagoSysModule_750_451.WagoSysErrorBase.FbResult;
	osetstatus_451 : ARRAY[1..WagoTypesModule_750_451.MAX_CHANNEL_451] OF WagoSysErrorBase.FbResult;
	ogetstatus_451 : ARRAY[1..WagoTypesModule_750_451.MAX_CHANNEL_451] OF WagoSysErrorBase.FbResult;
	eServiceState_451_Get : WagoSysModule_750_451.WagoTypesModuleBase.eServiceState;
	eServiceState_451_Set : WagoSysModule_750_451.WagoTypesModuleBase.eServiceState;
	mySensorType : WagoTypesModule_750_451.eSensorType := WagoTypesModule_750_451.eSensorType.Pt1000_EN60751_01;
	xError : BOOL;
	xInit_451 : BOOL;
END_VAR

IF NOT xInit_451 AND NOT xError THEN
		
	eServiceState_451_Get := _750_451_16.GetRawChannelConfiguration(		
												usiChannel:= usiChannel_451, 
												xTrigger:= xGetRawChannelConfiguration_451, 
												utRawChannelConfiguration:= utRawChannelConfiguration_451, 
												xError=> xError, 
												oError=> ogetError_451);
	
	CASE eServiceState_451_Get OF
			WagoTypesModuleBase.eServiceState.DONE : // OK
			
						
					xSetRawChannelConfiguration_451 := TRUE; // trigger write                           
	                                                            
					utRawChannelConfiguration_451.Settings.eSensorType:= mySensorType; //Change sensor type                  
				(*	....
						 process here your utRawChannelConfiguration 
				    	 possibly also with an array if the 		
					    channels are TO be set differently. *)
			
			WagoTypesModuleBase.eServiceState.ABORT : // Error
				// process here your error handling -> see oError for more information
				ogetstatus_451[usiChannel_451] := ogetError_451;
				xError := TRUE;
																															
	END_CASE
	
	eServiceState_451_Set := _750_451_16.SetRawChannelConfiguration(		
												usiChannel:= usiChannel_451, 
												xTrigger:= xSetRawChannelConfiguration_451, 
												utRawChannelConfiguration:= utRawChannelConfiguration_451, 
												xError=> xError, 
												oError=> osetError_451);
	
	CASE eServiceState_451_Set OF
		
			WagoTypesModuleBase.eServiceState.DONE : // OK -> new configuration is written
				xGetRawChannelConfiguration_451 := TRUE;
				osetstatus_451[usiChannel_451] := osetError_451;
				usiChannel_451 := usiChannel_451 + 1;
			WagoTypesModuleBase.eServiceState.ABORT : // Error -> not able to write -> see oError
				// process here your error handling for write -> see oError for more information
				osetstatus_451[usiChannel_451] := osetError_451;
				xError := TRUE;
				
	END_CASE
		// all modules changed?
	IF usiChannel_451 > WagoSysModule_750_451.WagoTypesModule_750_451.MAX_CHANNEL_451 THEN
		xInit_451 := TRUE;
	END_IF	
END_IF

```
