I am trying to create a ModbusTCP_FunctionCode06 which i will use as a single write register for programming a test code for Power Meter(PQM_1000)
I have tried to reserach how to add it it from the libraray manager and have largely been unsuccessful.
Does anyone know where I should Look? And by the way, I am i wam using Codesys V3.5 Vs 21 Patch 4
I look forward to something positive.
Best,
Kmax365.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
You can add a channel to the standard Modbus TCP library with FC06.
From the device tree, add Ethernet device, ModbusTCP master then finally a ModbusTCP slave (your power meter). You can add read/write channels (for any FC) in here.
As you add these devices, the necessary libraries will be inserted for you.
Alternatively, I have a ModbusTCP client/server library if your RT doesn't have Modbus (I think they all do these days?)
Last edit: ph0010421 2026-05-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Guys,
I am trying to create a ModbusTCP_FunctionCode06 which i will use as a single write register for programming a test code for Power Meter(PQM_1000)
I have tried to reserach how to add it it from the libraray manager and have largely been unsuccessful.
Does anyone know where I should Look? And by the way, I am i wam using Codesys V3.5 Vs 21 Patch 4
I look forward to something positive.
Best,
Kmax365.
Hi
You can add a channel to the standard Modbus TCP library with FC06.
From the device tree, add Ethernet device, ModbusTCP master then finally a ModbusTCP slave (your power meter). You can add read/write channels (for any FC) in here.
As you add these devices, the necessary libraries will be inserted for you.
Alternatively, I have a ModbusTCP client/server library if your RT doesn't have Modbus (I think they all do these days?)
Last edit: ph0010421 2026-05-18