Skip to content

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

Comments

  • Hi,

    Here is an example of FC23 working correctly -

    In a PLCnext Engineer project, here is the Modbus Server instance:



    ... and here is
    (a) the Modbus Client instance, which connects to the above Server
    (b) FC3 and FC23 instances, which both work without errors.



    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 ?
Sign In or Register to comment.