asteroidehk

FactoryTalkView- CurrentLanguage to PLC

5 posts in this topic

Hello Friends

 

I have 2 languages in my app, en-US, es-MX.

 

I need to send CurrentLanguage to PLC, I am trying with Macro in Global Connections but without sucess.

 

I am trying to send the string like "en-US" or "es-MX".

 

Also I am trying to send a DINT like 0 for english, 1 for spanish, but neither works

 

These are my expressions: 

 

{[PLC]Current_Language_String}=(CurrentLanguage())

 

If (CurrentLanguage( ) == "en-US")  Then ({[PLC]Current_Language}=0)
 Else ({[PLC]Current_Language}=1)

 

I have tried a lot of combinations but without sucess.

 

Can you help me?

 

Thanks in advance

Share this post


Link to post
Share on other sites

"Send current language to PLC"? 

Are you trying to change the language on the HMI displays?

Or are you trying to let the PLC know when the HMI display language has changed?

Is this for FactoryTalk ME or SE? (I'm assuming SE, but want to be sure).

Share this post


Link to post
Share on other sites
13 hours ago, ElectronGuru said:

"Send current language to PLC"? 

Are you trying to change the language on the HMI displays?

Or are you trying to let the PLC know when the HMI display language has changed?

Is this for FactoryTalk ME or SE? (I'm assuming SE, but want to be sure).

Hello

The language changes OK in the panel with Language Switch Button.

I need to let the PLC to know which language is active in the Panel.

Controller Tag:                           Type

Current_Language_String        String

Current_Language                     DINT

I have FactoryTalk View ME v11

I have a string display in the panel that shows en-US or es-MX according the language selected, but I cant send this to the PLC. I have done many combinations without success.

Thanks in advance

Share this post


Link to post
Share on other sites

@asteroidehk I am curious the PLC String tag you're trying to write to.  What is its .len data item value?

If zero have you tried loading something non-zero and see what happens.

Share this post


Link to post
Share on other sites

Can you not add an invisible button that writes to the PLC when you press the language change button.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now