System variables reading

Hello,

i need to remember the selected system measurement unit ( metric - imperial - imperialUS) ; so that the required unit is reselected or retained after powerloss.

1/ what or how is is possible to read the ::System:clientinfo?
2/ i want to put the selectedMesasurement unit into a retained variable.
3/ were do i best create the eventbinding that reads the retained variable and use is to reassign the selected measurement unit?

it is not clear how it is done in the mappview demo HVHighlight program
image

with regards
sven

Hi,

to read the Client SystemInfo, you have to configure a suitable variable structure on PLC side, make it accessible via OPC UA and bind it in mappView, an example can be found here.

Setting the unit can be done by a system action, additionally please see here for an overview of all Client actions available.

Best regards!

2 Likes

You could also look at mvHighLight task mvClient and the gSystemInfo.binding file.

3 Likes