Iai-america XSEL-KE Manuel d'utilisateur Page 211

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 424
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 210
196
Part 4 Commands
z TMRD (Set READ timeout value)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1 Operand 2
Output
(Output, flag)
Optional Optional TMRD
Timer
setting
Prohibited CP
[Function] Set the timeout to be applied to a READ command.
The timer setting specified in operand 1 will set the maximum time the program will wait for the
character string read to end when a READ command is executed.
If the end character could not be read before the timer is up during the execution of the READ
command, a timeout will occur and the program will move to the next step.
(Whether or not a timeout has occurred can be checked from the return code that will be stored in a
local variable immediately after the READ command is executed.)
If necessary, specify the processing to be performed when a timeout occurs.)
6HWWLQJWKHWLPHUWR³´ZLOODOORZWKH5($'FRPPDQGto wait infinitely, without timeout, until the end
character is read.
7KHWLPHUVHWWLQJLVLQSXWLQVHFRQGVVHWWLQJUDQJHWRVHFRQGVLQFOXGLQJXSWRWZRGHFLPDO
places.
1RWH 705'LVVHWWR³´LQWKHGHIDXOWFondition before TMRD setting is performed.
[Example] 6&+$  6HW/) DVWKHHQGFKDUDFWHU
705'  6HWWKH5($'WLPHRXWYDOXHWRVHFRQGV
OPEN 1 2 Open channel 1.
READ 1 99 Read the character string from channel 1 to column 2 until LF is read.
TRAN 1 Assign the return code to variable 1.
CLOS 1 Close the channel.
SLCT The program branches to the processing corresponding to each return
code.
(Note) Branching out of or into a SLCT ~ EDSL statement using a
GOTO command is prohibited.
,IWKHFRQWHQWRIYDULDEOHLV³´(executed successfully), [1] will
be executed. Specify in [1] the processing to be performed
when the command has been executed successfully.
WHEQ 1 If the content of variable 1 is³´H[HFXWHGVXFFHVVIXOO\>@ZLOOEH
executed. Specify in [1] the processing to be performed when the
command has been executed successfully.
[1]
WHEQ 1 1 If the content of variable 1 is³´WLPHRXW>@ZLOOEHH[HFXWHG,I
necessary, specify in [2] the processing to be performed in this
condition.
[2]
WHEQ 1 2 ,IWKHFRQWHQWRIYDULDEOHLV³´WLPHUFDQFHOOHG>@ZLOOEHH[HFXWHG,I
necessary, specify in [3] the processing to be performed in this
condition.
[3]
OTHE ,IWKHFRQWHQWRIYDULDEOHLVQRW³´³´RU³´>@ZLOOEHH[HFXWHG,I
necessary, specify in [4] the error handling to be performed in this
condition.
[4]
EDSL If any of the above conditions is satisfied and the applicable command is
executed, the processing will move here.
Read completes successfulO\ZLWKLQVHFRQGVo9DULDEOH1R 
Timeout occurs o Variable No. 1 = 1
* The return code of READ command may not be limLWHGWRRU7KHYDULDEOHWRVWRUHWKH
UHWXUQFRGHFDQEHVHWLQ³2WKHUSDUDPHWHU1R´VXSSRUWHGE\PDLQDSSOLFDWLRQYHUVLRQ
RUODWHU5HIHUWRWKHH[SODnation of READ command for details.
Vue de la page 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 423 424

Commentaires sur ces manuels

Pas de commentaire