▲ 9 r/PLC

FactoryTalk View ME - Passing numeric values to Global Object

Hey folks,

Been working with the product going on a decade now and encountered a new hurdle / new fix. Happy to hear feedback if there's an easier solution as well.

I regularly create a Numeric Input Global Object and pass tag paths, units, and min/max values to it, like so:

https://preview.redd.it/0q15za2tua6h1.png?width=411&format=png&auto=webp&s=48f0b362ecce67577ea97ea0b16523586ef70f06

This works great as long as the min/max are tag bindings and not numeric values.

https://preview.redd.it/b1t7wjxvua6h1.png?width=639&format=png&auto=webp&s=78d97a356bc44a64ebdd546fe0280f5189407b97

However, on occasion when I do not have a min/max tag to bind, I would still like to be able to set the min/max values. Doing so with numeric constants yields the following errors.

https://preview.redd.it/d87rd4bzua6h1.png?width=642&format=png&auto=webp&s=abddc22a7252233a4499e130f385fd75500453cc

I was eventually able to circumvent the issue by creating a second numeric input global object, and multiplying the min/max bindings by 1. Doing so attempts to force the parameters into integers, making them fit for the task.

https://preview.redd.it/kjuzsay7va6h1.png?width=401&format=png&auto=webp&s=c7cba7c089ff39e62b24ea552660a556812a3b40

Now I'm maintaining two of the same Global Objects, but its the best solution I've found.

Anyone have an easier way to do this?

Cheers!

reddit.com
u/rooski15 — 26 days ago