[19] String Operation
425
z
VALH (Convert character string data; hexadecimal)
Command, declaration
Extension
condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
E
N, Cnd
Cmnd
Operand 1
Operand 2
Pst
Optional Optional
VALH
Variable
number
Column number,
character literal
CC
Applicable models
All models [Refer to Section 5.1 for details of models]
{
[Function]
Convert the hexadecimal data in the column specified in operand 2 to a binary
and assign the result to the variable specified in operand 1.
Conversion will be performed for the length set by a SLEN command.
Only the integer part will be converted, with the decimal part being ignored.
If a character-string literal is specified in operand 2, conversion will be performed
for the entire length of the literal.
(Note)
Keep the converting length to 8 characters or less.
[Example]
SCPY
10
‘1234’
Set ‘1234’ in column 10.
SLEN
4
Set the converting length to 4 bytes.
VALH
1
10
Assign 4660, which is a binary converted from
hexadecimal ‘1234’ in column 10, to variable 1.
LET
1
100
Assign 100 to variable 1.
LET
2
20
Assign 20 to variable 2.
SCPY
20
‘ABCD’
Copy ‘ABCD’ to column 20.
SLEN
4
Set the converting length to 4 bytes.
VALH
*1
*2
Assign 43981, which is a binary converted from
hexadecimal ‘ABCD’ in the content of variable 2
(column 20) to the content of variable 1 (variable
100).
Содержание PSEL
Страница 2: ......
Страница 10: ......
Страница 18: ...8 Part 1 Installation ...
Страница 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Страница 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Страница 476: ...466 Appendix ...
Страница 480: ...470 ...
Страница 485: ...475 ...
Страница 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Страница 488: ......
Страница 490: ......
Страница 494: ......
Страница 518: ...24 ...
Страница 526: ...32 ...
Страница 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Страница 1060: ......
Страница 1061: ......