series Robot Controller
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
= 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.
External device
STRING.PAR should be created in the following format.
= 1 "▲ ▲ ▲ ▲ ▲ "
Conversion number (0 to 32767)
Character string to be received (up to 32 characters)
Example of STRING.PAR:
= 0 "OK000"
= 1 "OK001"
= 2 "OK002"
= 127 "OK127"
The number of data rows can be specified to be up to 128. If 128 rows are
exceeded, data is truncated by 128 rows.
Character string
"ABC<CR>"
Note: <CR> signifies the record end code (0x0D).
– 32 –
COMMUNICATION MANUAL
Robot controller
Numeric
"1"
STRING.PAR
= 1 "ABC"
INPUT character string conversion
SCOL
language
INPUT
command
STE 80722