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
).
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.
Содержание SoftLogix 5800
Страница 1: ...SoftLogix 5800 System Catalog Numbers 1789 L10 1789 L30 1789 L60 User Manual...
Страница 4: ...4 Rockwell Automation Publication 1789 UM002K EN P January 2015 Summary of Changes Notes...
Страница 104: ...104 Rockwell Automation Publication 1789 UM002K EN P January 2015 Chapter 5 Configure and Use Simulated I O Notes...
Страница 110: ...110 Rockwell Automation Publication 1789 UM002K EN P January 2015 Chapter 6 Execute External Routines 9 Click OK...
Страница 148: ...148 Rockwell Automation Publication 1789 UM002K EN P January 2015 Chapter 7 Develop External Routines Notes...
Страница 256: ...256 Rockwell Automation Publication 1789 UM002K EN P January 2015 Appendix E System Performance Tuning Guidelines Notes...
Страница 262: ...262 Rockwell Automation Publication 1789 UM002K EN P January 2015 Appendix G SoftLogix 5800 Revision History Notes...
Страница 270: ...270 Rockwell Automation Publication 1789 UM002K EN P January 2015 Index...
Страница 271: ......