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

Switching the ethercatmaster between states

Switching the ethercatmaster between states

ChickenTeriyaki
Established Member

Hej,

My question is in regards to the issue specified in the following link, where I am having trouble getting my CytroPac in OP mode without initializing all of the slaves in ctrlX WORKS and putting them in OP mode again: https://developer.community.boschrexroth.com/t5/ctrlX-DRIVE/Starting-the-CytroPac-in-OP-mode/m-p/561...

Rather than finding out, how to automatically start specifically the CytroPac in OP mode, is there instead a way to switch the ethercatmaster between different states (e.g. OP -> Init -> OP) in ctrlX Engineering, perhaps via a parameter?

ChickenTeriyaki_0-1651842351532.png

 

Thank you very much

 

7 REPLIES 7

CodeShepherd
Community Moderator
Community Moderator

You have different possibilities to switch this state, but there is parameter like it was in the MLC.

In the ctrlX IO engineering you can switch to online and use the buttons in the master view in tab "Bus diagnostics":ctrlX IO engineering onlinectrlX IO engineering online

In the web interface of the ctrlX CORE there is the same view like on your screenshot in the last post:ctrlX web interface EtherCat statusctrlX web interface EtherCat status

You can also use the REST API to switch it from any client tool:

PUT 

https://<IP of ctrlX core>/automation/api/v1.0/fieldbuses/ethercat/master/instances/ethercatmaster/admin/fieldbus_status/master_state

{"request": { "newState": "init" }} or {"request": { "newState": "op" }}

Hej!

Sorry for the late reply.

Those were some very great methods.

However, personally I ended up using the CXA_EthercatMaster library for great effect:

ChickenTeriyaki_0-1654616400516.png

 

@CodeShepherd Is there documentation for ethercat configuration over REST API? I am wondering what functionality is possible here.

CodeShepherd
Community Moderator
Community Moderator

In short you can do everything that is possible with ctrlX CORE Web UI also with the REST API as it is using the same mechanism. You can see this by using the developer tools of your browser while clicking the Web UI buttons.

Unfortunately the official documentation for the data layer nodes (and so the REST API) is not released yet. But I will check the next steps there.

Further more it is possible to control also the ctrlX IO Engineering via a REST API. There is an integrated documentation in the tool it self via a Swagger UI:

ctrlX IO Engineering open Swagger UIctrlX IO Engineering open Swagger UI

Moved:

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