0 - ethernet communication functions, 1 eni_init% function, 0 ethernet communication functions – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 111
![background image](/manuals/580318/111/background.png)
8Ć1
8.0 ETHERNET
COMMUNICATION
FUNCTIONS
The following functions are used only with the Ethernet Network
Interface (ENI) module (M/N 57C440). Before any of the following
functions can be used, the AutoMax operating system with the Ethernet
option must be loaded onto the Processor. Note that tasks that use
these functions must be run on the leftmost Processor in the rack.
These functions cannot be used on the AutoMax 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