Hello,
I am working on a project converted from e!Codckpit to Codesys 3.5 SP19 for PFC200 With Firmware28,
in the project we used WagoAppPlcModbus.FBsimpleTCPserver for setting the modbus server and not the codesys modbus configurator as described below :
Modbus FB *****
ModbusServer( xOpen := NOT TOF_Restart.Q AND NOT xOpen,
wPort := wPort,
utKeepAlive := udtKeepAlive,
xIsOpen=> xIsOpen,
xError=> xError,
oStatus=> oStatus,
udiConnectedClients=> udiConnected,
bUnitId := 1,
axDiscreteInputs:= axDiscrete,
axCoils:= axCoils,
awInputRegisters:= awInput,
awHoldingRegisters:= Modbus_Table);
With
TOF_Restart : TOF;
Modbusserver : WagoAppPlcModbus.FbMbSimpleServerTcp;
Modbus_Table AT %MW0 : ARRAY[0..12000] OF WORD;
udtKeepAlive: typKeepAlive;
xIsOpen: BOOL;
xError: BOOL;
oStatus: WagoSysErrorBase.FbResult;
udiConnected: UDINT;
axDiscrete: ARRAY[0..1200] OF BOOL;
axCoils: ARRAY[0..1200] OF BOOL;
awInput: ARRAY[0..1200] OF WORD;
xOpen: BOOL;
wPort: WORD := 502;
the problem is when i tried to add holding registers on address %MW12300 to the Modbus Table i have an error C0111 : address %MW12300 out of range : calculated offset 25002, size : 24756
I think that i have an issue with handling memory on memory area 1 wich is fully used (its size match the maximum size i got on the previous error =24756Byte
Does anyone have any idea on how to increase allocated memory for memory area 1 or any other suggestion to solve this issue ? Thank you