10/12/2015 1:24 PM | |
Posts: 30 Rating: (4) |
Hello. In advance,sorry for my english. I have read the article "How can you use process-driven archiving in WinCC for a process tag with SFB37 (AR_SEND)?" and I've successfully transmitted one value of a tag to wincc. Then I tryed to transmit more than one value of tag and it works too. Now I want to transmit several tags simultaneously and can't do this. So, if i'm right, it should be a number of single tag datablocks which follows to each other. So, in SCL source I have defined "MANY_UDT" type, which consist of two variable with "SEND_MANY_UDT" type. Then in program (after key word "BEGIN") I assign every paramter and Subnumber_ID's are different. Part of scl source code: TYPE SEND_MANY_UDT STRUCT HeaderType : INT:=9; //Header Type TimeStamp : DATE_AND_TIME; //Date and Time Cycle : DINT:= L#10; //Cycle UnitType : BYTE:=B#16#1; //Unit (Type) UnitRange : BYTE:=B#16#3; //Unit (Range) SubNumber : INT:=1; //AR_ID-Subnumber DataType : INT:=5; //Process data - data type UCount : INT :=10; //Number of process values U : ARRAY [1..10] OF REAL; //Process value END_STRUCT END_TYPE TYPE MANY_UDT STRUCT Archiv1 :SEND_MANY_UDT; Archiv2 :SEND_MANY_UDT; END_STRUCT END_TYPE But something wrong.. See attachment - scl source code. How can I transmit multiple tag? Thank you for your time! AttachmentMANY_SCL.txt (79 Downloads) |
10/13/2015 11:04 AM | |
Joined: 7/9/2015 Last visit: 8/30/2024 Posts: 3943 Rating: (585) |
Hi andre_pulse,
there is a FAQ about SFB37 - have a look to the LINK: https://support.industry.siemens.com/cs/ww/en/view/23629327
Hope it helps,
Regards, Towome |
|
|
Follow us on