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 #138 background imageLoading...
Page #138 background image
138 Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
Chapter 7 Develop External Routines
3. Copy the external_routine.pdb file produced by visual studio to the
SoftLogix 5800\data\slot# folder.
4. Map over the DLL file produced into the Logix Designer application
project for all JXR instructions
5. Download the project to the controller and go offline
6. Remove the controller from the chassis.
7. Go back to Visual Studio and set your break points (see Set Breakpoints in
External Routine Code).
8. Start the Visual Studio Project into Debug Mode by pressing F5.
9. If you watch the SoftLogix Chassis Monitor, you should see a SoftLogix
controller inserted into the chassis.
Now you can step through your code in Visual Studio.
Set Breakpoints in External Routine Code
When you download a project to the controller, this loads (or re-loads) the DLLs
containing your external routines. Once the external routine DLLs are loaded,
you can set breakpoints in any of the external routines.
Data Type Support
The table defines the supported data types.
The Logix Designer application arrays pass type checking if the external routine
parameter is declared void * or uses ‘arrayType arrayName[ ]’ convention. Arrays
are passed by reference. Their element size and number are passed to an external
routine via a control structure that can be checked at run time if desired by the
external routine developer.
Data Type C++ Data Type Passing Method Type Checking
BOOL Bool By reference
By value
Strong
INT Short By reference
By value
Strong
DINT Long
Int
By reference
By value
Strong
SINT Char By reference
By value
Strong
REAL Float By reference
By value
Strong
UDT Structure By reference Weak
The type declaration must have the struct
keyword.
Others Foid* By reference Weak
All nonliterals are accepted.

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