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

Jogging the smart function kit with PLC

Jogging the smart function kit with PLC

aFouraker
Occasional Contributor

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. 

aFouraker_1-1681240845500.png

From the data layer I am able to do this nor problem. 

 

aFouraker_0-1681240837434.png

 

10 REPLIES 10

vomtwo__
Member

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

aFouraker
Occasional Contributor

@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. 

aFouraker_0-1681420665999.png

aFouraker_1-1681420673038.png

 

 

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 }

Tim__0-1681721000835.png

 

aFouraker
Occasional Contributor
Thanks @Tim_, unfortunately that doesn’t work either. Do you know if someone has an example doing what I am trying to do? I haven’t seen this done.

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.

CodeWasi
Occasional Contributor

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/

 

aFouraker
Occasional Contributor

Thanks @CodeWasi, can you recommend an alternative? 

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.

aFouraker
Occasional Contributor

@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? 

I updated my post above.

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