Industry Online Support
Technical Forum
4/15/2012 8:54 PM | |
Joined: 12/22/2006 Last visit: 1/25/2022 Posts: 1742 Rating:
|
Hello, There are several solutions. Here a less known possibility. In SCL there is a special instruction AT that allows to define the same data but with another format. As in the small example in annex (not tested on a real PLC, and to be adapted to your needs). The FC gets a char(aChar) inside a String (InString)at a given position (POS). The temporary variable TempString and TempStringChar occupy in fact the same area. Allowing to access the data as desired. AttachmentCharInString.pdf (356 Downloads) |
Last edited by: jklm at: 4/15/2012 8:58 PMBest regards |
|
4/15/2012 10:44 PM | |
Joined: 1/4/2011 Last visit: 3/9/2023 Posts: 22 Rating:
|
Thank You jklm for your answer! I've learnt something new! |
Follow us on