#include <def.h>
Go to the source code of this file.
Functions | |
BYTE | getODEntry (WORD wIndex, BYTE bSubindex, void XHUGE *XDATA *ppbData, DWORD XDATA *pdwSize) |
BYTE | setVariable (WORD wIndex, BYTE bSubindex, void XHUGE *XDATA *ppvLocation) |
This file contains functions for accessing the object dictionary and variables that are contained by the object dictionary. Accessing the object dictionary contains setting local variables as PDOs and accessing (read/write) all entries of the object dictionary
|
Reads an entry from the object dictionary. // Example usage: BYTE XHUGE *pbData; DWORD Length; DWORD returnValue; returnValue = getODEntry( (WORD)0x100B, (BYTE)0, (void XHUGE* XDATA*)&pbDaten, (DWORD XDATA*)&Length ); if( returnValue != SUCCESSFUL ) { // error handling }
|
|
Defines a variable as a PDO. example: you have a temperature capture system connected with your system, so the temperatur could be a process variable (PDO = Process Data Object), which has to be sent to foreign nodes. In this case, you should set the temperature variable by this function
// Example usage: BYTE bTemp;\n BYTE* pBTemp;\n BYTE returnValue; pBTemp = &bTemp; returnValue = setVariable( (WORD)0x6000, (BYTE)1, &pBTemp ); if( returnValue != SUCCESSFUL ) { // error }
|