Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
115
Chapter
7
Develop External Routines
This chapter describes how to use Microsoft Visual Studio to create external
routines. Instructions include how to use ‘Test Mode’ in detail, so that you can
test your external routine prior to running the routine with the controller’s
outputs enabled.
A SoftLogix 5800 controller executes an external routine as specified by
a JXR instruction.
Considerations For External
Routines
The external routines feature is an extremely flexible and powerful capability of
the SoftLogix 5800 product. The routines can be written in C or C++ when
using any commercial off-the-shelf development tool, such as Microsoft Visual
Studio, that can generate a Windows compatible DLL (dynamic link library).
The SoftLogix controller at runtime performs a ‘LoadLibrary’ to invoke the
external routine DLL's code from within the memory and process space of the
SoftLogix 5800 controller.
Because the user's external routine DLL runs in the memory and process space of
the SoftLogix 5800 controller, it is possible that incorrectly written user code can
errantly overwrite memory locations that are being used by the controller. Care
must also be taken when creating threads and assigning priorities, because this can
also impact the operation of the SoftLogix 5800 controller.
Topic
Page
Considerations For External Routines
How the SoftLogix Controller Executes External Routines
Create Synchronous, Single-threaded External Routines
Add Version Information to an External Routine DLL
Build and Download External Routines
Update an Existing External Routine
Create Multi-threaded External Routines
Содержание 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: ......