71
2.2.26 Function CONV
The function CONV provides the conversion of source data in one of the
available formats. Conversion type “TO_7SEG_SIGNED” converts input
data (one word with sign -32768..32767) in a specified number of digits
alredy suitable for a display with 7 segments. The number of digits to
convert, starting from less significant digit, will be sent to the function as
parameter.
The codes will be saved (one digit for each word) starting from destination
word and then in the following words accordino to the required number of
digits.
Coversion type “TO_7SEG_UNSIGNED” is similar to the above described
conversion. The difference is that the source data is considered as
unsigned word (0..65535). the code is composed by one bit set to 1 if the
segment must be ON and by one bit set to if the segment must be Off. The
correspondance between bit and segment is the following:
B0
B1
B2
B7
B3
B4
B5
B6
Conversion type “TO_ASCII_SIGNED” converts the entering data (one
word with sign -32768..32767) in a specified number of ascii characters.
The number of characters to save will be assigned to this function as
parameter. Codes of these characters will be saved (one character per
word) starting with the destination word and then in the following ones,
according to the no. of required characters.
Conversion type “TO_ASCII_UNSIGNED” is similar to the one described
above, but the source data is meant as unsigned word (0..65535).
Содержание PL260
Страница 1: ...User manual...
Страница 2: ...2...
Страница 8: ...8 1 4 Size and installation 90 160 mm 43 53 5 45...