FC 23 Modbus function

Hi, I am able to read and write Modbus Register using FC3 and FC16. But I am trying to use FC23 to do this with only one function but I am getting problems. When I try to activate the function, an error appears: “C060, 0003 ilegal data”. what is the correct way to work with this function? Thanks in advance


Hi, Here is an example of FC23 working correctly - In a PLCnext Engineer project, here is the Modbus Server instance: [attachment]2021-10-08_13-48-04.jpg[/attachment] … and here is (a) the Modbus Client instance, which connects to the above Server (b) FC3 and FC23 instances, which both work without errors. [attachment]2021-10-08_13-48-41.jpg[/attachment] I am not sure what is causing the error in your application, but from the information we have it does not seem to be a problem with the FC23 function block. .


Hi there, do you have an example of using FC23 for RTU ?