daveConnection

A structure representing the physical connection to a single PLC. daveConnection stores all properties that are unique to a single PLC:
  • The MPI address of this PLC.
  • The rack the PLC is in.
  • The slot the PLC is in.
  • The structure daveConnection is created and initialized by daveNewConnection:
        daveConnection * dc;
        dc =daveNewConnection(di, MPI, rack, slot);
    
    The parameters are:
  • di: a daveInterface
  • MPI: the address of the PLC (only meaningful for MPI and PPI).
  • rack: The rack the CPU is mounted in (normally 0, only meaningful for ISO over TCP).
  • slot: The slot number the CPU is mounted in (normally 2, only meaningful for ISO over TCP)