Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-01-17 02:42 AM
Hi,
I am trying to use Machine Expert on a M241 for writing to a modbus serial RTU (RS485) device. I am trying to use the Modbus_IOScanner and Generic Modbus Slave. For reading it works fine (I am using Cyclic as the trigger it is ok), but for writing I would like to use the Application trigger. The documentation is very vague in terms of how to use it (https://content.helpme-codesys.com/en/CODESYS%20Modbus/_mod_edt_slave_com_channel.html ) this is what it mentions:
Application: The Modbus request is triggered by the PLC application. This happens by means of the ModbusChannel function block, which is included in the respective I/O driver library. This function block provides complete control of and information about the execution of this command, for example the start time, the processing time, and the result.
So I followed the step by step, but the ModbusChannel part does not work
When I try to use the ModbusChannel it asks for a slave (ModbusSlaveComPort type), how do I get an instance of this? If I try to pass the Generic Modbus Slave device variable name SERIAL_POWER_METER it does not work (type does match)
On Wago similar concept works: https://www.wago.community/t/codesys-modbus-rtu-when-are-values-read/1253/2
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.