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.
=== Edited by jklm @ 4/15/2012 8:58 PM [GMT ] ===
|
Best regards
jklm
Suggestion was helpful? Thanks to rate it.