Function diagram, string to AnyType
But it doesn't work as expect, the error/status of the block indiciates problems (since we never see status code 1).
While connecting an integer value directly to the Sd port (AnyType) works just fine.
Are we required to turn the string from a string into a type of AnyType? If that is the case suggestions are welcome as to how.
buy using a string variable with initial value 'Hei' and connect direct to Sd in TCP_write.... i get status -6901. I pressume it is error....=??
Voted best answer
Ok i understand you don't want to read any manuals yourself, as a Student i also had better things to do i remember, so here a Screenshot instead:
Note the use of "MyDintStruct" which is what you need to connect to "anyType" - this Datatype needs to be defined by you and it needs to be able to contain all the String length you require to transmit.
Answers
Already asked and answered ... http://www402.abbext.com/Function-dia...
"AnyType" means literally Any Type of variable. It does not however mean that the function block can deal with *every* type of variable.
Add new comment