Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84612members
353911posts

PLC M580 - READ_VARIABLE ( IO SCANNING )

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

Solved
Tunneltech
Ensign
Ensign
0 Likes
16
1606

PLC M580 - READ_VARIABLE ( IO SCANNING )

Hey, I have M580 Plc with me right now and it is connected to PRA as well. So currently what I need is that I am trying to connect Third Party device ( Moxa - E1242) to the M580 PLC and get the data directly to the PLC through the Read_Var function along with the ADDM function as well as ADDMX function. I already tried the Reference Video shown on Youtube which really didn't give me any input.

 

And I would also like to add another point that I connected the PRA and tried to get data from PRA to the M580 ( which is my Master PLC) through DTM Browser (The process of IO Scanning) which was also not working,  

 


Accepted Solutions
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
11
1506

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Can you check if the following setup will be functional:

 

1: Change the setting of the service port to "Access"

 

2: Connect the PRA to the Service port (instead of the device ports)

 

See if communication starts, and let me know.

R.Roozee
Sr Solution Architect (SAE Master)

See Answer In Context

Tags (1)
16 Replies 16
Mnabil
Ensign Ensign
Ensign
0 Likes
1
1597

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Please try to create a new array for guests with length 4 word,also please share the print screens for reading var function and DTM requests

 

also knowing that there is the limitation for the data type for reading through DTM for example the data could not be coil input

Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
0
1587

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

These are the various screenshots describing what we did till now and how we have tried to take data from the Requested inputs through M580. We also connected both PRA as well as M580 and modified the values with the same address given in the Read request settings with the same length and those values were not reflected in the M580 - PRA Requested Inputs. All the data types were of Words and still, we didn't get any value of any types in M580.

 

01 - Forum.png02 - Forum.png03 - Forum.png04 - Forum.png05 - Forum.png06 - Forum.png

Tags (1)
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
13
1541

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello,

 

It's hard to tell what could be wrong, only by these screenshots

Please let us know:

1) how you connected (which ports) you used to connect M580 to PRA/Moxa

2) when you have your laptop on the same network, can you ping both PRA and M580?

3) Please share the M580 + PRA application files (archive file .STA or export .ZEF),

R.Roozee
Sr Solution Architect (SAE Master)
Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
12
1517

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello sir, 

First of all thanks a lot for the response. We will share the files to your personal email if necessary sir. Please drop in your email for the same.

 

We have been trying to communicate within the same configuration for the past week. What we have done is we have connected an M580 and an M340 through a switch. The Dual port of the M580 is used and the ethernet port of the PRA series (PRA0100) which is connected to M340 has been connected through a switch to the PC. Then we connected the PLCs and configured it through DTM Browser and as well as prepared an IP chart as well. Now we are actually unable to get the values in the M340 through M580 as our Master PLC is M580 and programming is done in the same. But as per our architecture, we are to get Remote IO modules and DI modules and DO modules everything is obtained through M340 to the M580. 

 

Yes, we have connected those 2 PLCs and both are pinged simultaneously as well as being connected simultaneously too. 

And the files of Zef files are attached here along.

 

 

Project Engineer,

Tunnel Tech Solutions

 

Attachments
Tags (1)
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
11
1507

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Can you check if the following setup will be functional:

 

1: Change the setting of the service port to "Access"

 

2: Connect the PRA to the Service port (instead of the device ports)

 

See if communication starts, and let me know.

R.Roozee
Sr Solution Architect (SAE Master)
Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
10
1483

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

A very big thanks for the above solution sir, we were actually trying all these in Dual Port instead of Service Port. Now, we did change to Service Port and have received values from PRA inputs.

 

Just two more small queries sir :

 

1. We are now actually getting values in M580 from PRA which is connected to the Service port of M580, but we are now forcing values in PRA to get in M580 but what we actually need to do is to control/modify values in M580. How do we achieve this?

 

2. And we also have a Thrid party Device (Modbus Device - Moxa) for which we don't know how to add or connect it to the M580 device directly through Modbus TCP/IP. We also referred to many Youtube videos but it showed Read and Write Var function which we tried but got no idea about the same. Also, we don't have any other communication Device like NOR0200 in M580 but we are trying to connect directly through an Ethernet port via Modbus TCP/IP.

 

Thanks and Regards,

Project Engineer

Tunnel Tech Solutions

Tags (1)
ReneR
Cadet
0 Likes
9
1476

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello,

 

Ad 1.: Normally PRA will set data , which will be READ by M580. M580 program will use this READ data to control variables which will be sent to PRA. PRA will use this data to write outputs or use in it's own application.

 

Ad 2.: Also MOXA device (like all DIO devices) should not be connected to the BMEP582040 device ports directly. Reason for this:

All M580 CPU's type BMEx58x040 are capable of controlling RIO (X80 or Quantum ethernet IO equipped with RIO interface). RIO communication make use of several ethernet functionalities which give the IO communication a realtime characteristic. One of these functionality is using VLAN tagging (VLAN1) on the device ports. Most DIO devices (like PRA and Moxa gateway), will not handle the VLAN tagging and drop the ethernet packets.

The service port is on the same network, but will not use the VLAN tagging.

Instead of using the service port, solutions could be used:

1: a CPU type that doesn't support eRIO like BMEP582020, if you will not use X80 ethernet remote IO;

2: Add a BMENOS0300 ethernet switch in your system, where it's ports can be set to DIO ports;

3: Add a DRS switch in the eRIO network ring, that supports DIO devices to connect into the eRIO ring.

 

 

Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
8
1179

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Sir, 

I am currently working with an M580 which has a third party device (Linear Heat Sensor) from which I need to fetch the real values of Temperature. We also have another third party device (CO Sensor) from which we are getting the values through Read_Var function with %MW type. But in Linear Heat Sensor, we need to get the %IW register values which is working only with the help of Modscan or Modpoll software in the background. When we close the software real time values are not fetched. Is there any solution for the same?

 

Thanks and Regards,
Project Engineer

Tunnel Tech Solutions

Tags (1)
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
7
1157

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Do you mean your READ_VAR is reading data only to the M580 CPU when you have  Modscan software running in parallel?

 

How do you start, first CPU READ_VAR and the Modscan or first Modscan and than CPU?

In all cases seems like an issue on the device where it closes all it's TCP sockets as soon as you close 1 socket (the socket Modscan is using).

 

Can you check using 2 PC's, both with Modscan, start both check both communicate and then stop 1.

 

 

Can you share the exact brand/type of the heat sensor, or share the (communication) manual ?

 

R.Roozee
Sr Solution Architect (SAE Master)
Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
6
1118

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Dear Sir, we tried both first CPU READ_VAR and the Modscan or first Modscan and than CPU. When the Mod Scan is turned On, we are getting the values also we are getting instantly but when CPU is on first and then the Mod scan is On then we are facing a delay in the updation of the values from the Third party device. And also sir, the data updating for the third party device registers (of Linear Heat Sensor) takes 40 seconds to update each value. Register Details of LHS : (Holding Registers)  has been attached herewith sir. 

 

 

We are using the Linear Heat Sensor series - N4387B 

Make : AP SENSING

 

Thanks and regards,

Project Engineer

Tunnel Tech Solution

 

 

 

 

 

 

Attachments
Tags (1)
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
5
1105

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello,

 

You need to retrieve more information regarding the communication. I can see that you enable 3 READ_VAR functions at the same time on %S6. This mean when %S6 turns high, 3 TCP connections are opened and 3 Modbus messages are executed at the same time (Picture 1.PNG)

I would be interested in the value showing in DIAG_6, DIAG_7 and DIAG_8 rank2 word (operation report and communication report). If errors exist here you can try to enable only 1 function (disable the others) and see if this improves your communication (improve is no errors).

 

During 1 second these functions are enabled continuously (function ready-start again). I do not know if this device can handle the amount of messages fired at . This might be checked in the manual (response rate and available amount of concurrent TCP connection/sockets). You can check this with the supplier.

 

If the supplier doesn't have the answer, you can use WIRESHARK (free tool) to trace all messages on the network, so you might be able to see whats happening on the network.

 

 

R.Roozee
Sr Solution Architect (SAE Master)
Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
4
1093

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello,

Dear Sir, I have tried using always On bit as well as a bit just to start also and the distribution team told us that it could handle and has  available amount of concurrent TCP connection/sockets. And sir DIAG is just an array we have to know about the status which I have given the size from 1 to 4  of INT type and it shows communication status in Animation table as well sir. And sir we tried using MODBUS Scan as well as MODBUS poll software which gives us the right data in those softwares and now the issue is that all the new values are reflected in the PLC but each and every array is overwriting over the same value. The picture files has been hereby attached sir. And sir, it would be so grateful and a big help if you could connect us through Online or any other media sir.

 

 

Thanks and Regards,

Project Engineer

Tunnel Tech Solutions

Attachments
Tags (1)
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
3
1003

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello,

 

Please contact your local Schneider Support/Service center for support on this issue. That will be the fastest way to get a result.

 

 

R.Roozee
Sr Solution Architect (SAE Master)
Tags (1)
Tunneltech
Ensign
Ensign
0 Likes
2
322

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

Hello sir, 

 

Thank you so much for the support till date and have solved the issue. We owe you a very big gratitude for your service and thanks a lot for the support sir. And sir I would also like to ask one last question, Like is IO Mapping through structured text same as that of assigning address to the VARIABLE tags in elemental variables? 

I.e, for example let me consider a tag named "abc" which is giving real value and if I give it into word (%MW500) in the structured text format as %MW500 := abc; then the word %MW500 will be getting int values where as if I give the same address for the tag in Elementary variables and defined the tag "abc" as real and give the address to the same in elementary variables (%MW500)  the address shows real values and not INT values, I really didn't get that concept why is that like it works if individually given address but not when we give structured text. 

 

Thanks and Regards,

 

Project Engineer

Tunnel Tech Solutions

Ravindra
Cadet
0 Likes
0
317

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

For real vaule try %MF500 . It includes %Mw500 and %M501.

Tags (1)
RoozeeR
Lt. Commander Lt. Commander
Lt. Commander
0 Likes
0
258

Re: PLC M580 - READ_VARIABLE ( IO SCANNING )

In "old" Modicon terminology these addresses like %MW500 and 40500 are referred to as "Registers". Registers are basically 16-bit wide words containing data. This data can be interpreted as 16-bits, 2 -bytes, a word, an INT, an UINT or a part of a 32 -bit variable like a REAL (float) or DINT and even a part of a STRING, ARRAY or DATA structure.

 

When a variable is longer than 16 bit (like a REAL), you need to interpret consecutive registers together, to get the data complete. The data type + address must be defined in the manual of the Modbus-Server. 

 

So basically you need to know what kind of data is available in a register(s) to determine if you need to get 1, 2 or even more consecutive registers. The interpretation of the data has to e done by the Modbus-Client. Most Clients, like a SCADA, can read a Float (REAL), by just defining the data type and start address (%MW500 or in some cases %MF500) and it will read both addresses %MW500+%MW501, and interprets it as a 32-bit REAL variable.

R.Roozee
Sr Solution Architect (SAE Master)
Tags (1)