Hi all,
I've got an application where I have a text file located on a PC, and among a whole mass of irrelevant text there is a number I want. For the sake of the example, let's say that in this text file, there will always be the exact string "The number for today is" followed by a whole number. The PC that has this file on it has an Advanced HMI application running on it, and is connected via Ethernet to a Click Koyo PLC.
I want to get that number into DS1 on the Click.
I imagine there are a lot of different ways to approach this, but I'm after hints on the neatest and cleanest way to do it.
I'm using a batch file to obtain the text file in the first place, so it wouldn't be too much effort to add some more code to the batch file to clean it up and effectively delete everything except that number, or convert it to a CSV or anything like that. But perhaps Advanced HMI has some functions that can parse through and grab the relevant number more easily?
I'm a total newb to Advanced HMI - I've got it communicating with the Click, but that's about it so far. About to get my feet wet some more, but in the meantime, suggestions involving AHMI might have to be explained in a little more detail than usual
Thanks!
I've got an application where I have a text file located on a PC, and among a whole mass of irrelevant text there is a number I want. For the sake of the example, let's say that in this text file, there will always be the exact string "The number for today is" followed by a whole number. The PC that has this file on it has an Advanced HMI application running on it, and is connected via Ethernet to a Click Koyo PLC.
I want to get that number into DS1 on the Click.
I imagine there are a lot of different ways to approach this, but I'm after hints on the neatest and cleanest way to do it.
I'm using a batch file to obtain the text file in the first place, so it wouldn't be too much effort to add some more code to the batch file to clean it up and effectively delete everything except that number, or convert it to a CSV or anything like that. But perhaps Advanced HMI has some functions that can parse through and grab the relevant number more easily?
I'm a total newb to Advanced HMI - I've got it communicating with the Click, but that's about it so far. About to get my feet wet some more, but in the meantime, suggestions involving AHMI might have to be explained in a little more detail than usual
Thanks!