dinodave.nodave

This module contains bindings to types and functions from the nodave C header <nodavesimple.h>.

Members

Aliases

daveConnection
alias daveConnection = _daveConnection
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveInterface
alias daveInterface = _daveInterface
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

_daveConstructDoUpload
void _daveConstructDoUpload(PDU* p, int uploadID)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_daveConstructEndUpload
void _daveConstructEndUpload(PDU* p, int uploadID)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_daveConstructUpload
void _daveConstructUpload(PDU* p, char blockType, int blockNr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_daveDump
void _daveDump(char* name, ubyte* b, int len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_daveDumpPDU
void _daveDumpPDU(PDU* p)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveAddBitVarToReadRequest
void daveAddBitVarToReadRequest(PDU* p, int area, int DBnum, int start, int byteCount)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveAddBitVarToWriteRequest
void daveAddBitVarToWriteRequest(PDU* p, int area, int DBnum, int start, int byteCount, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveAddVarToReadRequest
void daveAddVarToReadRequest(PDU* p, int area, int DBnum, int start, int bytes)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveAddVarToWriteRequest
void daveAddVarToWriteRequest(PDU* p, int area, int DBnum, int start, int bytes, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveAreaName
char* daveAreaName(ubyte n)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveBlockName
char* daveBlockName(ubyte bn)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveClrBit
int daveClrBit(daveConnection* dc, int area, int DB, int byteAdr, int bitAdr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveConnectPLC
int daveConnectPLC(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveCopyRAMtoROM
int daveCopyRAMtoROM(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveDisconnectAdapter
int daveDisconnectAdapter(daveInterface* di)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveDisconnectPLC
int daveDisconnectPLC(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveExecReadRequest
int daveExecReadRequest(daveConnection* dc, PDU* p, daveResultSet* rl)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveExecWriteRequest
int daveExecWriteRequest(daveConnection* dc, PDU* p, daveResultSet* rl)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveForce200
int daveForce200(daveConnection* dc, int area, int start, int val)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveForceDisconnectIBH
int daveForceDisconnectIBH(daveInterface* di, int src, int dest, int mpi)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveFreeResults
void daveFreeResults(daveResultSet* rl)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveFromBCD
ubyte daveFromBCD(ubyte i)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetAnswLen
int daveGetAnswLen(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetCounterValue
int daveGetCounterValue(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetCounterValueAt
int daveGetCounterValueAt(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetDebug
int daveGetDebug()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetErrorOfResult
int daveGetErrorOfResult(daveResultSet* , int number)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetFloat
float daveGetFloat(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetFloatAt
float daveGetFloatAt(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetFloatfrom
float daveGetFloatfrom(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetMPIAdr
int daveGetMPIAdr(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetMaxPDULen
int daveGetMaxPDULen(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetName
char* daveGetName(daveInterface* di)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetOrderCode
int daveGetOrderCode(daveConnection* dc, char* buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetProgramBlock
int daveGetProgramBlock(daveConnection* dc, int blockType, int number, char* buffer, int* length)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetProgramBlock
int daveGetProgramBlock(daveConnection* dc, int blockType, int number, char* buffer, int* length)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetResponse
int daveGetResponse(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS16
int daveGetS16(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS16At
int daveGetS16At(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS16from
int daveGetS16from(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS32
int daveGetS32(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS32At
int daveGetS32At(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS32from
int daveGetS32from(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS8
int daveGetS8(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS8At
int daveGetS8At(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetS8from
int daveGetS8from(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetSeconds
float daveGetSeconds(daveConnection* dc)

Get time in seconds from current read position

daveGetSecondsAt
float daveGetSecondsAt(daveConnection* dc, int pos)

Get time in seconds from random position

daveGetTimeout
int daveGetTimeout(daveInterface* di)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU16
int daveGetU16(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU16At
int daveGetU16At(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU16from
int daveGetU16from(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU32
uint daveGetU32(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU32At
uint daveGetU32At(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU32from
uint daveGetU32from(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU8
int daveGetU8(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU8At
int daveGetU8At(daveConnection* dc, int pos)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveGetU8from
int daveGetU8from(ubyte* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveInitAdapter
int daveInitAdapter(daveInterface* di)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveListBlocks
int daveListBlocks(daveConnection* dc, daveBlockTypeEntry* buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveListBlocksOfType
int daveListBlocksOfType(daveConnection* dc, ubyte type, daveBlockEntry* buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveListReachablePartners
int daveListReachablePartners(daveInterface* di, char* buf)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveNewConnection
daveConnection* daveNewConnection(daveInterface* di, int MPI, int rack, int slot)

Setup a new connection structure using an initialized daveInterface and PLC's MPI address.

daveNewInterface
daveInterface* daveNewInterface(_daveOSserialType nfd, const(char)* nname, int localMPI, int protocol, int speed)

Create a daveInterface structure.

davePrepareReadRequest
void davePrepareReadRequest(daveConnection* dc, PDU* p)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePrepareWriteRequest
void davePrepareWriteRequest(daveConnection* dc, PDU* p)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePut16
ubyte* davePut16(ubyte* b, int v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePut16At
void davePut16At(ubyte* b, int pos, int v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePut32
ubyte* davePut32(ubyte* b, int v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePut32At
void davePut32At(ubyte* b, int pos, int v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePut8
ubyte* davePut8(ubyte* b, int v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePut8At
void davePut8At(ubyte* b, int pos, int v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePutFloat
ubyte* davePutFloat(ubyte* b, float v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
davePutFloatAt
void davePutFloatAt(ubyte* b, int pos, float v)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveReadBits
int daveReadBits(daveConnection* dc, int area, int DB, int start, int len, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveReadBytes
int daveReadBytes(daveConnection* dc, int area, int DB, int start, int len, void* buffer)

Read len bytes from the PLC.

daveReadManyBytes
int daveReadManyBytes(daveConnection* dc, int area, int DBnum, int start, int len, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveReadPLCTime
int daveReadPLCTime(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveReadSZL
int daveReadSZL(daveConnection* dc, int ID, int index, void* buf, int buflen)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveResetIBH
int daveResetIBH(daveInterface* di)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSendMessage
int daveSendMessage(daveConnection* dc, PDU* p)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSetBit
int daveSetBit(daveConnection* dc, int area, int DB, int byteAdr, int bitAdr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSetDebug
void daveSetDebug(int nDebug)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSetPLCTime
int daveSetPLCTime(daveConnection* dc, ubyte* ts)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSetPLCTimeToSystime
int daveSetPLCTimeToSystime(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSetTimeout
void daveSetTimeout(daveInterface* di, int tmo)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveStart
int daveStart(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveStop
int daveStop(daveConnection* dc)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveStrerror
char* daveStrerror(int code)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveStringCopy
void daveStringCopy(char* intString, char* extString)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSwapIed_16
short daveSwapIed_16(short ff)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveSwapIed_32
int daveSwapIed_32(int ff)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveToBCD
ubyte daveToBCD(ubyte i)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveToPLCfloat
int daveToPLCfloat(float ff)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveUseResult
int daveUseResult(daveConnection* dc, daveResultSet* rl, int n)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveWriteBits
int daveWriteBits(daveConnection* dc, int area, int DB, int start, int len, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveWriteBytes
int daveWriteBytes(daveConnection* dc, int area, int DB, int start, int len, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveWriteManyBytes
int daveWriteManyBytes(daveConnection* dc, int area, int DB, int start, int len, void* buffer)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
doUpload
int doUpload(daveConnection* dc, int* more, ubyte** buffer, int* len, int uploadID)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
endUpload
int endUpload(daveConnection* dc, int uploadID)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
initUpload
int initUpload(daveConnection* dc, char blockType, int blockNr, int* uploadID)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
toPLCfloat
float toPLCfloat(float ff)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Manifest constants

daveCounter
enum daveCounter;

S7 counters

daveCounter200
enum daveCounter200;
Undocumented in source.
daveDB
enum daveDB;

Data blocks

daveDI
enum daveDI;

Instance data blocks

daveFlags
enum daveFlags;
Undocumented in source.
daveInputs
enum daveInputs;
Undocumented in source.
daveLocal
enum daveLocal;
Undocumented in source.
daveOutputs
enum daveOutputs;
Undocumented in source.
daveP
enum daveP;
Undocumented in source.
daveProtoISOTCP
enum daveProtoISOTCP;

ISO over TCP

daveSpeed1500k
enum daveSpeed1500k;
Undocumented in source.
daveSpeed187k
enum daveSpeed187k;
Undocumented in source.
daveSpeed19k
enum daveSpeed19k;
Undocumented in source.
daveSpeed45k
enum daveSpeed45k;
Undocumented in source.
daveSpeed500k
enum daveSpeed500k;
Undocumented in source.
daveSpeed93k
enum daveSpeed93k;
Undocumented in source.
daveSpeed9k
enum daveSpeed9k;

ProfiBus/MPI speed constants to be used with newInterface

daveTimer
enum daveTimer;

S7 timers

daveTimer200
enum daveTimer200;
Undocumented in source.
daveV
enum daveV;
Undocumented in source.

Structs

PDU
struct PDU
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_daveConnection
struct _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.

_daveInterface
struct _daveInterface

A structure representing the physical connection to a PLC or a network of PLCs (e.g. like MPI). daveInterface stores all those properties that are common to a network of PLCs: - The local address used by your computer. - The speed used in this network. - The protocol type used in this network. - A name which is used when printing out debug messages.

_daveOSserialType
struct _daveOSserialType
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveBlockEntry
struct daveBlockEntry
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveBlockTypeEntry
struct daveBlockTypeEntry
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveResult
struct daveResult
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
daveResultSet
struct daveResultSet
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta