I am having issues passing a new parameter I created and would like some help.
I have created template that I want to pass the crane_command from each crane.
I have 3 cranes. the CraneNumber passes but I cannot get tthe crane_command to pass like i want it to.
The idea, is that the 'Pallet Label' would have the view hidden until a pallet is on the crane.
I use the when looking into the view, the template is bound to a simple query that when a pallet is there is shows. It does not follow the view where if the lpn on that line is bigger than 0. If i go in and click each crane i can see it but not the "hidden" pallet label.
If I understand the problem correctly, you have bound the label's visibility to the label's props.params.crane_command which doesn't exist. (And there is no params section in the properties of the label shown above.)
Try changing the expression to, {view.params.crane_command} > 0
It looks like your query is sometimes returning data you aren't expecting. It's polling every 5 seconds so you should be able to monitor the results you're getting back from Ignition designer.
For troubleshooting, try making an expression binding that just shows the query result and then put an expression transform on that to make it do the logic you're actually planning to use.
This will allow you to break out your logic into sections and see what's happening.
I suspect your issue is either that your query is returning something you aren't expecting or it is not triggering the binding as often as you expect.
The pallet label in the template is used to represent the pallet on the crane. It changes each put or pick. I think it is working fine and it will show the correct pallet number.
My issues is getting that pallet, from the template, to show on the crane once a number/pallet is present.