
[18] Communication
414
[Example]
SCHA 10
Set LF (=10) as the end character.
TMRD 30
Set the READ timeout value to 30sec.
OPEN
1
Open
channel
1.
READ 1
2
Read the character string from channel 1 to
column 2 until LF is read.
TRAN
1
99
Assign the return code to variable 1.
CLOS
1
Close the channel.
SLCT
The processing flow branches out in accordance
with each return code.
(Note) Using a GOTO command to branch out of
an SLCT-EDSL syntax or to other branch
processing within the syntax is prohibited.
WHEQ
1
0
:
(1)
:
If the content of variable 1 is “0” (Completed
successfully), (1) will be executed. In (1), define
the processing that should take place upon
successful command execution.
WHEQ
1
1
:
(2)
If the content of variable 1 is “1” (Timeout), (2) will
be executed. In (2), define appropriate processing
to handle this situation, if necessary.
:
WHEQ
1
2
:
(3)
If the content of variable 1 is “2” (Timer cancelled),
(3) will be executed. In (3), define appropriate
processing to handle this situation, if necessary.
:
OTHE
:
(4)
If the content of variable 1 is not “0”, “1” or “2”, (4)
will be executed. In (4), define appropriate error
handling, if necessary.
:
EDSL
Once one of the specified conditions was met and
the corresponding command has been executed,
the processing will move here.
Read completes successfully within 30sec
o
Variable No. 1 = 0
Timeout occurs
o
Variable No. 1 = 1
* The return code of READ command may not be limited to 0 or 1. The
variable to store the return code can be set in “Other parameter No. 24”.
(Main application Ver.0.21 or later) For details, refer to the explanation of
the READ command.
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: ......