Brandon_K
Member
Hey guys.
On all of the new builds we're doing I'm trying to get the program revision to display on the onboard OELD display. I'm guilty of not always manually updating it.
The PLC (AD Productivity 2000) has a 50 character system string that contains the program name as I have saved / named it on the PC. So typically it's something like "Customer_Name_Game_Name_Rx.xx.adpro". The revision is always the last 5 characters of the name, before the .adpro extension.
How can I go about pulling just the revision number out of that string? I basically need to drop the last 6 characters (.adpro), keep the next 5 (Rx.xx) and drop everything previous to that.
From there I can copy or repack it into a string usable on the OLED display.
On all of the new builds we're doing I'm trying to get the program revision to display on the onboard OELD display. I'm guilty of not always manually updating it.
The PLC (AD Productivity 2000) has a 50 character system string that contains the program name as I have saved / named it on the PC. So typically it's something like "Customer_Name_Game_Name_Rx.xx.adpro". The revision is always the last 5 characters of the name, before the .adpro extension.
How can I go about pulling just the revision number out of that string? I basically need to drop the last 6 characters (.adpro), keep the next 5 (Rx.xx) and drop everything previous to that.
From there I can copy or repack it into a string usable on the OLED display.