EasyManuals Logo

Allen-Bradley SoftLogix 5800 User Manual

Allen-Bradley SoftLogix 5800
272 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #122 background imageLoading...
Page #122 background image
122 Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
Chapter 7 Develop External Routines
// Set Error bit to zero if successful.
pERCtrl->ctrlWord.ER = 0;
}
else
{
// Some error
// Set Error bit to indicate error occurred
pERCtrl->ctrlWord.ER = 1;
pERCtrl->ctrlWord.ErrorCode = 1; // Set ErrorCode
}
// Set Done bit before exit of this XR.
pERCtrl->ctrlWord.DN = 1;
}
else
{
// Rung not enabled
pERCtrl->ctrlWord.DN = 0;
}
return itemp; // returns 0.0 if error
}
InlineExample.h
// Exported Functions:
extern "C" __declspec(dllimport int SumArray(
EXT_ROUTINE_CONTROL* pERCtrl,
int Val[]);

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley SoftLogix 5800 and is the answer not in the manual?

Allen-Bradley SoftLogix 5800 Specifications

General IconGeneral
BrandAllen-Bradley
ModelSoftLogix 5800
CategoryController
LanguageEnglish

Related product manuals