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

Looking for a Modbus TCP example program

Looking for a Modbus TCP example program

AndroidzZ
New Contributor

Hello,

I want to communicate with a third party component via Modbus TCP. Unfortunately, I have very little experience with Modbus TCP. Is there anyone who has a working example project or similar that they would like to share with me?

Thanks in advance!

11 REPLIES 11

GeorgV
Member

Hello, if you want to read and write with a ctrlX to a Modbus TCP device ("slave") you have several posibilities:

Hello,

 

Is there more information available about using the:

thanks!

Yes, you are right. Im looking for a specific program for IEC63111 PLC program.

There is PLC library name CXA_ModbusTCP in ctrlX PLC engineering.

In this library, you may using FB of IL_ModBusTCPClient as a client of modbus TCP. You can find a simple code example.

@RobotART_Walter 

About how to install the "node-red-contrib-modbus-node" see his read.

@AndroidzZ 

About the PLC library "CXA_MODBUSRTU" see this thread.

cc2go
Occasional Contributor

There is another possibility with the Modbus TCP App, where the Modbus Register will be available in the Data Layer realtime.

https://developer.community.boschrexroth.com/t5/Store-and-How-to/ctrlX-CORE-Modbus-TCP-App/ba-p/5936...

Hello  cc2go

I need to set up the ctrlX core as a modbus slave and connect it to a master (robotcontroller in my case). Can this be done with this app?

Is the app already available?

Thanks in advance.

  

@RobotART_Walter The app is at the moment in prototype phase. Please get in contact with your known sales person for getting access to it.

For the actual functionality please have a look to the store page in our community. At the moment you can set up a ModbusTCP Client that can communicate via every standard ethernet port of the ctrlX CORE to a connected master.

Does it matter over which port (XF51 or XF10) the Modbus TCP signal is sent over? 

Like mentioned above every standard Ethernet port can be used. You simply have to set up the network settings correctly. The only not usable port is XF50 as is reserved for EtherCat only.

cc2go
Occasional Contributor

I've heard a solution is found. And it's working with the ctrlX CORE.

The robot is a Modbus Client, the ctrlX core must be a Modbus Server, it doesn't matter RTU or TCP. The CXA_Modbus Libs can be used.

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