142
Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
Chapter 7
Develop External Routines
STRING Example
C Declaration
struct RA_String
{
unsigned long Len;
char Data[82];
};
extern "C" __declspec(dllexport) void StringFunc(EXT_ROUTINE_CONTROL* pERCtrl,
RA_String* pInRA_String, RA_String* pOutRA_String)
XML Declaration
<Routine>
<EntryPoint>StringFunc</EntryPoint>
<Description>This function accepts two strings. </Description>
<Signature>void StringFunc(EXT_ROUTINE_CONTROL* pERCtrl,
struct RA_String* pIn, struct RA_String* pOut)</Signature>
</Routine>
Software Declaration