Modbus Library

Good day,

I am using the LibDRVmbus Library.

I am trying to read the temperature from a flowmeter.

image

I have declared a real data type as LocalPV5 and EventPV5 to trigger it.

The issue I am having is that when I add it to the modbus code, it generates an error on my modbus open block with status 20245.

Could someone point me in the right direction as I am relatively new to modbus.

Kind regards

Hi,

I would recommend to check first this thread, as the task sounds similar.
Not sure if the topic there was solved, but there’s some information in it:

Your error means, that a variable declared in the datamodule does not exist in the PLC. Thats something comparable to 20242 that is discussed in the thread link above.

Best regards!

Hi,

the error just means you did not use the correct name for the variables in ‘datamod’

Constants

see MBMOpen()

Probably you missed the task’s name before the colon ?