Hi Everyone ,
I have a sync start process(Process Id is used to select the Process Model) in my Parent Process.Now I am not able to save the Output. PVs are not shown in pv!.
Discussion posts and replies are publicly visible
For Outputs, this is the expected configuration of start process mode
Same datatype is passed. Still process variables are not shown.
I am trying to get the value from pv!
Hi Anusuya in your screenshot the refresh icons are missing which are genrally there on the setup tab. Can you try to delete this start process node and drag a fresh one from the palette to setup this again and see if pv as well as refresh icons are available.
Anusuya K Mahalingam said:I am trying to get the value from pv!
Any return value you hope to directly map from a PV value would need to (Exactly) match in data type with the PV value. However, if you enter a valid expression for the subprocess value, you can access values that don't exactly match 1:1 with the data types in the parent process - this is very useful, but you have to know what you're doing of course or else the result will potentially seem nonsensical.
Are you able to provide screenshots of what I asked for before? That would help pinpoint your issue. If your target process model is selected via an expression, then you must enter the ac!processInfo.pv.myPv as an expression, since we can not populate the PV options when the model to start is selected via expression.
Parent Model
Sync Start Process
Output Variable Configuration:
Process Model Id is configured:
It looks like this is not a configuration issue. I would recommend deleting the PVs from both processes and recreating them. Then save and publish both processes, reopen the main process, and try to configure it again. Let us know if the issue still persists.
The configuration looks fine. Can you open the expression editor besides the ‘Select a Value’ dropdown in the Outputs Section and try to populate the pv from the activity class parameters. You can map the pv within the expression window. Try and share how it goes!
Unfortunately I do not think either of these above answers are correct. The behavior you are seeing is due to the fact that you have "973" as the expression for your process model. When you select a process model by expression, we can not pre-populate the PV dropdown for you. Instead, you need to use ac!processInfo.pv.pvName as an expression in the value column of outputs. This will be evaluated at runtime properly and return your PV successfully. Let me know if this works for you.
I would suggest not using an expression for your process model and instead use the selector to search for the PM name. If you select the Process Model via that method, the dropdowns will populate as you would expect.