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.
05-15-2023 01:26 PM
I want to handle recipes on the HMI, but I want to load a recipe from the PLC. The customer sends a recipe number to the PLC and based on this number I want to load a recipe entered om the HMI
Solved! Go to Solution.
05-15-2023 01:52 PM
Can you please specify whether you want to load specific recipes you created in WebIQ Designer or through WebIQ recipe widgets or arbitrary recipes from the PLC?
05-15-2023 02:16 PM
I would like to load a recipe created from the Recipe Widget
05-16-2023 01:40 PM
The thing to consider is that to to it that way you'd have to do a mapping between a PLC value and the internal WebIQ recipe id.
You'd have to subscribe to the PLC item, react to any change, then load all recipes to search for the PLC value in it.
We have a scripting demo that shows you how to subscribe to items using JavaScript - you can download it right from inside WebIQ Designer:http://demo.smart-hmi.com/scripting-demo/
You can retrieve recipes with these JavaScript methods:
https://www.smart-hmi.com/user/download/deliver/docs/documentation-webiq-visuals-reference-2.14-3d30...
05-16-2023 01:42 PM
It doesn't have to be done from the Recipe Widget. If any way to make it easier but still using the integrated recipe handling it also a possibility?
05-16-2023 02:54 PM
Well, logically you always have to map your PLC id somehow to the WebIQ recipe id. There's no easier way as WebIQ recipe management has not been designed to trigger a local recipe in the HMI from the PLC (which in essence can't really know the recipe because it's stored in a remote system).
Let me ask differently: why are you trying to apply a specific recipe in WebIQ from the PLC when you don't have any way to check from the PLC whether such a recipe exists in the HMI?