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 #8 background imageLoading...
Page #8 background image
8 Rockwell Automation Publication 1789-UM002K-EN-P - January 2015
Table of Contents
Set Up the Debug Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Start a Debug Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Set Breakpoints in External Routine Code . . . . . . . . . . . . . . . . . . . . . 138
Data Type Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
ARRAY Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
INTEGER Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
STRUCTURE Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
STRING Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Packing in Structures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Parameter Type Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Return Parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Export Functions by Using C++ Export Style . . . . . . . . . . . . . . . . . . . . . 145
InlineExample.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
InlineExample.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Run dumpbin.exe. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Edit XML Resource. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Other Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Pass Tags by Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
External Routine DLL that Uses Other DLLs. . . . . . . . . . . . . . . . . . 147
Chapter 8
Program Windows Events to Monitor
and Change Controller Execution
Use Outbound Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Programming Example: Outbound Events . . . . . . . . . . . . . . . . . . . . . 150
Configure Windows Events to Launch Tasks
within the SoftLogix Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Configure a Windows-event Task in the Controller . . . . . . . . . . . . 153
Trigger a Controller Task from a Windows Application . . . . . . . . 156
Programming Example: Windows Event. . . . . . . . . . . . . . . . . . . . . . . 156
Programmatically Saving the Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Programming Example: Programmatic Save of Controller. . . . . . . 158
Appendix A
Communicate with Devices on a
DeviceNet Network
Configure Your System for a DeviceNet Network. . . . . . . . . . . . . . . . . . 162
Step 1: Install the Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Step 2: Create the Communication Card
in the SoftLogix Chassis Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Step 3: Install the Communication Driver . . . . . . . . . . . . . . . . . . . . . 166
Step 4: Configure the Communication Card
as Part of the Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Step 5: Download the Project to the Controller . . . . . . . . . . . . . . . . 171
Step 6: Define the Scanlist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Perform DeviceNet Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Step 1: Start the Test Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Step 2: Configure the Port. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Step 3: Create a View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Step 4: Read Inputs and Write Outputs . . . . . . . . . . . . . . . . . . . . . . . 186

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