It is not clear what you are trying to do. Is it for another device you want to connect which is not a Modbus device? Then the advise would be: do not do that. It could give conflicts with the standard Modbus communication.
But if it is a Modbus device, then why not use the standard Modbus device configuration?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to send and receive a custom message (array of bytes) via serial line 2 (Rs485 of a M241) which also uses the generic modbus slave.
I've found this;
https://help.codesys.com/webapp/_mod_lib_modbusrequest;product=core_modbus_configuration_editor;version=3.5.16.0
Is there an example how to use it?
Kind regards,
Jeroen
It is not clear what you are trying to do. Is it for another device you want to connect which is not a Modbus device? Then the advise would be: do not do that. It could give conflicts with the standard Modbus communication.
But if it is a Modbus device, then why not use the standard Modbus device configuration?