eipAdapter
Function Block A function block groups an algorithm and a set of private data. It has inputs and outputs. - Provides information about the current state of the Scanner connection.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
N/A |
N/A |
N/A |
N/A |
N/A |
This function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block has no Inputs. It automatically refers to the adapter in the project. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Run |
BOOL |
FALSE, TRUE |
N/A |
TRUE, if the EIP stack is running. |
IOcnx |
BOOL |
FALSE, TRUE |
N/A |
TRUE, if an I/O connection is established with the Scanner. |
Remarks
- This function block is used in a program The act of performing a sequence of instructions or commands. on the Adapter side.
- The servers (adapters) accessed by this block must be configured in the EtherNet IP EtherNet/IP™ is an open industrial application layer protocol for industrial automation applications. The EtherNet/IP application layer protocol is based on the CIP layer. Scanner fieldbus An industrial network system for real-time distributed control (e.g., CAN or PROFIBUS, Sercos®). It is a way of connecting instruments in a plant design. configuration.
- Only one explicit message (read or write) can be sent at one time to the same server.
- If another message is pending you receive the error report 3 (busy) after calling the block to start a new exchange.
- Consider SerializeIn and SerializeOut functions for extracting data from the read buffer.
Example
Inst_eipAdapter(); // read the EtherNet Ethernet is a large, diverse family of frame-based computer networking technologies that operate at many speeds for local area networks (LANs)./IP adapter status
EIP_running := Inst_eipAdapter.Run; // is it running?
EIP_connected := Inst_eipAdapter.IOCnx; // and connected?
See Also