FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
04-11-2023 09:21 PM
I am attempting to control the smart function kit with the PLC. I have been able to do various commands but am having trouble jogging. I am able to enter data directly into the object in the data layer and issue a command from the API but when I try the same thing from the PLC using DL_WriteNode I get the error below.
From the data layer I am able to do this nor problem.
Solved! Go to Solution.
04-12-2023 11:02 AM
Hello @aFouraker,
it seems like you are using the version 2.0.2 of the Smart Function Kit app. I assume there is a bug in this behaviour of the interface, which should be resolved in the the new version 2.5.0.
Would it be feasible for you to update first?
You can find the required apps and contact details in the following blog post:
https://connect.bosch.com/forums/html/threadTopic?id=32f1d7c8-c0e5-43a2-b72e-ce15b4097d2c&ps=25
04-13-2023 11:07 PM - edited 04-13-2023 11:18 PM
@vomtwo__, thank you for the suggestion. Unfortunately, updating the app did not make a difference. I am still able to post the object type and values through the API while I get a non-descript access error (CXA_TABLE, 16#80000001)when trying to post with DL_CreateNode/DL_CreateNodeValue on the PLC app. See images below.
04-17-2023 10:43 AM - edited 04-17-2023 11:08 AM
In the PLC App you are using the SFK Datalayer path to do the relative positioning. Therefore you only need to define the value. The datalayer Path knows the type already:
Just insert your value information like so: { "x": 10, "y":0, "z":0, "vel": 5, "acc": 10 }
04-17-2023 01:30 PM
04-17-2023 04:03 PM
Hello @aFouraker,
we have to forward this question to our colleagues from DC-AE, who are more familiar with the PLC app.
It seems as if this is not a specific SFK problem.
04-18-2023 10:47 AM - edited 04-18-2023 10:47 AM
Hello,
there is currently a restriction on PLC Side with the DL_CreateNode to run just simple data types. You are currently operating with 1.16 (RM2207) but I suppose the RM2303 does not support more complex datatypes as input yet.
Short update will follow later.
Bye!
https://docs.automation.boschrexroth.com/doc/2090768453/dl-createnode/latest/de/
04-18-2023 03:28 PM
Thanks @CodeWasi, can you recommend an alternative?
04-20-2023 12:15 PM - edited 04-20-2023 05:15 PM
You have to use the DL_CreateNodeValue for complex data types. See this topic for an example.
You will need the flatbuffer library of the sfk4h that is including the flatbuffer objects. Please send me a privte message with your contact data if you need it.
04-20-2023 02:34 PM
@CodeShepherd, in the example you give there is a flatbufferbuilder defined for the timer that you are making:
CXA_AutomationCore_fbs.common_scheduler_fbs_DurationTimer
Is there a way to define this for other object defintions?
04-20-2023 05:17 PM - edited 04-20-2023 05:18 PM
I updated my post above.