Search the Community
Showing results for tags 'string'.
-
So i am currently looking in to the possibility off sending strings (probably between 20 and 32 characters) to a v560 plc over modbus TCP. The purpose of the string is product name/version that is going to be produced on the machine where the v560 is installed. So the operator can easily sees if the right parameters are loaded. currently we do this with a 7 to 10 digit number but a mistake is easily made. How i am thinking of achieving this is by converting the string to ASCII and writing it to 16 integers. Then in theory i could use ASCII string variable to display the name on the HMI. For the moment i dont see any problems with the setup, but before i start writing the program i thought i might be smart to ask around here for other opinions. maybe there is a smarter way to do this?
-
Hello, I want to copy the first column of my DTI in an array. The column type is STRING-ASCII. But it seems i canot create an array of STRING. I am right, or i am missing somthing ? I'm starting to thing that a STRING, is alreay a kind of array. Thank you.
-
Hello, In my program I receive a length of vectors on MI120 - MI143. When I use ASCII string to display all the vector in one line on the HMI, I only get the first character which is inside MI120, even when the length is very long. When I put RTC to vector, it is possible to display it with the samen function. So for example: MI120 a MI121 b MI122 c I want to see: abc, but I only get a. How can I solve this? Thanks!
-
I'm working with getting names from a DT on the screen, and I got the folowing: read name from dt, row offset in string1 read name from dt, row offset +1 in string2 .... read name from dt, row offset +14 in string15 next page = offset + 15 reload. This way i can skip through the DT and show all values, but now I got a strung with 15 times almost the same code. The problem is that there isn't a array[string] with which it would be possible to make a loop. If there would be an array[string] then i could save at position [offset] and next time [offset +1], but now i need another name thereby I't isn't possible to make a loop. Any ideas?
-
Hello, I'm trying to compare a string to an empty string. When the string is NOT empty, a counter should increment. First I tried to do this with a not contact between the compare and the increment, this gave the problem that it kept incrementing. It didn't stopped after one runtime it kept going. Does someone know a better inverse method? One ugly solution that I have found is to increment before the compare and decrement if it is true. Does anyone have better options?
-
I have a project were I am using an Enfora GPRS modem to make IP calls back to a web connected machine. This works very well and I have set it up to receive text messages via GSM. I want to use the received text to trigger a call back on GPRS to an IP specified in the text. I have found the function to convert the IP to a text but not text to IP. Is there one? If not how is the decimal storage of an IP formatted so I can do via math / string functions? Thanks in advance Andy
-
Hi Experts I am new to Unitronics (started to work on it this Monday) and I am pretty impressed by its capabilities. I wonder if somebody could advise me if its possible to send text values through SMS and display it on Vision 230 OPLC. So far I could transfer numeric values but passing strings would be very helpful as well. Please help.