Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manual do Utilizador Página 111

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 146
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 110
8Ć1
8.0 ETHERNET
COMMUNICATION
FUNCTIONS
Th
e f
ollowin
g f
unctions ar
e u
sed onl
y w
it
h t
h
e E
thernet Network
Interfac
e (
ENI
) m
odul
e (
M/
N 5
7C440)
. B
efore an
y o
f t
h
e f
ollowing
function
s c
a
n b
e u
sed, th
e A
utoMax operating system wit
h t
h
e E
thernet
optio
n m
ust b
e l
oaded onto th
e P
rocessor. Note that tasks tha
t u
se
thes
e f
unctions must b
e r
u
n o
n t
h
e l
eftmost Processo
r i
n t
h
e r
ack.
Thes
e f
unction
s c
annot b
e u
sed o
n t
h
e A
utoMax PC3000.
Function Name
Description
ENI_INIT% Initializes ENI
SOCKET% Creates socket
BIND% Binds socket
CONNECT% Assigns destination for socket
ACCEPT% TCP only; directs a passive open
SEND% Sends specified type of variable
SENDL% Sends double integer array
RECV% Writes received variable
RECVL% Writes received array
SETSOCKOPT% Sets socket option
GETSOCKOPT% Reads socket option
SHUTDOWN% Closes socket
8.1 ENI_INIT% Function
Format:
ENI_INIT%( slot%, addr$, tcp%, udp%, ether% )
where:
slot% is the logical slot the ENI is to be in. This can be
a variable or a constant. The only legal values
are 2 or 4.
addr$ is the Internet address to assign to the ENI. This
is a string of four decimal numbers separated
by decimal points, each ranging from 0 to 255.
A typical address is 128.0.0.10.
tcp% defines the number of sockets to use for the
TCP protocol.
udp% defines the number of sockets to use for the
UDP protocol.
ether% defines the number of sockets to use for Raw
Ethernet.
The ENI_INIT% function commands the Ethernet Network Interface
to go through its initialization. The ENI supports three types of
protocols: TCP, UDP, and Raw Ethernet. Up to 64 channels (sockets)
can be assigned to each ENI. Part of the initialization selects how
may sockets to allow for each protocol. The green LED on the front
Vista de página 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 145 146

Comentários a estes Manuais

Sem comentários