Structure example – Rockwell Automation 1789-L10_L30_L60 SoftLogix 5800 System User Manual User Manual
Page 141
Advertising
Rockwell Automation Publication 1789-UM002J-EN-P - December 2012
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
Advertising