9/7/2014 4:41 PM | |
Joined: 9/8/2009 Last visit: 3/15/2023 Posts: 1410 Rating:
|
This is a SCL source for copy UDT variable into an array of UDT elements of same type. I would like if smiffytakes a look, if I have done something wrong. Part of this program is copied from other post: [code] TYPE UDT98 FUNCTION FC98 : INT VAR_INPUT VAR_TEMP CONST BEGIN IF BYTE_TO_INT(ArrAny1.DataType) >= DT_BOOL AND BYTE_TO_INT(ArrAny1.DataType) <= DT_REAL THEN DT_BYTE, DT_CHAR:
END_FUNCTION [/code] |
Follow us on