FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
05-06-2022 03:10 PM
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?
Thank you very much
Solved! Go to Solution.
05-09-2022 07:45 AM
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":
In the web interface of the ctrlX CORE there is the same view like on your screenshot in the last post:
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" }}
06-07-2022 05:40 PM
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:
01-05-2023 10:29 PM
@CodeShepherd Is there documentation for ethercat configuration over REST API? I am wondering what functionality is possible here.
01-09-2023 08:07 AM
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:
01-16-2023 09:08 PM
01-25-2024 04:25 AM - edited 01-25-2024 07:29 AM
Moved to own topic "Switching the ethercatmaster state via OPC UA".
03-21-2024 07:08 AM