ejessen
Guest
E
In order to communicate with some 3rd party hardware, I need to build a ASCII-string based on HEX values.
The basic problem is to have an calculated variable integer value of e.g. 255 and have the ST element to be added FF.
Entering HEX values manually into the ST-element is no problem and the communication works fine, but I can't find a way to build the string based on PLC commands. The ASCII conversion table describes how a value of e.g. 01h is entered as \01 or ^A (the latter to be displayed in the ST-element), but how can this be concatenated to the ST-element on basis of a calculated value in an N-file?
The basic problem is to have an calculated variable integer value of e.g. 255 and have the ST element to be added FF.
Entering HEX values manually into the ST-element is no problem and the communication works fine, but I can't find a way to build the string based on PLC commands. The ASCII conversion table describes how a value of e.g. 01h is entered as \01 or ^A (the latter to be displayed in the ST-element), but how can this be concatenated to the ST-element on basis of a calculated value in an N-file?