daveNewInterface

Create a daveInterface structure.

More...
version(BindNodave_Static)
extern (C) @nogc nothrow
daveNewInterface
(
_daveOSserialType nfd
,
const(char)* nname
,,,
int speed
)

Parameters

nfd _daveOSserialType

A daveOSserialType

nname const(char)*

Interface name

localMPI int

The address used by your computer/adapter (only meaningful for MPI and PPI)

protocol int

A constant specifying the protocol to be used on this interface

speed int

A constant specifying the speed to be used on this interface. (only meaningful for MPI and Profibus)

Detailed Description

Protocol types to be used with newInterface:

NameMeaning
daveProtoMPIMPI for S7 300/400
daveProtoMPI2MPI for S7 300/400, "Andrew's version"
daveProtoMPI3MPI for S7 300/400, The version Step7 uses. Not yet implemented.
daveProtoPPIPPI for S7 200
daveProtoISOTCPISO over TCP
daveProtoISOTCP243ISO over TCP with CP243
daveProtoIBHMPI with IBH NetLink MPI to ethernet gateway

ProfiBus/MPI speed constants to be used with newInterface:

  • daveSpeed9k
  • daveSpeed19k
  • daveSpeed187k
  • daveSpeed500k
  • daveSpeed1500k
  • daveSpeed45k
  • daveSpeed93k

Meta