Iai-america XSEL Ethernet Manuel d'utilisateur Page 43

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 60
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 42
- 37 -
[Example]
LET 90 192 IP address of connection destination (H) = 192
LET 91 168 IP address of connection destination (MH) = 168
LET 92 72 IP address of connection destination (ML) = 72
LET 93 101 IP address of connection destination (L) = 101
LET 94 64514 Port number of connection destination = 64514
IPCN 31 90 Declare the IP address/port number storage area for the
connection destination of channel 31 = Local integer
variable between 90 and 94.
SCHA 10 Specify 10 (= LF) as the end character.
OPEN 31 990 Open channel 31.
TRAN 1 99 Store the return code in variable 1.
N 990 GOTO 15 OPEN failed Proceed to error handling or retry
process after closing.
Common return codes of OPEN, READ and WRIT commands [* When the Ethernet option is used]
The return code is stored in the local variable specified in “Other parameter No. 24.” The default setting is
variable 99.
0: Normal completion
1: Timeout
[Specification procedure of timeout value]
OPEN:
Client mode
I/O parameter No. 127: Network attribute 8, bits 0 to 7
(Use the default setting if it poses no particular problem.)
Server mode
I/O parameter No. 128: Network attribute 9, bits 0 to 15
(Use the default setting if it poses no particular problem.)
READ: TMRD command specification
WRIT: I/O parameter No. 127: Network attribute 8, bits 16 to 23
(Use the default setting if it poses no particular problem.)
2: Cancel timer (The wait status is canceled with a TIMC command.)
3, 4: (Undefined)
5: WAIT factor error (program aborting error)
(This error cannot be recognized through SEL commands.)
6: End task (program-end request, etc.)
(This error cannot be recognized through SEL commands.)
7~12: (Undefined)
Vue de la page 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 59 60

Commentaires sur ces manuels

Pas de commentaire