STE 80722
– 32 –
4.3.2 Converting a Character String to Any Numeric Value
The value of (FUNCTION 1), the 1st column in 1st row of user parameter [U25]
FUNCTION SELECT SWITCH is set to 2.
[U25] FUNCTION SELECT SWITCH
= 2 0 0 0 0 0
= 0 0 0 0 0 0
= 0 0 0 0 0 0
When the value is set to 2, a nonnumeric character string is compared with the
character string in the previously created parameter file “STRING.PAR” and the
conversion number of the matching character string is returned if received.
STRING.PAR should be created in the following format.
Conversion number (0 to 32767)
Character string to be received (up to 32 characters)
Example of STRING.PAR:
= 0 "OK000"
= 1 "OK001"
= 2 "OK002"
The number of data rows can be specified to be up to 128. If 128 rows are
exceeded, data is truncated by 128 rows.
"ABC<CR>"
Note: <CR> signifies the record end code (0x0D).
language
INPUT
INPUT character string conversion