Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
141
Develop External Routines
Chapter 7
STRUCTURE Example
C Declaration
struct MyStruct
{
// Structure with four integers
int n1;
int n2;
int n3;
int sum;
};
extern "C" __declspec(dllexport) int uvUDT(EXT_ROUTINE_CONTROL* pERCtrl,
MyStruct* pMS)
XML Declaration
<Routine>
<EntryPoint>uvUDT</EntryPoint>
<Description>This function accepts a pointer to a UDT</Description>
<Signature>int uvUDT(EXT_ROUTINE_CONTROL* pERCtrl,
struct MyStruct* pMS)</Signature>
</Routine>
Software Declaration