eipAdapter

PLCopen motion icon

 Function Block - Provides information about the current state of the Scanner connection.

Inputs


  • There are no Inputs for this function / function block.
    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 on the Adapter side.
  • The servers (adapters) accessed by this block must be configured in the EtherNet/IP Scanner fieldbus 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/IP adapter status

EIP_running := Inst_eipAdapter.Run; // is it running?
EIP_connected := Inst_eipAdapter.IOCnx; // and connected?

See Also