Array example – Rockwell Automation 1789-L10_L30_L60 SoftLogix 5800 System User Manual User Manual

Page 139

Advertising
background image

Rockwell Automation Publication 1789-UM002J-EN-P - December 2012

139

Develop External Routines

Chapter 7

ARRAY Example

C Declaration

extern "C" __declspec(dllexport) float SumArray(EXT_ROUTINE_CONTROL* pERCtrl,

float Val[])

XML Declaration

<Routine>

<EntryPoint>SumArray</EntryPoint>
<Description>Sum floating point array elements</Description>
<Signature>float SumArray(EXT_ROUTINE_CONTROL* pERCtrl,

float Val[])</Signature>

</Routine>

Software Declaration

Advertising