Set breakpoints in external routine code, Data type support – Rockwell Automation 1789-L10_L30_L60 SoftLogix 5800 System User Manual User Manual

Page 138

Advertising
background image

138

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

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 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.

Advertising