Write value from one tag to another tag in WinCC

shailesh_vb

Member
Join Date
Jun 2013
Location
Pune
Posts
43
Hello Everyone,

Can somebody tell me how I can move a internal value ( word, int, float etc) to a external tag in C script or VBS or another options.

I need something like below:

Tag1 = Tag2;

Please help.

Thank you in advance.

Regards,
Shailesh
 
Been some time but I think you can use smarttag

SmartTags("HMI_Tag_1") = 1
or

HMIRuntime.Tags("Tagname_1").write = 6
 
For WinCC scada and C the following syntax applies

GetTagBit("TagName");//Return-Type: BOOL
GetTagByte("TagName");//Return-Type: BYTE
GetTagChar("TagName");//Return-Type: char*
GetTagDouble("TagName");//Return-Type: double
GetTagDWord("TagName");//Return-Type: DWORD
GetTagFloat("TagName");//Return-Type: float
GetTagRaw("TagName",pValue,size);//Return-Type: BOOL
GetTagSByte("TagName");//Return-Type: char
GetTagSDWord("TagName");//Return-Type: long int
GetTagSWord("TagName");//Return-Type: short int
GetTagValue(lpdmVarKey,lpdmresult,lpdmError);//Return-Type BOOL
GetTagWord("TagName");//Return-Type: WORD

SetTagBit ("TagName", short int value);
SetTagByte ("TagName", BYTE value);
SetTagChar ("TagName", LPSTR value);
SetTagDouble ("TagName", double value);
SetTagDWord ("TagName", DWORD value);
SetTagFloat ("TagName", float value);
SetTagRaw ("TagName", BYTE* pValue, DWORD size);
SetTagSByte ("TagName", char value);
SetTagSDWord ("TagName", long int value);
SetTagSWord ("TagName", short int value);
SetTagValue (LPDM_VARKEY lpdmVarKey, LPVARIANT lpdmValue, PDWORD dwState, LPCMN_ERROR lpdmError);
SetTagWord ("TagName", WORD value);
 

Similar Topics

Hi, first sorry my english. I need help. Im using RSView32 7.40 I want to write value to a tag from Visual Basic. i calcualted something in...
Replies
0
Views
1,360
I need to do a activity history of all panelview plus users (for Controllogix processor).Only I need to know who's logged and put a value inside a...
Replies
2
Views
2,168
Hello All, Can Someone tell me the correct program syntax (Crimson 3.0) to write a value to an Internal scrren tag. ie. 1. User Presses a...
Replies
1
Views
2,122
hi i am using rs view32 in which i want to write value in tag through vb. for example i have a tag higest_value as a integer which is decleared in...
Replies
21
Views
30,350
I've devoleped a VB application for retrieve data from an Access database and now I wont write this values to some tag into my RSView studio stand...
Replies
1
Views
3,943
Back
Top Bottom