Jump to content

Recommended Posts

Posted (edited)

Hello!

I am new at programing PLCs. I am using TM241CE24R PLC with TM3AI4 analog input module. I can successfully read temperature from 4-20 mA sensor. I want to communicate with my PC (SCADA) via Modbus TCP. For testing purposes I am using CAS Modbus Scanner. I can read digital inputs, coils and holding registers successfully. Problem is that I can't read analog inputs (#300001 etc.).  I have nothing defined in GVL list. Is this causing problem? I also don't have any Modbus TCP Slave device in Ethernet_1. But how can be all the other registers read successfully?  Please take a look at screenshots below. Also check Error message from CAS Modbus Scanner. Where is problem? Please help. Thanks in advance!

gvl.JPG

I-Omapping.JPG

readAnalogInputs.JPG

readHoldingRegisters.JPG

Edited by horvatmiha
Posted

This is not problem. And I managed that so I am reading correct address. But this would not produce that kind of error. There is something wrong in program or configuration but I can't figure it out.

Posted

As I mentioned in previous topic that you also queried on, just move the analog input value into a %mw and read it from there. Not all software allows you to read directly the digital io or analog io

Posted

Yes, it is solution. But the software that I am using (MBE driver v7.48) is able to read directly analog inputs. It works with other PLCs, for example M221 (TM221CE16R). I believe there must be something wrong in configuration of PLC in SoMachine. If anyone has an idea please share it with us.

Thanks in advance!

Posted

M241 M251 M258 LMC058:

%M (internal bits) cannot be accessed by Modbus.
But %I (physical inputs) and %Q (physical outputs) can be accessed using function codes from the table below (extracted from SoMachine online help). 2a343ac218e7cd8fb7327f2afaf32afb459.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...