Forum Controladores/PLC

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

RS 485 communication and reading data from serial port 3

Avatar
Aishwarya
  • I am working on Mduino 57r+ model it  RS-485 communication. Internally there is a Max 485 converter and the data is logged in serial port 3 tx3 and rx3  but im unable 2 read r write the data in serial 3. I get a error has serial3 was not declared in this scope. I have initialized serial3.begin (9600). What should i do to access serial port 3. If any example of reading holding register in Industrial shields please do share. 

  • I have one more question Rs485 communication through labview how can i fetch data from industrial shiels to labview using modbus communication. If the data is available in serial port 3 how can i read that in labview.

Any help is appreciated and thanks in advance

Avatar
Descartar
1 Respuesta
0
<div> <h5 class="o_wforum_bio_popover_name mb-0"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div> <span itemprop="name">Marti Guillem Cura</span> <span><img src=https://www.industrialshields.com/es_ES/forum/forum-controladores-plc-17/question/"/web/image/res.country/68/image/España?unique=a14a800%22 class="img img-fluid country_flag" alt="España"/></span> </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> </div> </address> </h5> <span class="o_wforum_bio_popover_info"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <div class="css_editable_mode_hidden"> <div class="mb-2"> <br/> </div> <b class="mt-4"><i class="fa fa-diamond text-secondary"></i> 1000000015</b> <div style="display: inline-block"> <b>|</b> <span class="fa fa-trophy badge-gold ml-2" role="img" aria-label="Gold badge" title="Gold badge"></span> 0 <span class="fa fa-trophy badge-silver ml-2" role="img" aria-label="Silver badge" title="Silver badge"></span> 0 <span class="fa fa-trophy badge-bronze ml-2" role="img" aria-label="Bronze badge" title="Bronze badge"></span> 0 </div> <div class="mt-2"> <div class="o_forum_tooltip_line"> <span>Sant Fruitós de Bages</span><span>, </span><span>España</span> </div> </div> </div> </div> </address> </span> <div class="o_wforum_bio_popover_bio"> <address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div class="css_non_editable_mode_hidden"> --<span class="text-muted">Marti Guillem Cura</span>-- </div> <div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"> </div> <div> <span> </span> </div> </address> </div> </div> </div> "> Avatar
Marti Guillem Cura
Best Answer

In order to work properly with our products we recommend using Arduino IDE, as all of Industrial Shields libraries are designed for it. First of all make sure that our Industrial Shield boards have been previously installed.

If not, check this link about how to install them:

https://www.industrialshields.com/first-steps-with-the-industrial-arduino-based-plc-s-and-the-panel-pc-s-raspberry-pi-based

Using the boards, it is necessary to take in account that our boards have default names for working with our PLCs. In order to use the RS485 communications you must call the functions by the name of RS485 instead of serial3.

Check this post where you can see the previous information with examples for learning how to work with the RS485:

https://www.industrialshields.com/blog/arduino-industrial-1/post/learning-the-basics-about-rs485-of-an-industrial-plc-195

Avatar
Descartar