6F8C1048 35
5.4Communication FB Interface
5
[Socket service command]
Compared with the case of Ethernet communication requests in general, only two
commands, that is, AN712 module management socket identifier acquire (16#0016) and
UDP receive request (16#0033), can be used. If other commands are requested, the
return value (-54) is sent back.
[Request commands]
(1) AN712 module management socket identifier acquire
• This command is used to refer to detailed information on each socket of the AN712
module.
• From the socket numbers of an open controller, a socket number inside the
communication module is acquired.
<Request command structure>
Socket No.: Socket identifier (0 to 11) (Identifier obtained by opening UDP)
<Socket No. or error status>
Error status details
Note: Relationship between a socket number obtained by the open command and a
socket number obtained by this request command: A socket number obtained by
the UDP open command is managed by the communication function block
instruction, and is different from a real socket number obtained by the AN712
module. Transmission, reception, and close can be effected using a socket num-
ber obtained by the open command, but it cannot be used to refer to the detailed
information on each socket managed by the AN712 module. Therefore, a socket
number managed in the AN712 module is acquired and is used as an offset to
obtain socket information. The information on each socket of the AN712 module
depends on station global. To refer to it by a user application, register station glo-
bal variables or by direct representation of instructions (%MW13. offset address).
See figure 7-3 for the structure of the detailed information on each socket acquired by
this command.
Error status No. Description of error
-54 Protocol unsupported
-5001 Command identification error (including cases unsupported)
-5004 Communication instruction driver number is not within the specified range.
-5005 Socket not opened yet
15
Slot No. of requested ADMAP-5M module (AN712)
Command (16#0016)
Socket No.
0
15
Socket No. (0 to 11), error status
0