Fatcory Talk SE - VBA in Expressions

CCSTUART1

Member
Join Date
Oct 2016
Location
Orlando, FL
Posts
1
Hi,
I'm in tricky situation with SE. I'm fairly new to PLC programming / SE but very experienced in VB.

We have an HMI system which is network distributed. We have multiple tablets that connect to the server.

Some of the PLC / HMI logic requires us to know the name of the tablet, along with another variable that is only obtainable inside of VBA. (i.e CPU = Environ("Computername")).

I need to perform Expression logic on regular PLC tags AND these VBA variables. I cannot pass these VBA variables to the PLC to convert them to tags, or even to HMI tags, because these variables have to stay in the scope of the particular tablet instance.

I need to immediately be able to bring this "CPU" VBA variaible into a tag expression to evaluate / pass it along with real tags. I could do all of my HMI tag reads / writes / logic in VBA but our client does not like that.

Is there any way that I can, within one screen, set that VBA variable (CPU = Environ("Computername")) AND get "CPU" OUT of the VBA world and into a tag expression without needing to pass it to another screen as a /T parameter?

Thanks
 
I know of no way, as all tag communications to a device (PLC) are handled by the FT Server. Clients don't do anything except communicate with the server. The only exception is that VBA is run locally, but tag interactions with devices remain server based.
 

Similar Topics

I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
1
Views
29
I am using Factory Talk view Machine Edition Runtime HMI. I want to configure on button in such way that when i press this button I want to...
Replies
2
Views
58
Hi Guys, Looking for someone well versed in VBA that can either tell me a certain naming convention or point me in the right direction (I'm a...
Replies
0
Views
60
Hi- I am configuring an alarm and event server to display 1 current alarm at a time on a big display. Having a few issues The alarm doesn't...
Replies
0
Views
59
how to communicate FactoryTalk Optix and Mitsubishi Q Series. I want to know the details of that
Replies
0
Views
36
Back
Top Bottom