LogicPro
User’s Guide
Watlow Anafaz
314 Westridge Drive
Watsonville, CA 95076
Phone: (831) 724-3800
Fax: (831) 724-0320
Part No. 28002-00. Revision 3.00
September 2000
e
Copyright © 2000
Watlow Anafaze
Information in this manual is subject to change without notice. No part of this publication may be
reproduced, stored in a retrieval system, or transmitted in any form without written permission from
Watlow Anafaze.
Anafaze developed package includes licensed proprietary material of Intellution, Inc.
© Intellution, Inc. 1996.
Warranty
Watlow Anafaze, Incorporated warrants that the products furnished under this Agreement will be
free from defects in material and workmanship for a period of three years from the date of shipment. The Customer shall provide notice of any defect to Watlow Anafaze, Incorporated within one
week after the Customer's discovery of such defect. The sole obligation and liability of Watlow
Anafaze, Incorporated under this warranty shall be to repair or replace, at its option and without
cost to the Customer, the defective product or part.
Upon request by Watlow Anafaze, Incorporated, the product or part claimed to be defective shall
immediately be returned at the Customer's expense to Watlow Anafaze, Incorporated. Replaced or
repaired products or parts will be shipped to the Customer at the expense of Watlow Anafaze, Incorporated.
There shall be no warranty or liability for any products or parts that have been subject to misuse,
accident, negligence, failure of electric power or modification by the Customer without the written
approval of Watlow Anafaze, Incorporated. Final determination of warranty eligibility shall be
made by Watlow Anafaze, Incorporated. If a warranty claim is considered invalid for any reason,
the Customer will be charged for services performed and expenses incurred by Watlow Anafaze,
Incorporated in handling and shipping the returned unit.
If replacement parts are supplied or repairs made during the original warranty period, the warranty
period for the replacement or repaired part shall terminate with the termination of the warranty
period of the original product or part.
The foregoing warranty constitutes the sole liability of Watlow Anafaze, Incorporated and the Customer's sole remedy with respect to the products. It is in lieu of all other warranties, liabilities, and
remedies. Except as thus provided, Watlow Anafaze, Inc. disclaims all warranties, express or
implied, including any warranty of merchantability or fitness for a particular purpose.
Please Note
: External safety devices must be used with this equipment.
Table of Contents
List of Figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XI
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .XV
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
This Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Where Do I Look?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Conventions Used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Safety symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 LogicPro Workplace. . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Menu Bar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
View Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Tools Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
UDFB (User Defined Function Block) Menu . . . . . . . . . . . . . . . . . . 12
Execution Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Simulation Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Options Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Windows Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Help Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Status Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Standard Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Language Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Using Standard Windows Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
SFC Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Ladder Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Standard Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Doc.# 28002-00 Rev 3.00 Watlow Anafaze III
Table of Contents LogicPro User’s Guide
3 Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Creating a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Opening a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Copying Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Backing Up a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Closing a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Deleting a Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Creating a Resource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Editing a Resource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Copying Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Resource Backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Deleting a Resource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Opening a Resource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5 Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Creating a New Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Opening a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Saving a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Closing a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Copying Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Saving a Program with a New Name (Save As) . . . . . . . . . . . . . . . . . . . .45
Backing Up a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Deleting a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
Naming Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Retentive Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Project Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Adding a Project Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Editing a Project Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Deleting a Project Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Cloning a Project Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Resource Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Adding a Resource/Program Variable . . . . . . . . . . . . . . . . . . . . . . 56
Editing a Resource/Program Variable . . . . . . . . . . . . . . . . . . . . . . 59
Deleting Resource/Program Variables . . . . . . . . . . . . . . . . . . . . . . 60
Cloning a Resource or Program Variable . . . . . . . . . . . . . . . . . . . . 61
Program Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Finding and Replacing a Variable In a Program . . . . . . . . . . . . . . . . . . . . 62
Using the Find Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Using the Replace Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Import/Export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Importing an ASCII file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Verifying the Import Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Creating or Editing an ASCII file . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Exporting an ASCII file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Verifying the Export Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
IV Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Table of Contents
7 Sequential Function Charts. . . . . . . . . . . . . . . . . . . . 71
About SFC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Using SFCs in LogicPro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
SFC Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Origin Step . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Step . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Simultaneous Transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Loop Back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Cross Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
8 Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Ladder Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Selector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Normally Open Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Normally Closed Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Off To On Transitional Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
On To Off Transitional Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Normal Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Latched Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Unlatched Coil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Cross Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Viewing the Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Creating and Editing Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Inserting Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Inserting Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Inserting Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Connecting Function Blocks to Other Ladder Elements . . . . . . . . 90
Inserting Parallel (Or) Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Inserting Multiple Output Coil branches . . . . . . . . . . . . . . . . . . . . . 96
Inserting Elements From the Left Power Rail . . . . . . . . . . . . . . . . . 97
Cutting Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Copying Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Pasting Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Deleting Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Moving Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Assigning Labels to Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Assigning Variable Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Naming and Assigning Variables to Function Blocks . . . . . . . . . . . . . . . 102
Adding Comments to Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . 104
Hiding Rung Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Doc.# 28002-00 Rev 3.00 Watlow Anafaze V
Table of Contents LogicPro User’s Guide
9 Function Block Diagrams. . . . . . . . . . . . . . . . . . . . .105
FBD Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Straight Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106
Inverted Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Cross Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Creating an FBD Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Inserting Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Inserting Variable Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Connecting Inputs and Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Assigning Variables to Variable Elements . . . . . . . . . . . . . . . . . . 110
Assigning Names and Execution Orders to
Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Cutting, Copying, Pasting, and Deleting . . . . . . . . . . . . . . . . . . . . 112
10 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . .115
Standard Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Timing and Counting Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Counter Up (CTU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Counter Down (CTD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Counter Up Down (CTUD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Timer Pulse (TP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Timer On-Delay (TON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Timer Off-Delay (TOF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Greater Than (GT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Less Than (LT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Equal To (EQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Add (ADD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Subtract (SUB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Multiply (MULT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Divide (DIV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Data Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
First In - First Out (FIFO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Last In - First Out (LIFO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Bit Shift (SL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Scan Time Counter (SCAN) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Move (MOVE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Scale (SCL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Real Number Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Real Greater Than (RGT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Real Less Than (RLT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Real Equal To (REQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Real Add (RADD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Real Subtract (RSUB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Real Multiply (RMUL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Real Divide (RDIV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Real Move (RMOV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Integer To Real (ITOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
VI Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Table of Contents
Real to Integer (RTOI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Square Root (SRT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Logical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Logical And (AND) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Logical Or (OR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Vendor Provided Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Comparison (CMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Calculation (CALC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Jump (JMP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
InterLock (IL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
InterLock-Clear (ILC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Rotation (RROT/LROT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Shift (RSFT/LSFT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Negation (NEG) 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
11 User Defined Function Blocks. . . . . . . . . . . . . . . . . 167
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Defining a New or Editing an Existing UDFB . . . . . . . . . . . . . . . . . . . . . 168
In’s, Out's and Internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
UDFB Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Compiling and Building a Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
UDFB in Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Working with UDFB Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Editing UDFB Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Opening UDFB Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Closing UDFB Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
Saving UDFB Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Deleting UDFBs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
UDFB Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
12 Input/Output Drivers. . . . . . . . . . . . . . . . . . . . . . . . . 185
Variable Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Input/Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
IO Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
PPC-2000 IO Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
IO Driver Choice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
IO Physical Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Using the IO Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
CPC400 IO Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
IO Driver Choice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
IO Physical Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Using the IO Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
13 Compiler Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Setting up the Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Doc.# 28002-00 Rev 3.00 Watlow Anafaze VII
Table of Contents LogicPro User’s Guide
14 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .225
Building a Program for Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Using the Simulation Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
Simulation Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
Timer Ticks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
Increment Simulation Timer Ticks . . . . . . . . . . . . . . . . . . . . . . . . . 230
Scan Simulation Logic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Number of Scan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Resetting the Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Change Simulation Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Change Simulation Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
Viewing Individual Steps and Actions within a Simulation . . . . . . . . . . . 233
Closing the Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
15 Downloading and Monitoring. . . . . . . . . . . . . . . . . .235
Executable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
Downloading to a controller through an RS-232 Port . . . . . . . . . . 235
Monitoring a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Monitoring Sequential Function Charts . . . . . . . . . . . . . . . . . . . . 239
Monitoring Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Monitoring Function Block Diagrams . . . . . . . . . . . . . . . . . . . . . . 240
Forcing I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
Variable Watch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Configuring Variable Watch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Selecting and Viewing Variables . . . . . . . . . . . . . . . . . . . . . . . . .242
Changing the Value of a Variable . . . . . . . . . . . . . . . . . . . . . . . . . 243
Forcing Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
Watch Grid View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
On-Line Constant Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
16 Cross-Referencing . . . . . . . . . . . . . . . . . . . . . . . . . .249
Using Cross-Referencing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
SFC On-line Cross-Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Ladder On-line Cross-Reference . . . . . . . . . . . . . . . . . . . . . . . . . 250
Function Block Diagram On-line Cross-Reference . . . . . . . . . . . . 251
Cross-Reference Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
Output Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Report Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Variables Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255
Ladder Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
SFC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
FBD Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
VIII Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Table of Contents
17 Dynamic Data Exchange . . . . . . . . . . . . . . . . . . . . . 259
How to Access a Remote Item . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Starting the LogicPro DDE Application . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Creating the Application FPR File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Creating A New Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Open a Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Close a Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Modify a Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Delete a Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Item Point Naming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Finding The Available Item Names . . . . . . . . . . . . . . . . . . . . . . . 264
Excel Spreadsheet DDE Sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Setting Up Excel to Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Doc.# 28002-00 Rev 3.00 Watlow Anafaze IX
Table of Contents LogicPro User’s Guide
X Watlow Anafaze Doc.# 28002-00 Rev 3.00
List of Figures
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 LogicPro Workplace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 2.1—The LogicPro Workplace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 2.2—Two Views of the LogicPro Standard toolbar, showing
various active buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3 Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 3.1—Projects Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 3.2—New Project Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 3.3—Open Project Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 3.4—Rebuild Project List Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 3.5—Copy Project Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 3.6—Delete Project Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 4.1—New Resource Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 4.2—PPC-2000 Attributes Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 4.3—Edit Resource Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 4.4—Copy Resource Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 4.5—Delete Resource Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 4.6—Open Resource Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5 Programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 5.1—New Program Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 5.2—Open Program Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 5.3—Verify Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 5.4—Copy Program Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 5.5—Delete Program Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 6.1—Project Variables Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 6.2—Add Project Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 6.3—Edit Project Variable Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Figure 6.4—Resource Variable Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 6.5—Program Variable Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Doc.# 28002-00 Rev 3.00 Watlow Anafaze XI
List of Figures LogicPro User’s Guide
Figure 6.6—Add Resource Variable Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
Figure 6.7—Program Variables Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62
Figure 6.8—Find Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
7 Sequential Function Charts . . . . . . . . . . . . . . . . . . . . . . . . . . .71
Figure 7.1—Simultaneous Transition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
Figure 7.2—Parallel and / or Single Transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
Figure 7.3—Simultaneous Transition Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75
8 Ladder Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
Figure 8.1—Element without Handles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
Figure 8.2—Selected Element with Handles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83
Figure 8.3—Rungs with Multiple Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88
Figure 8.4—Function Block Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89
Figure 8.5—Rung Before Adding a Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Figure 8.6—Rung With a Function Block Added . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90
Figure 8.7—Ladder Diagram Before Elements Are Added to Function Block. . . . . . . .91
Figure 8.8—Ladder Diagram After Elements Are Added to Function Block . . . . . . . . .91
Figure 8.9—Inserting an Input Element on a Function Block . . . . . . . . . . . . . . . . . . . .92
Figure 8.10—Element Inserted Between Left Power Rail and Second Input Bit. . . . . .92
Figure 8.11—Connecting an Element to a Function Block’s Output . . . . . . . . . . . . . . .93
Figure 8.12—Function Block After Connecting Output Element . . . . . . . . . . . . . . . . . .93
Figure 8.13—Adding the Parallel Branch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
Figure 8.14—After Adding the Parallel Branch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .94
Figure 8.15—Adding Another Branch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
Figure 8.16—Branch Added . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .95
Figure 8.17—Creating a New Parallel Branch from the Left Power Rail . . . . . . . . . . .96
Figure 8.18—After Creating a New Parallel Branch from the Left Power Rail. . . . . . . .96
Figure 8.19—Before Creating Multiple Output Coil Branches . . . . . . . . . . . . . . . . . . .97
Figure 8.20—After Creating Multiple Output Coil Branches . . . . . . . . . . . . . . . . . . . . 97
Figure 8.21—Multiple Output Coil Branches
after the Top Coil is Removed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97
Figure 8.22—Adding an Extension from the Left Power Rail. . . . . . . . . . . . . . . . . . . . 98
Figure 8.23—After Adding an Extension from the Left Power Rail . . . . . . . . . . . . . . . .98
Figure 8.24—Variables Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101
Figure 8.25—Assign Function Block Symbolic Input/Output Dialog Box. . . . . . . . . . .103
Figure 8.26—Symbolic Name on Function Block in a Ladder Diagram Program . . . .103
Figure 8.27—Rung Comment Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104
9 Function Block Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . .105
Figure 9.1—Function Block Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108
Figure 9.2—Placed Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109
Figure 9.3—Symbolic Name on Function Block in a FBD program . . . . . . . . . . . . . .110
Figure 9.4—Assign Name to Function Block Dialog Box . . . . . . . . . . . . . . . . . . . . . .111
Figure 9.5—Execution Order in FBD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112
Figure 9.6—Function Blocks in FBD with Handles . . . . . . . . . . . . . . . . . . . . . . . . . . .113
Figure 9.7—Pasted Function Block in FBD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
Figure 9.8—Function Block Before Deletion, With Handles . . . . . . . . . . . . . . . . . . . .114
Figure 9.9—Function Block After Deletion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
XII Watlow Anafaze Doc.#28002-00 Rev 3.00
LogicPro User’s Guide List of Figures
10 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Figure 10.1—Counter Up Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Figure 10.2—Assign Function Block Symbolic Input/Output Dialog Box. . . . . . . . . . . 117
Figure 10.3—Counter Down Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Figure 10.4—Counter Up Down Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Figure 10.5—Timer Pulse Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Figure 10.6—Relationship between the Input and Output of TP Function Block . . . .123
Figure 10.7—Timer On-Delay Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Figure 10.8—Relationship Between Inputs and Outputs of TON Function Block . . . .124
Figure 10.9—Timer Off-Delay Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Figure 10.10—Relationship Between Inputs and Outputs of TOF Function Block . . . 126
Figure 10.11—Greater Than Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Figure 10.12—Less Than Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128
Figure 10.13—Equal To Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Figure 10.14—ADD Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Figure 10.15—Subtract Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Figure 10.16—Multiply Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Figure 10.17—Divide Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Figure 10.18—First In - First Out Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Figure 10.19—Last In - First Out Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Figure 10.20—Bit Shift Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Figure 10.21—Example of How Bits Shift Through the SL Function Block. . . . . . . . . 141
Figure 10.22—Scan Time Counter Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Figure 10.23— Move Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Figure 10.24— Scale Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Figure 10.25—ROUT as a function of INP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Figure 10.26— Real Greater Than Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Figure 10.27— Real Less Than Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Figure 10.28— Real Equal To Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Figure 10.29— Real Add Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Figure 10.30— Real Subtract Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Figure 10.31— Real Multiply Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Figure 10.32— Real Divide Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Figure 10.33— Real Move Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Figure 10.34— Integer to Real Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Figure 10.35— Real to Integer Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Figure 10.36— Square Root Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Figure 10.37— The Logical AND Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Figure 10.38— The Logical OR Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Figure 10.39—Vendor Provided Function Block diagram . . . . . . . . . . . . . . . . . . . . . . 158
Figure 10.40— The Comparison Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Figure 10.41— The Calculation Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
Figure 10.42— The Jump Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Figure 10.43— The InterLock Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Figure 10.44— The InterLock Clear Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Figure 10.45— The Right and Left Rotation Function Blocks . . . . . . . . . . . . . . . . . . .163
Figure 10.46— The Right and Left Shift Function Blocks . . . . . . . . . . . . . . . . . . . . . . 164
Figure 10.47— The Negation Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
11 User Defined Function Blocks. . . . . . . . . . . . . . . . . . . . . . . . 167
Figure 11.1—New UDFB Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Figure 11.2—Add Symbol Definition Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Doc.# 28002-00 Rev 3.00 Watlow Anafaze XIII
List of Figures LogicPro User’s Guide
Figure 11.3—Edit Symbol Definition Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . .171
Figure 11.4—Build UDFB Library for Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174
Figure 11.5—Build UDFB Library for Simulation Dialog Box. . . . . . . . . . . . . . . . . . . .176
Figure 11.6—Open User Defined Function Block Dialog Box . . . . . . . . . . . . . . . . . . .177
Figure 11.7—Delete User Defined Function Block Dialog Box . . . . . . . . . . . . . . . . . .178
Figure 11.8—ADD1 Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180
12 Input/Output Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185
13 Compiler Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .221
Figure 13.1—Simulation Compiler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .221
Figure 13.2—Compiler Paths. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
Figure 13.3—Select Borland Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222
14 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .225
Figure 14.1—Compiler Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .227
Figure 14.2—Borland C++ Compiler DOS window . . . . . . . . . . . . . . . . . . . . . . . . . . .227
Figure 14.3—Simulation Setup Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .229
Figure 14.4—Change Variables Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231
Figure 14.5—On-Line Function Block Constant Change. . . . . . . . . . . . . . . . . . . . . . .232
15 Downloading and Monitoring. . . . . . . . . . . . . . . . . . . . . . . . .235
Figure 15.1—Downloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237
Figure 15.2—LogicPro Monitoring Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238
Figure 15.3—Active Step in an SFC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239
Figure 15.4—Monitoring Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240
Figure 15.5—Force - Clear IO Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .241
Figure 15.6—The Watch Grid in the Variable Watch Window. . . . . . . . . . . . . . . . . . .245
Figure 15.7—On-Line Function Block Variables Change Dialog Box . . . . . . . . . . . . .247
16 Cross-Referencing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249
Figure 16.1—The Cross-Reference Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250
Figure 16.2—Print Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253
Figure 16.3—Report Setup Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254
Figure 16.4—Variable Setup Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255
Figure 16.5—Ladder Setup Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256
Figure 16.6—SFC Setup Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256
Figure 16.7—FBD Setup Dialog Box. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .257
17 Dynamic Data Exchange. . . . . . . . . . . . . . . . . . . . . . . . . . . . .259
Figure 17.1—Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265
Figure 17.2—Spreadsheet Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266
XIV Watlow Anafaze Doc.#28002-00 Rev 3.00
List of Tables
1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 1.1—Chapter Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Table 1.2—Conventions Used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 LogicPro Workplace. . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Table 2.1—The File Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Table 2.2—The Edit Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 2.3—The View Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 2.4—The Tools Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 2.5—The UDFB Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 2.6—The Execution Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 2.7—The Simulation Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 2.8—The Options Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 2.9—The Windows Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 2.10—Levels of Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 2.11—Help Menu Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 2.12—Toolbar Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 2.13—The SFC Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 2.14—The Ladder Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 2.15—The FBD Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3 Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5 Programs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 6.1—File Format Specification of Import/Export . . . . . . . . . . . . . . . 68
Table 6.2—Selected Explanations of the Example Import/Export File . . . 69
7 Sequential Function Charts. . . . . . . . . . . . . . . . . . . . 71
Table 7.1—The SFC Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Table 7.2—Transition Condition Expressions . . . . . . . . . . . . . . . . . . . . . . 76
Doc.# 28002-00 Rev 3.00 Watlow Anafaze XV
List of Tables LogicPro User’s Guide
8 Ladder Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . .81
Table 8.1—Ladder Diagrams Toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
9 Function Block Diagrams. . . . . . . . . . . . . . . . . . . . .105
Table 9.1—FBD Toolbar Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
10 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . .115
Table 10.1—Symbol Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
11 User Defined Function Blocks . . . . . . . . . . . . . . . . .167
12 Input/Output Drivers . . . . . . . . . . . . . . . . . . . . . . . . .185
Table 12.1—Variable Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Table 12.2—Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Table 12.3—
Table 12.4—Data Accessed by the IO Drivers . . . . . . . . . . . . . . . . . . . . 188
Table 12.5—Categories of IO Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
Table 12.6—Address Syntax for Module Specific Drivers. . . . . . . . . . . . 189
Table 12.7—I/O Type Digit in IO Physical Address. . . . . . . . . . . . . . . . . 190
Table 12.8—Addresses Used with Parameter Specific IO Drives. . . . . .190
Table 12.9—Address Syntax for Database Driver. . . . . . . . . . . . . . . . . 191
Table 12.10—Data Accessed by the IO Drivers . . . . . . . . . . . . . . . . . . . 208
Table 12.11—Categories of IO Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Table 12.12—Addresses Used for Hardware Specific Drivers . . . . . . . .209
Table 12.13—Addresses Used with Parameter Specific IO Drivers . . . . 209
Table 12.14—Address Syntax for Database Driver. . . . . . . . . . . . . . . . 210
IO Sizes Used with IO Drivers . . . . . . . . . . . . . . . . . . . . . . 187
13 Compiler Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . .221
14 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .225
Table 14.1—Simulation Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
15 Downloading and Monitoring. . . . . . . . . . . . . . . . . .235
Table 15.1—The Columns in the Watch Grid . . . . . . . . . . . . . . . . . . . . . 245
16 Cross-Referencing . . . . . . . . . . . . . . . . . . . . . . . . . .249
17 Dynamic Data Exchange. . . . . . . . . . . . . . . . . . . . . . 259
XVI Watlow Anafaze Doc.# 28002-00 Rev 3.00
1
Introduction
This Manual
Where Do I Look?
Welcome to
programming environment that allows you to create and
debug programs, and manage real-time distributed or
embedded control systems.
graphically write a “C” program without knowing the
language.
LogicPro
programming languages like
These languages have evolved into proven, effective solutions
for automation and control projects.
If it relates to
these covers with few exceptions.
Take some time familiarizing yourself with the layout and
design of this manual. Refer to
complete listing of the section numbers and titles along with a
general overview of what you can expect to find in each
chapter.
LogicPro
use the familiar conventions of typical graphical
LogicPro
, a Microsoft Windows based graphical
LogicPro
Grafcet, Ladder Logic,
, you should be able to find it between
allows you to
Table 1.1 on page 2
etc.
for a
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 1
Chapter 1: Introduction LogicPro User’s Guide
Table 1.1 Chapter Descriptions
Chapter Title Description
1 Introduction
2
3 Projects
4 Resources
5 Programs
6 Variables
7
The LogicPro
Workplace
Sequential
Function Charts
Introduction and general
information.
The LogicPro Workplace
and screen layout.
Creating, using, and
changing LogicPro
Projects.
Creating, using, and
changing LogicPro
Resources.
Creating, using, and
changing LogicPro Programs within a resource.
Creating, using, and
changing LogicPro Variables within projects,
resources, and programs.
Explanation of the tools
available for programming in the SFC (Sequential Function Chart)
language in LogicPro .
8 Ladder Diagrams
9
10 Function Blocks
Function Block
Diagrams
Explanation of the tools
available for programming in the Ladder Diagram (LD) language in
LogicPro .
Explanation of the tools
available for programming in the FBD (Function
Block Diagram) language
in LogicPro .
Information on Standard
IEC 1131-3 and Vendor
provided function blocks:
specific information on
many of the most common function blocks, how
to use function blocks in
your programs, and where
to look for more information.
2 Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Chapter 1: Introduction
Chapter Title Description
11
12 I/O Drivers
13 Compilers
14 Simulation
15
16 Cross-Referencing
17
User Defined
Function Blocks
Downloading and
Monitoring
Dynamic Data
Exchange
Information about creating and using User
Defined Function Blocks.
Information on input/output drivers, examples,
and where to look for
more information.
Information about using
the Borland C++ compiler.
Information on the simulator function of LogicPro ,
specifically, how to use it.
How to download a program to your hardware
and monitor it once it’s
been downloaded.
How to use the CrossReferencing functions of
LogicPro .
Using DDE for accessing
and editing LogicPro data.
Conventions Used
Definitions of the terms,
Glossary
Index
acronyms, and expressions used in this manual.
Where to find the information you’re looking for.
To help improve the readability of this manual we use
different fonts and styles to identify specific actions you will
initiate in the program.
Table 1.2 on page 4 lists the conventions used as well as a
brief description of each.
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 3
Chapter 1: Introduction LogicPro User’s Guide
Table 1.2 Conventions Used
Convention Explanation
Italics
Capitalization
Bold Sans Serif
[Bold San Serif in
Square Brackets]
<Bold serif text in
Angular Brackets>
ALL CAPS,
SANS SERIF,
MONOSPACE
Unbolded,
serif,
monospace
Unbolded Sans Serif
Indicates references to Chapters,
sections, Figures and Tables .
Indicates the proper name of an element of LogicPro .
Indicates LogicPro menu headings
or options.
Indicates the name of a button or
tool on the screen.
Indicates a specific key or combination of keys on your keyboard.
Indicates text as it appears in function blocks in the program editor.
Indicates a filename or code as it
appears in the User-Defined Function Block programming windows , or
text as it appears in ASCII files.
Sample cross-reference print out.
Safety symbols
∫
WARNING!
ç
CAUTION!
NOTE!
These symbols are used throughout this manual:
Indicates a potentially hazardous situation which,
if not avoided, could result in death or serious injury.
Indicates a potentially hazardous situation which,
if not avoided, could result in minor or moderate
injury or property damage.
Indicates pertinent information or an item that
may be useful to document or label for later reference.
4 Watlow Anafaze Doc.# 28002-00 Rev 3.00
2
LogicPro Workplace
LogicPro
Interface (GUI) as its operating environment. By using
standard Windows, the
easily accomplish development tasks in an environment that
you are already familiar and comfortable with.
To successfully use
Windows. The following sections provide a description of
LogicPro’s
the more common Windows features you will use. For
additional information, please refer to your Microsoft
Windows documentation.
The Workplace is made up of several different Screen
Elements.
workspace and identifies the following elements:
• Menu Bar
• Status Bar
• Standard Toolbar
• Language Toolbars
uses the Microsoft Windows’ Graphical User
LogicPro
LogicPro
screen elements, as well as a reference to some of
Figure 2.1 on page 6
environment allows you to
, you should know how to use
illustrates the
LogicPro
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 5
Chapter 2: LogicPro Workplace LogicPro User’s Guide
Menu
Bar
Standard
Toolbar
Status
Bar
Language
Toolbar
Menu Bar
Figure 2.1 The LogicPro Workplace
There are two ways to choose an item from a menu:
• With the mouse, click a menu then click the item.
– or –
• Press the
menu’s name, and press the underlined letter in the
item’s name.
There are ten (10) menus available:
• File
• Edit
• View
• Tools
• UDFB
• Execution
• Simulation
• Options
<ALT>
key, press the underlined letter in the
6 Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Chapter 2: LogicPro Workplace
• Windows
• Help
LogicPro enables the appropriate menus. Each of these menus
allows control of a specific part of LogicPro .
File Menu
This menu provides easy access to most tools you will need
for creating, opening and saving files and printing reports.
Additionally, tools for Importing and Exporting variables are
available. See Table 2.1 for a detailed listing of menu items.
Table 2.1 The File Menu
Menu Option Description
Creates a new file type from the
menu:
Project…
New
Open
Close
Delete
Save
Save As…
Resource…
Program…
User Defined Function Block…
Opens a file type from the menu:
Project…
Resource…
Program…
User Defined Function Block…
Closes the chosen type of item:
Project…
Resource…
Program…
User Defined Function Block…
Simulation
Monitoring
Deletes the chosen type of item:
Project…
Resource…
Program…
User Defined Function Block…
Saves the program in the active (top)
window.
Saves the information in the active
window under a different file name.
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 7
Chapter 2: LogicPro Workplace LogicPro User’s Guide
Menu Option Description
Creates a backup copy of the chosen
type of item:
Backup
Import Variable
Export Variable
Report Setup…
Print Setup…
Print…
Exit
Project…
Resource…
Program…
Reads data from an ASCII, commadelimited file. Allows you to create
and edit resource and program variables externally to LogicPro.
Writes data to an ASCII, commadelimited file. Allows you to edit
resource and program variables
external to LogicPro .
Allows you to customize your documentation by specifying what information appears in the printout.
Customize user defined print options:
Which printer to print on.
Size and orientation of the paper, and
how to print (single-sided or doublesided if your printer can print doublesided).
Printer resolution, intensity, and
graphics mode.
The kinds of fonts to use while printing.
Things like print quality and memory
tracking for the printer.
Prints selected portion of an open
project or program.
Closes all open projects and shuts
down LogicPro .
Edit Menu
This menu provides useful tools for managing changes for the
data in the active window. See Table 2.2 on page 9 for a
detailed listing of menu items.
8 Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Chapter 2: LogicPro Workplace
Table 2.2 The Edit Menu
Menu Option
Undo
Cut
<Ctrl X>
Copy
<Ctrl C>
Paste
<Ctrl V>
Find…
Replace…
Description
Note: This option is only available while
editing UDFB C/C++ source (*.c) and
header (*.h) files.
Also, note that the Undo buffer is only
one level deep: it only contains the last
keystroke . Selecting Undo twice will perform a ‘double-undo’, or redo.
Restores what you are working on to the
way it was before your very last action.
For example if you overwrite a line of
code, this command will remove your
edits and restore the line as it was
before you began.
Removes the selected objects and
places them in a temporary file. This
material remains in the temporary file
until overwritten by subsequent Cut or
Copy actions, or until you close
LogicPro .
The Cut feature works the same way
when working with UDFBs, except that
the data is stored on the Windows Clipboard, not the LogicPro temporary file.
Creates a duplicate of the selected
object without removing it (see note
below), and places it in a temporary file.
This material remains in the temporary
file until overwritten by subsequent Cut
or Copy actions, or until you close
LogicPro.
The Copy feature works the same way
when working with UDFBs, except that
the data is stored on the Windows Clipboard, not the LogicPro temporary file.
Places the content of the temporary file
into the active window at the insertion
point. If you are pasting in a UBFB, it is
the content of the clipboard that is
placed in the active window.
Pasting does not clear the temporary
file. The last item placed into it stays
there until subsequent Copy or Cut
actions, or until you close LogicPro.
Searches the active window for a specific variable.
Searches the active window for every
instance of a specific value and replaces
it with a new, user-defined value.
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 9
Chapter 2: LogicPro Workplace LogicPro User’s Guide
Menu Option
Clear
Del
Variables
Attributes
Description
Deletes the selected area from the
active window. This operation cannot be
undone.
Opens a dialog box and allows you to
manage the different kinds of variables.
Select the variable type from the following list:
Project…
Resource…
Program…
Changes the attributes of an object
within an existing project.
Modifies the different configurations
dependent on your selection from the
following submenu:
Resource…
Driver…
Program…
Action…
User Defined Function Block…
NOTE! Changes to variables within LogicPro (such as
Add, Edit, or Delete ) take place immediately and
do not depend on a Program save.
Cut, Copy and Paste functions are available primarily with text and cannot be used with most
graphical program objects. To test if an object can
be cut, copied or pasted, select it then select the
Edit menu item to see if the Cut and Copy selections are available.
You can only paste cut or copied elements or text
into a window of the same type. For example, if
you copy a rung from a ladder diagram you can
only paste it into a ladder diagram. LogicPro disables the paste function if you are in a different
language type window.
10 Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Chapter 2: LogicPro Workplace
View Menu
This menu allows you to customize the appearance of your
workspace. See Table 2.3 for a detailed listing of each menu
item. An enabled selection is easily identified by a checkmark
to the left of a menu item.
Table 2.3 The View Menu
Menu Option Description
Changes the magnification for the
active window from 10% - 200%. This
option allows you to view as little or as
much of the active window as you
Zoom…
Repaint
Grid
Comments
Monitor Program
Monitor On/Off
Configuration
desire.
Zoom settings are only kept while the
window is open. The next time you
open the window the zoom setting
reverts to the default 100% setting.
Redraws the active window and displays the latest changes recorded in
the system.
Superimposes a grid pattern over the
workspace as an aid to placing items.
Allows you to toggle ladder rung comments on and off in the active window.
Allows you to see the real-time status
of the downloaded PLC program.
Allows you to selectively suspend
real-time monitoring messages to a
PLC program on a window by windo w
basis.
Displays a partial IEC 1131-3 configuration descriptor.
Tools Menu
This menu contains the tools associated with your choice of
programming language. Choose your programming language
in the first menu item. The other available options are driven
by this choice. See Table 2.4 on page 12 for a detailed listing
of the languages and their options.
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 11
Chapter 2: LogicPro Workplace LogicPro User’s Guide
Table 2.4 The Tools Menu
Menu Option Description
Select the programming language for
the active window from the submenu:
SFC - Grafcet Sequential Function
Chart language. This is the LogicPro
default language for any program window. You may change the defaults
Language
Tools
using the Options menu.
LD - Ladder This option selects the
Ladder Diagram language for the
active window.
FBD - This option selects the Function
Block Diagram language for the active
window.
The selected language determines the
options for the rest of this menu. The
options displayed correspond directly
with the tools available from the different Language Toolbars. For more information, please refer to the appropriate
section concerning the language you
wish information on.
NOTE: Once you select a language
and start to build a program, LogicPro
prevents you from changing the language as long as any element exists in
the window.
UDFB (User Defined Function Block) Menu
This menu gives you control over the various tools available
when you’re creating or editing a UDFB. There are compile
and build options available for both execution and simulation
purposes because each creates its own variant of the UDFB
and saves it in the corresponding library. See Table 2.5 on
page 13 for a detailed list and explanation of the items on the
UDFB menu.
12 Watlow Anafaze Doc.# 28002-00 Rev 3.00
LogicPro User’s Guide Chapter 2: LogicPro Workplace
Table 2.5 The UDFB Menu
Menu Option Description
Compiles and error checks a
Compile for
Execution
Build Execution
Lib…
Compile for
Simulation
Build Simulation
Lib…
UDFB in the active window for
downloading, using the compiler
selected for the particular
resource.
Performs the same function as
Compile for Execution (above),
but also adds the .OBJ file to the
UDFB library for this resource
type. You must add a UDFB to the
library before you can use it in a
program.
Compiles and error checks the
UDFB in the active window for
simulation using the Borland
C++ compiler.
Performs the same function as
Compile for Simulation (above),
but also adds the .OBJ file to the
UDFB library for this resource
type. You must add a UDFB to the
library before you can use it in a
program.
Execution Menu
Simulation Menu
This menu contains many useful tools that you will need to
compile, link, download, stop, and start a project. See
Table 2.6 for a detailed list and explanation of the items on the
Execution menu.
Table 2.6 The Execution Menu
Menu Option Description
Build All and
Run
Download and
Run
Start Executable
Terminate Stops the currently running program.
This menu gives you control over all aspects of running a
simulation. Refer to Table 2.7 on page 14 .
Compiles, downloads and starts the
program.
Downloads and starts a previously
compiled program.
Starts a previously downloaded program.
Doc.# 28002-00 Rev 3.00 Watlow Anafaze 13
Chapter 2: LogicPro Workplace LogicPro User’s Guide
Table 2.7 The Simulation Menu
Menu Option Description
Build All and
Run
Simulation
Setup…
Simulation Reset
Scan
Increment Timer
Change
Variable…
Compiles and links a program for
simulation and runs the simulation.
Opens the Simulation Setup dialog
box, allowing you to set the number
of milliseconds that elapse per scan,
as well as establishing the number of
logic scans per simulation scan.
Resets all variables and the program
state back to their original values.
Executes a single scan of the simulation based on the simulation setup
criteria. This feature is only available
if you are not in the continuous scan
mode.
Advances the timer by the number of
“ticks” defined in the Simulation
Setup dialog box.
Opens the Change Variables dialog
box, allowing you to change the v alue
of any variable in the program for simulation purposes.
Options Menu
This menu allows you to customize the LogicPro
development environment. To activate an option, select the
menu item. A check mark appearing to the left of an item
indicates the option is active. If there is no check mark, the
option is inactive. See Table 2.8 .
Table 2.8 The Options Menu
Menu Option Description
Resource
Compiler
Selection
Allows you to establish a path to the
directory containing the compiler,
linker, includes, etc.
14 Watlow Anafaze Doc.# 28002-00 Rev 3.00