cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Examples ModBus RTU on CORE available?

Examples ModBus RTU on CORE available?

Good morning, I would like to have more information on how to communicate with this Modbus RTU library on S20 with the Core.
If you have an example of an application already made, you could post it on this forum, I would appreciate it.

Captura de tela 2023-09-25 110822.png

5 REPLIES 5

CodeShepherd
Community Moderator
Community Moderator

Moved to own topic from this one.

What about the examples already included in the library?

CXA_ModbusRTU library examplesCXA_ModbusRTU library examples

TheCodeCaptain
Community Moderator
Community Moderator

Hi Gabriel_Estrela,

here you can find as well some example, ctrlX CORE communicating via Modbus RTU with a Fronius Solar Inverter.
Solved: ModBus RTU on CORE (boschrexroth.com)

Regards

MauroRiboniMX
Contributor

Ciao,

Follow the suggestion og @CodeShepherd. I tried myself and it is good.

Nice hint in the example you have to set 1-2-3 with you device setup but YOU DON'T HAVE to change the protocol. leave it transparent.

 

MauroRiboniMX_0-1695738398162.png

Plus, i am in the standard condition so my slave address is 1001 (you find it in the ethercat page) change it accordingly as well as the uiSlot (is the number of the slot in the buscoupler chain. my is 1 because i had the uni in the 1st positionMauroRiboniMX_2-1695738743172.png

 

MauroRiboniMX_1-1695738574522.png

Hello, I need to understand the step by step process to add a mod bus RTU RS485 communication, I use it in slot 4 as a master for my slave, which is a third party system.
I added the MODBUS libraries and how do I test this communication because the third party equipment does not provide addressing.
Another question is whether I need to install a MODBus RTU driver in the core to carry out this manufacturing of the s20 module or would it just be the library?

Gabriel_Estrela_0-1696596764573.png

 

The library is enough for getting the hardware to work.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist