Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Read ATV930 parameters via Modbus TCP, BMX P34 20x0 CPU

Industry Automation and Control Forum

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

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Industry Automation and Control Forum
  • Read ATV930 parameters via Modbus TCP, BMX P34 20x0 CPU
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
32
LeTomas
Lt. Commander LeTomas Lt. Commander
11
RoozeeR
Lt. Commander RoozeeR Lt. Commander
6
JerryBartlemay
Lieutenant JG JerryBartlemay Lieutenant JG
6
View All
Related Products
product field
Schneider Electric
Modicon M340
product field
Schneider Electric
Altivar Process (Low Voltage)

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to Industry Automation and Control Forum
Solved
taa502
Crewman taa502
Crewman

Posted: ‎2022-02-08 02:11 AM

1 Like
7
4620
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-08 02:11 AM

Read ATV930 parameters via Modbus TCP, BMX P34 20x0 CPU

Unable to read parameters from Altivar drive with CPU 340-20 (Embedded Ethernet, no NOE module). Read function is implemented according to Simple example of READ_VAR Modbus TCP/IP communication for Premium: https://www.se.com/ww/en/faqs/FA271865/


Attempting to read a single non-zero parameter (CIA402 State register, 0x0C81) the function returns data[1] = 0. The interface is configured as follows: 

ipaddress := ADDM ('0.0.3{192.168.0.20}tcp.mbs')
READ_VAR(ipaddress, '%MW', 3200, 1, manage, data)
manage[3] := 10

manage[4] := 2

At timeout READ_VAR is returning Incorrect response error 512 (200 Hex): https://www.se.com/us/en/faqs/FA378619/ 

PLC and drive are in the same subnet. The drive's doing fine, 3rd party Modbus TCP clients read inputs without issues.

Attachments
  • Tags:
  • altivar
  • english
  • messaging
  • modbus tcp
  • modicon
  • READ_VAR
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-10 01:53 PM

In response to taa502
1 Like
2
4555
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-10 01:53 PM

What UnitID is the VSD expecting?

 

You've ticked this box in the Modbus Slave simulator, which means that it may not represent the VSD unless you have confirmed that the VSD will accept any Unit ID sent to it (which often they do not).

2022-02-11 08_47_37-Reply to Message - Communities.png

 

You're also going to need to detail what settings apply against what ModbusTCP fields for your iba configuration.

 

You should have all the fields for the Modbus TCP comms identical between what you are trying to do in your PLC vs what you have configured in your Modbus Client simulator.
And you should have all the fields configured the same in your Modbus Server compared to what you know about the VSD (i.e. if your Modbus Client is working when talking to the VSD if configured with Unit ID 1, then your test Modbus Server should be configured to only respond as Unit ID 1, unless you have also proven that the Modbus Client can connect to the VSD when requesting data from Unit 2.. and Unit 3.. and Unit 4->255)

 

Match up all the fields as per:
https://en.wikipedia.org/wiki/Modbus 

Bring in Wireshark if you don't know what the field value is.  That will tell you what is sent / received over the wire (you might need a managed switch with port mirroring, or some other 'bend in wire' monitoring).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 7
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-08 01:27 PM

0 Likes
6
4602
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-08 01:27 PM

You've done the 3rd part Modbus Client connecting to the Drive.

Why not try a Modbus Server acting as the Drive, to see that your PLC code is indeed 'correct'.

If you have each component working individually, then getting them working together should be much easier 🙂

 

You should be able to test the same configuration as you have for your working Modbus Client against the test Modbus Server also.  It can often be worth getting a snapshot of values from the Modbus Client and then copying them into the Modbus Server also... that way you have meaningful values when you get the PLC talking to the test Modbus Server also (which might speed up detection of incorrect register type handling etc).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

taa502
Crewman taa502
Crewman

Posted: ‎2022-02-09 04:18 AM

In response to BevanWeiss
0 Likes
5
4589
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-09 04:18 AM

The PLC's successfully connected to Modbus Slave simulator from modbustools.com 

What might be the problem? 
Is there a project example of Modicon PLC + Altivar VFD?

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-09 01:55 PM

In response to taa502
0 Likes
4
4569
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-09 01:55 PM

If you have successful Modbus Client communication (from Modscan etc) to the VSD, and you have successful Modbus Client communication from the the PLC to a simulation VSD (from Modsim etc) then the PLC should indeed work to talk to the VSD.

 

Show your testing results here:

  • screen shots of the working Modscan to the VSD showing IP configs, registers and such
  • screen shots of the working Modsim showing config and PLC working to talk to it (inc PLC config)
  • screen shots of the working Modscan to the Modsim showing IP configs, registers and such

 


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

taa502
Crewman taa502
Crewman

Posted: ‎2022-02-09 11:44 PM

In response to BevanWeiss
0 Likes
3
4563
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-09 11:44 PM

Here are the screenshots. 


1) Modbus server (simulator) config 

config_server.JPG

 

2) Communication PLC -- Modbus server

plc_to_server.JPG

 

3) Modbus client config

config_client.JPG

 

4) Communication Modbus client -- VFD

client_to_vfd.JPG

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2022-02-10 01:53 PM

In response to taa502
1 Like
2
4556
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-10 01:53 PM

What UnitID is the VSD expecting?

 

You've ticked this box in the Modbus Slave simulator, which means that it may not represent the VSD unless you have confirmed that the VSD will accept any Unit ID sent to it (which often they do not).

2022-02-11 08_47_37-Reply to Message - Communities.png

 

You're also going to need to detail what settings apply against what ModbusTCP fields for your iba configuration.

 

You should have all the fields for the Modbus TCP comms identical between what you are trying to do in your PLC vs what you have configured in your Modbus Client simulator.
And you should have all the fields configured the same in your Modbus Server compared to what you know about the VSD (i.e. if your Modbus Client is working when talking to the VSD if configured with Unit ID 1, then your test Modbus Server should be configured to only respond as Unit ID 1, unless you have also proven that the Modbus Client can connect to the VSD when requesting data from Unit 2.. and Unit 3.. and Unit 4->255)

 

Match up all the fields as per:
https://en.wikipedia.org/wiki/Modbus 

Bring in Wireshark if you don't know what the field value is.  That will tell you what is sent / received over the wire (you might need a managed switch with port mirroring, or some other 'bend in wire' monitoring).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2022-02-10 10:30 PM

In response to BevanWeiss
1 Like
1
4549
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-10 10:30 PM

Take care for the Unit Id in the case you want talk to the ATV via Modbus TCP.

If you use the standart Uint Id 255 you are only able to read the IO Scanner values.

If you want to read other parameters you need to config an Modbus RTU address in the ATV. 

In that case you can use this address as Unit ID to connect to any other parameter.

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

taa502
Crewman taa502
Crewman

Posted: ‎2022-02-11 04:16 AM

In response to Bastian_Schmitz
1 Like
0
4540
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-02-11 04:16 AM

Thank you, @BevanWeiss @Bastian_Schmitz ! All I had to do was set Device modbus address (ADD, logical address 6001, default value is OFF) in Fieldbus settings -> Port - Modbus Serial. ADDM address has to contain UnitID (ADD) after curly brackets, e.g. 'Ethernet_1{192.168.0.20}1'.


vfd_config.JPG

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

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.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of