EasyManua.ls Logo

Allen-Bradley SoftLogix 5800 - Page 8

Allen-Bradley SoftLogix 5800
272 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Related product manuals