
[19] String Operation
424
z
VAL (Convert character string data; decimal)
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 VAL
Variable
number
Column number,
character literal
CC
Applicable models
All models [Refer to Section 5.1 for details of models]
{
[Function]
Convert the decimal 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.
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 18 characters or less.
[Example]
SCPY
10
‘1234’
Set ‘1234’ in column 10.
SLEN
4
Set the converting length to 4 bytes.
VAL
1
10
Assign 1234, which is a binary converted from
‘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
‘1234’
Copy ‘1234’ to column 20.
SCPY
24
‘.567’
Copy ‘.567’ to column 24.
SLEN
8
Set the converting length to 8 bytes.
VAL
*1
*2
Assign 1234.567, which is a binary converted from
‘1234.567’ in the content of variable 2 (column 20)
to the content of variable 1 (variable 100).
Summary of Contents for PSEL
Page 2: ......
Page 10: ......
Page 18: ...8 Part 1 Installation ...
Page 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Page 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Page 476: ...466 Appendix ...
Page 480: ...470 ...
Page 485: ...475 ...
Page 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Page 488: ......
Page 490: ......
Page 494: ......
Page 518: ...24 ...
Page 526: ...32 ...
Page 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Page 1060: ......
Page 1061: ......