Académique Documents
Professionnel Documents
Culture Documents
User Manual
PC--DSOFT32--M
WARNING
Thank you for purchasing automation equipment from Automationdirect.com. We want your new DirectLOGIC
automation equipment to operate safely. Anyone who installs or uses this equipment should read this publication (and
any other relevant publications) before installing or operating the equipment.
To minimize the risk of potential safety problems, you should follow all applicable local and national codes that regulate
the installation and operation of your equipment. These codes vary from area to area and usually change with time. It is
your responsibility to determine which codes should be followed, and to verify that the equipment, installation, and
operation are in compliance with the latest revision of these codes.
At a minimum, you should follow all applicable sections of the National Fire Code, National Electrical Code, and the
codes of the National Electrical Manufacturer’s Association (NEMA). There may be local regulatory or government
offices that can also help determine which codes and standards are necessary for safe installation and operation.
Equipment damage or serious injury to personnel can result from the failure to follow all applicable codes and
standards. We do not guarantee the products described in this publication are suitable for your particular application,
nor do we assume any responsibility for your product design, installation, or operation.
Our products are not fault–tolerant and are not designed, manufactured or intended for use or resale as on–line control
equipment in hazardous environments requiring fail–safe performance, such as in the operation of nuclear facilities,
aircraft navigation or communication systems, air traffic control, direct life support machines, or weapons systems, in
which the failure of the product could lead directly to death, personal injury, or severe physical or environmental
damage (”High Risk Activities”). Automationdirect.com specifically disclaims any expressed or implied warranty of
fitness for High Risk Activities.
For additional warranty and safety information, see the Terms and Conditions section of our Desk Reference. If you
have any questions concerning the installation or operation of this equipment, or if you need additional information,
please call us at 770–844–4200.
This publication is based on information that was available at the time it was printed. At Automationdirect.com we
constantly strive to improve our products and services, so we reserve the right to make changes to the products and/or
publications at any time without notice and without any obligation. This publication may also discuss features that may
not be available in certain revisions of the product.
Trademarks
This publication may contain references to products produced and/or offered by other companies. The product and
company names may be trademarked and are the sole property of their respective owners. Automationdirect.com
disclaims any proprietary interest in the marks and names of others.
No part of this manual shall be copied, reproduced, or transmitted in any way without the prior, written consent of
Automationdirect.com Incorporated. Automationdirect.com retains the exclusive rights to all information
included in this document.
AVERTISSEMENT
Nous vous remercions d’avoir acheté l’équipement d’automatisation de Automationdirect.comE. Nous tenons à ce que
votre nouvel équipement d’automatisation DirectLOGIC fonctionne en toute sécurité. Toute personne qui installe ou
utilise cet équipement doit lire la présente publication (et toutes les autres publications pertinentes) avant de l’installer ou de
l’utiliser.
Afin de réduire au minimum le risque d’éventuels problèmes de sécurité, vous devez respecter tous les codes locaux et
nationaux applicables régissant l’installation et le fonctionnement de votre équipement. Ces codes diffèrent d’une région à
l’autre et, habituellement, évoluent au fil du temps. Il vous incombe de déterminer les codes à respecter et de vous assurer
que l’équipement, l’installation et le fonctionnement sont conformes aux exigences de la version la plus récente de ces
codes.
Vous devez, à tout le moins, respecter toutes les sections applicables du Code national de prévention des incendies, du
Code national de l’électricité et des codes de la National Electrical Manufacturer’s Association (NEMA). Des organismes de
réglementation ou des services gouvernementaux locaux peuvent également vous aider à déterminer les codes ainsi que
les normes à respecter pour assurer une installation et un fonctionnement sûrs.
L’omission de respecter la totalité des codes et des normes applicables peut entraîner des dommages à l’équipement ou
causer de graves blessures au personnel. Nous ne garantissons pas que les produits décrits dans cette publication
conviennent à votre application particulière et nous n’assumons aucune responsabilité à l’égard de la conception, de
l’installation ou du fonctionnement de votre produit.
Nos produits ne sont pas insensibles aux défaillances et ne sont ni conçus ni fabriqués pour l’utilisation ou la revente en tant
qu’équipement de commande en ligne dans des environnements dangereux nécessitant une sécurité absolue, par
exemple, l’exploitation d’installations nucléaires, les systèmes de navigation aérienne ou de communication, le contrôle de
la circulation aérienne, les équipements de survie ou les systèmes d’armes, pour lesquels la défaillance du produit peut
provoquer la mort, des blessures corporelles ou de graves dommages matériels ou environnementaux (”activités à risque
élevé”). La société Automationdirect.comE nie toute garantie expresse ou implicite d’aptitude à l’emploi en ce qui a trait
aux activités à risque élevé.
Pour des renseignements additionnels touchant la garantie et la sécurité, veuillez consulter la section Modalités et
conditions de notre documentation. Si vous avez des questions au sujet de l’installation ou du fonctionnement de cet
équipement, ou encore si vous avez besoin de renseignements supplémentaires, n’hésitez pas à nous téléphoner au
770–844–4200.
Cette publication s’appuie sur l’information qui était disponible au moment de l’impression. À la société
Automationdirect.comE, nous nous efforçons constamment d’améliorer nos produits et services. C’est pourquoi nous
nous réservons le droit d’apporter des modifications aux produits ou aux publications en tout temps, sans préavis ni quelque
obligation que ce soit. La présente publication peut aussi porter sur des caractéristiques susceptibles de ne pas être offertes
dans certaines versions révisées du produit.
Marques de commerce
La présente publication peut contenir des références à des produits fabriqués ou offerts par d’autres entreprises. Les
désignations des produits et des entreprises peuvent être des marques de commerce et appartiennent exclusivement à
leurs propriétaires respectifs. Automationdirect.comE nie tout intérêt dans les autres marques et désignations.
Copyright 2002, Automationdirect.comE Incorporated
Tous droits réservés
Nulle partie de ce manuel ne doit être copiée, reproduite ou transmise de quelque façon que ce soit sans le consentement
préalable écrit de la société Automationdirect.comE Incorporated. Automationdirect.comE conserve les droits
exclusifs à l’égard de tous les renseignements contenus dans le présent document.
1
Manual Revisions
If you contact us in reference to this manual, be sure and include the revision number.
Chapter 2: Installation
Preparing for Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--2
Getting to Know Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--2
Check Your PC Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--2
Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--2
DirectSOFT32 package contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--2
PLC Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--3
Supported Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--3
Installation of DirectSOFT32 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--4
Step 1: Load the CD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--4
Step 2: Review your options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--4
Step 3: Enter the Security Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--4
Step 4: Unpacking the software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--4
Step 5: End Other Windows Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--5
Step 6: DirectSOFT32 License Agreement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--5
Step 7: Enter Your Name and Company . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--5
Step 8 :Select Installation Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--6
Step 9: Select Installation Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--6
Step 10: Custom Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--6
Step 11: Program Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--7
Step 12: Program Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2--7
Using the CTRL Key and Arrow Keys to Create Midline Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--16
Deleting the Connecting Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--17
Selecting Rungs for Deleting, Cutting or Copying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--18
Deleting Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--19
Copying Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--20
Cutting (Moving) Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--22
Merging (Joining) Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--23
Inserting Columns, Rows, and Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--24
Insert a Column to Add an Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--24
Insert a Row or Rung . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--25
Using Search and Replace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--26
Building a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--26
Defining the Search and Replace Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--26
Swap or Replace? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--27
Search All or Part of the Program? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--27
Move, Copy, or Leave the Documentation? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--27
Accepting (Compiling) Your Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--28
Compilation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--29
Common Mistakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--30
Failure to Enter the Edit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--30
AND above a JOIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--30
Trying to Do a Copy or Cut Without Selecting the Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--30
Chapter 6: Documentation
How to Turn Documentation ON or OFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--2
Options Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--2
Specific Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--3
General Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--3
Using the Documentation Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--4
Using the Scroll Command Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--4
Copying Documentation Between Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--5
Documenting and Assigning Nicknames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--6
Creating a Nickname without Assigning it to an Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--6
Later Assigning the Nickname to an Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--6
Entering Rung Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--8
Comments are Free-Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--8
Selecting Rungs for Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--8
Using the Scroll Command Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--8
Saving the Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--8
Copying Comments Between Rungs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--8
Moving Rung Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--9
Entering Stage Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--10
Use Stage View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--10
Comments are Free-Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--11
Selecting Stages for Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--11
Saving the Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--11
Copying Comments Between Stages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--11
Importing and Exporting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--12
Exporting Program Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--12
Exporting Element Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--14
Exporting Rung Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--16
Importing a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--17
Importing Element Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--20
Importing Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--21
Insert Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--22
Restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--24
Preventing Loss of Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--25
Save Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--25
Backup Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6--26
iv
Table of Contents
Chapter 8: Printing
Printing the Current View and Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--2
Print Setup for Ladder View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--2
Print Setup for Mnemonic View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--2
Printing Multiple Views and Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--3
Print All Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--3
Printer Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--4
Both Dialogs Allow You to Customize the Printer and Its Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--4
Print to Adobe Acrobat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--4
Print a PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--4
DirectSOFT32 Accesses the Standard Printer Setup Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--5
Print Preview (The Tip to Successful Printing) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--5
Print Preview Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--5
Print Preview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--6
Troubleshooting Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--7
Printing Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--7
Sample Printing Setups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--8
Printing Ladder View with All the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--8
Printing the Documentation Only (No Views) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--8
Printing the XRef View with All the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8--8
In This Chapter. . . .
— Overview
— Manual Conventions
1--2
Introduction
Overview
Introduction
The Purpose of This manual describes how to use the software for programming and monitoring any
This Manual of the DirectLogic and compatible CPUs. This manual does not teach you how to
write ladder logic or attempt to familiarize you with the instruction sets of the
CPUs. Please refer to the applicable PLC manual for this information.
What’s New? DirectSOFT32 by definition is designed under the Windows 32--bit architecture.
With that comes several new features such as ToolTips, floating tool bars, improved
modem support and others. ToolTips provide you with additional information when
your cursor is on an icon or topic. A small pop--up text box will appear providing
valuable information such as a brief description of the icon or Hot Key shortcut. The
modem setup is much improved due to the fact that it uses the Windows type of setup
utility instead of the serial link type. Once you have installed the modem on the PC,
DirectSOFT’s LinkWizard makes the rest of the configuration simple and
easy--to--follow. Another feature of DirectSOFT32 is the importing of
documentation. You will now be capable of importing and exporting Element
Documentation (nicknames, wiring info, and descriptions) from a text file. The
feature uses Comma separated variables (CSV) and Comma Separated Text (TXT
data formats. For example, you can use Microsoft Excel to generate your Element
Documentation and import it directly into DirectSOFT.
Supplemental Depending on the products you have purchased, there may be other manuals that
Manuals are necessary for your application.
User Manuals
D 05 User Manual -- part number D0--USER--M
D 06 User Manual -- part number D0--06USER--M
D 105 User Manual -- part number D1--USER--M
D 205 User Manual -- part number D2--USER--M
D 305 User Manual -- part number D3--USER--M
D 350 User Manual -- part number D3--350--M
D 405 User Manual -- part number D4--USER--M
Product Manual
D Ethernet Communications Module -- part number H24--ECOM--M
D DV 1000 Manual -- part number D--24VIEW--M
Who Should Read If you understand PLC systems and you have a basic understanding of Microsoft
this Manual Windows, this manual will provide all the information you need to understand
DirectSOFT32 programming software. Many examples and explanations are used
to clarify topics. If you are unfamiliar with Windows operations, please refer to
your Windows documentation.
Technical Support We realize even though we strive to be the best, the information may be arranged in
such a way you cannot find what you need. If you need assistance, please call us at
770--844--4200. Our technical support group is glad to work with you in answering
your questions. They are available weekdays from 9:00 a.m. to 6:00 p.m. eastern
standard time. You can also contact us on the worldwide web at:
http:\\www.automationdirect.com
(website for general info/file transfers)
If you find a problem with any of our products, services, or manuals, please fill out
and return the ‘Suggestions’ card that is shipped with this manual.
Conventions Used
Introduction
Whenever you see the “lightbulb” icon in the left--hand margin, the paragraph to its
immediate right will give you a special tip.
The word TIP: in boldface will mark the beginning of the text.
Whenever you see the “notepad” icon in the left--hand margin, the paragraph to its
immediate right will be a special note. The word NOTE: in boldface will mark the
beginning of the text.
Whenever you see the “exclamation mark” icon in the left--hand margin, the
paragraph to its immediate right will be a warning. These are very important
because the information could prevent injury, loss of property, or even death (in
extreme cases). The word WARNING: in boldface will mark the beginning of the text.
Menu Selections When the software requires you to use a particular keystroke or menu selection, the
and Keystrokes written instructions will be in boldface type. Combination keystrokes will be
separated with a plus (+) sign. For example, ALT + E means: Hold down the ALT key
and press the E key. Menu selections can also be combinations, and they are
separated by a front slash. For example, File/Write Program/To Disk is a menu
selection combination.
Key Topics for The beginning of each chapter will list the
Each Chapter key topics that can be found in that 1
chapter.
In This Chapter. . . .
— Preparing for Installation
— PLC Compatibility
— Installing the Software
2--2
Installation
Check Your PC Please check the following requirements when choosing your PC configuration.
Hardware
Requirements
System Requirements
D Pentium/Celeron CPU, 333 MHx (or higher)
Windows 98/2000/NT 4.0 or later, and all XP
Installation
D
versions (No DOS, OS/2, Macintosh, Linux or
Unix Versions, or 16 bit versions available)
D 32Mb free RAM
D 11Mb available hard drive disk space
D CD-ROM drive
D At least one unused serial communications port
D Color SVGA monitor
Tip on Monitors: Any size monitor will work, but larger monitors enhance the
display capabilities of DirectSOFT32.
Power Supply We highly recommend that you use power surge protection for the computer running
DirectSOFT32. A quality surge protector will protect your computer from most
surges and spikes however, an uninterruptible power supply (UPS) will provide the
ultimate protection. A UPS provides complete isolation between the AC power
source and the computer and has battery backup for blackout and brownout
conditions.
DirectSOFT32 Now is the time to review the contents of your DirectSOFT32 software package. You
package contents should have the following items:
D CD ROM
D Quick Start Manual
D Programming Manual
D License Agreement
D Registration Card
PLC Compatibility
Direct-
Direct- Direct- Direct-
SOFT DirectSOFT
SOFT SOFT SOFT
Family CPU Program- Programming
Site OEM DSData
ming Single Family
Licenses License Server
PC--PGMSW
DL05 Requires Rel. 2.4a or later 3 PC--PGM105 or 3 3
PC--PGM--BRICK
DL06 Requires Rel. 4.0 or later 3 PC--PGM--BRICK 3 3
DL105 F1--130** (requires Rel. 2.4a or later) 3 PC--PGM105 or 3 3
PC--PGM--BRICK
DL205 D2--230 3 PC--PGM205 3 PC--D2OEM 3
D2--240 3 PC--PGM205 3 PC--D2OEM 3
Installation
D2--250 (D2--250--1 requires Rel. 4.0 or later) 3 PC--PGM205 3 PC--D2OEM 3
D2--260 (requires Rel. 4.0 or later) 3 PC--PGM205 3 PC--D2OEM 3
DL305 D3--330*, D3--330P* 3 PC--PGM--305 3 PC--D3OEM 3
D3--340 3 PC--PGM--305 3 PC--D3OEM 3
D3--350 (requires Rel.2.4a or later) 3 PC--PGM--305 3 PC--D3OEM 3
DL405 D4--430 3 3 PC--D4OEM 3
D4--440** 3 3 PC--D4OEM 3
D4--450** (requires Rel 2.4a or later) 3 3 PC--D4OEM 3
GEâ Series 1 IC610CPU105* 3 3 PC--D3OEM 3
IC610CPU106* 3 3 PC--D3OEM 3
TI305t / 325--07*, PPX:325--07* 3 3 PC--D3OEM 3
SIMATICâ
330--37*, PPX:330--37* 3 3 PC--D3OEM 3
TI305t
325S--07* (or 325 with Stage Kit) 3 3 PC--D3OEM 3
330S--37*, PPX:330S--37* 3 3 PC--D3OEM 3
335--37, PPX:335--37 3 3 PC--D3OEM 3
TI405t/ 425--CPU, PPX:425--CPU ** 3 3 PC--D4OEM 3
SIMATICâ
PPX:430--CPU 3 3 PC--D4OEM 3
TI405t
435--CPU, PPX:435--CPU ** 3 3 PC--D4OEM 3
* — requires Data Communications Unit (D3--232--DCU) ** — also DC versions
NOTE: In general, the compatible products listed offer similar features and are even identical in some cases. However, DirectSOFT32 has not been completely tested with the compatible
products. There may be some aspects of system operation that may not be supported, or, that may not work the same as previous software packages.
Supported Devices One of the benefits with the DirectLOGIC family is the wide variety of programming
connections. For example, you can use DirectSOFT32 to communicate directly with
a PLC or you can use a communications device, such as, the DL405 Data
Communications Module. Below is a list of supported devices:
Data Communication Devices:
D DL405 Data Communications Module (D4--DCM)
D DL405 Ethernet Communications Module (H4--ECOM)
D DL305 Data Communications Unit (D3--232--DCU, D3--422--DCU)
D DL205 Data Communications Module (D2--DCM)
D DL205 Ethernet Communications Module (H2--ECOM)
I/O Modules:
D DL405 Slice I/O Modules
D D2--RSSS (slice protocol)
D T1K--RSS (slice protocol)
Step 4: The installation process begins by unpacking the information on the CD that
Unpacking the corresponds to the security code entered. Pop-up windows will show you the
software status of the unpacking.
Installation
Step 6: The next screen displays the
DirectSOFT32 software license agreement. If you
License agree to the terms and conditions,
Agreement click Yes to continue. Also, there is a
hard copy of the license agreement
included in your package,
Step 11: With all of the options selected and the parameters completed, the program can
Program begin its installation. The screen provides information on the status of the install.
Installation
Installation
Step 12: After the DirectSOFT32 install status window reaches 100%, the screen will
CTRIO Workbench change to the CTRIO Workbench installation. This is an optional installation. If you
Installation do not want to install the CTRIO Workbench, simply click on Cancel. If you do
chose to install it, click on Next. You will be asked the same questions which were
asked for the DirectSOFT32 installation.
Installation
Step 13: Once the CTRIO Workbench installation is either finished or cancelled, the
ERM Workbench following ERM Workbench installation screen will appear. This too is an install
Installation option. If you do not want to install the ERM Workbench, simply click on Cancel. If
you do chose to install it, click on Next. You will be asked the same questions which
were asked for the DirectSOFT32 installation.
Installation
Step 14: After all of the software has been
Program successfully installed, the Setup
Verification Complete window will appear. You
can either check the options
offered and click Finish or just click
on Finish. The DirectSOFT32
software installation is now
complete.
In This Chapter. . . .
— Starting DirectSOFT32
— Understanding the Launch Window
— Creating a New Project
— Importing Projects from Other Software
— Copying or Saving Existing DirectSOFT32 Programs
3--2
Managing Projects
Starting DirectSOFT32
Managing Projects
For Windows 98/NT/2000, the icons will be a part of the Start Menu. Start the
application by selecting Start/Programs/DirectSOFT4 followed by clicking on the
DSLaunch (rocket) icon. As an alternative, you can create a shortcut. This places
the DSLaunch icon on the desktop for quicker access. If you wish to do this, consult
your Windows Help on how to create shortcuts.
Startup Software
Windows NT 4.0
Example
Double- click on
this icon
Managing Projects
The Desktop and You can start DirectSOFT32 by double--clicking on the DSLaunch Window (rocket)
Launch Window icon. Once started, the DSLaunch Window on the next page will appear. The
DSLaunch window contains all of the information that your current DirectSOFT
programming supports.
Managing Projects
DirectSOFT32 is designed to be more than a PLC programming package. With the
Launch Window concept, additional applications such as Operator Interface
software, etc., can all be launched from one central place. This same area is used to
create and manage PLC programs and the communications between your personal
computer and the PLC.
You will notice several different areas in the Launch Window.
Documents - Projects
most recently used listed
first Installed Support
Managing Projects
Communication Links
to PLCs
New Program To create a New Program, double-click on the DirectSOFT32 Programming icon. A
dialog box will appear which allows you to specify several things. As you build and
save your own programs, they will also appear in the Projects list in the Launch
window. The next time you open the project, double-click on the document entry to
open the program.
Use this icon to
start a new project
and open up a
fresh program
window.
New Project
Window
Type in a name
for your project
Select the
PLC Family..
Select the
Managing Projects
CPU Type..
..then click on
OK
Enter the Name, This dialog box is used to define several things.
Select the Family D Name — enter the name for the project (up to 8 characters--no extension).
and CPU Type
D Family — select the DirectLOGIC (or compatible) family you want to use.
D Type —select the CPU you are using from the available list. Remember,
different PLCs use similar instructions, but they are still different in some
ways. For this reason, it is extremely important that you specify the correct
CPU.
D Browse -- you can keep the default path c:\DirectSOFT32\projects, or
type in your own, or use the browse button to find the path to use for storing
project files.
Managing Projects
Importing Projects You may already have TISOFT or Logicmaster programs stored on your hard disk or
from TISOFTt or a diskette. Use the following procedure to import these programs.
Logicmastert 1. Double-click the DirectSOFT Programming selection under the
Applications icon in the menu tree.
2. When the New program dialog box appears, click on the Cancel command
button. (Notice the Programming Window stays on the screen.)
3. Click on the File Menu, then click on Import. The Import Program dialog
box will appear:
4. Enter a title for the new program (up to 15 character filename with no
Managing Projects
extension). Remember, if you want to store the program in a location other
than the default directory, use the Browse command button.
5. Use the Directories window and the Drives selection box to tell
DirectSOFT32 where to find the file. For example, you may have the
program stored on a diskette instead of the local hard disk. TISOFT files will
have a filename.vpu format, Logicmaster has a filename.lad format.
6. Once you are in the directory containing the files, you should have a listing
in the Files area. Click on the file to select the one you want to import.
7. Click on the OK command button to start the import process. You will then
see some brief windows that tell you DirectSOFT32 is “Processing
Opcodes”, etc. Once the processing is complete, you can use any of the
normal menus and icons to edit, print, or download the program.
Program Although most of your documentation will have a counterpart in DirectSOFT, some
Documentation of the documentation does not. The following table shows what is imported, what is
Mapping not, and the DirectSOFT32 counterparts.
TISOFT Source Documentation DirectSOFT Documentation
Title Page Title Page (editable from Print... dialogs)
Synonyms Element Description
Comments (tied to output coil) Rung Comments (tied to rung)
Descriptors No match
The question often arises as to what is needed when copying existing DirectSOFT
files to a different memory area or directory using the DOS command line syntax or
any type of file manager. If you are a first time user of DirectSOFT32 and have no
existing files to transfer, then you may skip this page and read it later.
By default, projects are stored originally in the projects subdirectory, however they
can reside on floppies, tape, optical disk or in a subdirectory (other than the default
projects subdirectory) on your hard drive. It really does not matter where they are
stored----the method for copying or saving these existing files to another area is the
same in each case.
If you look where the projects have been stored, you will notice the main file for the
project will always have a .prj extension after its root filename, but there are other
files with the same root filename. This can be a little confusing to new users. This is
due to the fact that DirectSOFT32 does filename creation behind the scenes, and
you don’t get involved with the initial storage except to indicate the root filename and
directory path.
A frequently asked question is “which of these files do I need when making the
storage transfer?”. Copying or saving the filename.prj will be insufficient to truly
transfer the total project. Not all of the files are necessary to recreate the program,
but if you eliminate any of them, you may lose some important documentation and
Managing Projects
indexing information. The table shown below lists the different file extensions and
what they contain. The safest choice is to save or copy all files for a project having the
same root filename, regardless of the different file extensions.
In This Chapter. . . .
— Offline ToolBar Components
— Status Bar Components
— Using the Split Screen
— Global and Ladder Options
— Color Options
— Tool Palette Components
4--2
Programming Environment
Read From If you click on this button, the program stored on the disk will be read into the
Disk Program Window.
Write to If you click on this button, the program memory will be saved to disk. As with any
Disk software package, it is a good idea to save your work frequently. This helps prevent
data losses in the event of a system problem such as a power failure.
Create a This button creates a new offline project. You can have a project open and still use
New this button. It will not overwrite the existing project. Instead, it will prompt you to save
Program any changes first. Then it creates a completely new program with empty ladder
rungs.
File Open This button opens an existing project. You can have a project open and still use this
button. It will not overwrite the existing project. Instead, it will prompt you to save any
changes first. Then it opens the program you have selected.
File
Cut If you have program rungs selected and you click on this button, the selected rungs
will be cut from the display. You can then paste them into another part of the program,
or, you can paste them into an entirely different program. Note: if you cut some rungs
without pasting them somewhere, and then you select additional rungs and cut
them, the first rungs are no longer stored on the clipboard. This means you will lose
the original rungs.
Copy If you have program rungs selected and you click on this button, the selected rungs
will be copied to a holding area called the clipboard. You can paste them into another
part of the program, or, you can paste them into an entirely different program. Note: if
you made a copy of some rungs, and then you select additional rungs and use the
copy button again, the first rungs are discarded from the clipboard.
Paste When you cut or copy selected rungs, they are stored on the clipboard. You can use
this button to paste the selection into a new location.
Edit Click on this button to turn ON Edit Mode in order to create, delete, or modify the
Mode program.
Compile When editing a program, you need to tell the software to accept the changes you
Edits have entered. This is called “compiling” the changes. Some software packages
make you compile the program as you change each rung. DirectSOFT32 allows you
to change many different rungs and then compile them all at once. When you start
creating programs, you will notice a yellow vertical bar (default yellow) appears in the
margin next to the rung. This helps you to remember the changes have not been
compiled. A bar of a different color (default green) will appear after you have
compiled a rung. This green bar means you have compiled the rungs, but you have
not saved them to the disk. A blue vertical bar will appear if the rung is compiled but
not saved to the PLC. When no vertical color-coded bars are present, the rungs have
both been compiled and saved to disk and PLC. All the default colors can be
changed to other colors by the User.
Find This button allows you to search for a program element. You can select an item
Element before you use this button, or, you can click on this button and then specify what you
want to look for. For example, if you click on an input labeled X10, then click this
button, the Find dialog box will appear with X10 already entered. Click on OK to start
the search.
Find Next This button finds the next occurrence of the element specified when you used the
Search Find button. Note: You can not use this if you have not used the Find button first.
Pattern
Element This button displays the element browser. This allows you to quickly view the various
Browser element addresses available for your particular model of CPU.
Display This button controls various features including the program documentation display.
Options When the Documentation dialog box appears, you can click on the various types of
Programming
Environment
Dialog documentation to turn them on or off. Refer to the Options section of this chapter for
more information.
Zoom These buttons control the zoom feature. You can zoom in (+) to make the screen
display larger, or zoom out (--) to make the screen display smaller.
PLC Memory The memory indicator shows how much program (ladder) memory is available and
Usage how much you have used. The format is: memory used / total memory. If you have
exceeded the available memory, an asterisk (*) appears beside the amount used.
Below are examples for simple programs.
Programming
Environment
D For a DL240 CPU — 00047 / 02560 would indicate you have used 47
words out of the total available 02560.
D For a DL230 CPU — *00725 / 00512 would indicate you have used 725
words, which exceeds the total available program memory of 512 words.
PLC Type This area shows the model of PLC you are using.
Program Location This area is a scrolling indicator that shows the position of the current selection. For
example, in the illustration above, the cursor is located in Rung 1, Row 1, Column 1.
Programming
Environment
Ladder Tab Only the Global and Ladder Options are covered in this particular chapter. The
other options will be covered in later chapters after adequate coverage of some of
the more advanced features of DirectSOFT. Access the Options Dialog by clicking
on View/Options from the menu above the offline toolbar. The Options Dialog can
also be selected from the pop-up menu that appears when pressing on the right
mouse button from the Ladder View, Stage View, or XRef View windows or by
clicking on the options dialog button. If you do use the pop-up menu, click on the
word Options from the pop-up menu. Below is the tab for the Ladder View options.
Each dialog is brought to the front by clicking on its tab.
Programming
Environment
Selecting How the There are two options in the Ladder Dialog for defining how rungs are numbered.
Rungs are You can either number them by address or by rung. If you choose to use the
Numbered address method of numbering, the actual decimal address for each rung will be in
the left margin, starting with zero. If you number by rung, the starting number for the
first rung will be one. The next rung would be two, then three, etc. The default method
of numbering is by rung.
Selecting With this portion of the Ladder Dialog, you can mark the types of documentation to
Documentation use with your Ladder Logic program. If a radio button is not marked, the
Options to be corresponding type of documentation will not be displayed. The following choices
Displayed are available:
D Elements--the element type and reference number (X1, Y3, C100, etc.)
D Nicknames--a name given to the element by the user (clamp, switch, etc.)
D Wiring Info--a descriptive tag for keeping track of wiring, (Blue 027)
D Descriptions--notes attached to individual elements, (gate open,
clamp up
D Comments--notes attached to an entire rung, i.e. This is the start of
the Wash Processs for Section 9 in Building 10.
Apply Options By default, changed options will only affect the Current View. Check All Open Views
or New Views if you wish to apply these options to all open views or to views opened
later.
Enabling or Also available in the Ladder Dialog is an option referred to as 3-D Tokens. When
Disabling 3-D enabled, this option shows a shaded background in the programming window with
Token connecting lines and element symbols shadowed in such a way that they appear
3-dimensional. This is turned ON by default. This feature is also available in Stage
View.
Global Options The options available with the Global Tab affect the current and all new projects that
you open during any session.
Global Tab
Selecting the There are three options available in the Global Dialog:
Global Options D Default Window View--the View you have highlighted in the Default
View window when the OK button is selected will be the default view
that appears when you open up a project.
D Display Nicknames--when this is selected, all current or future projects
opened will display the nicknames. Selecting Display Nicknames here
will have precedence over how this option is set for the individual views
on other tabs.
D Display Aliases--aliases are alternate names given to certain elements
Programming
Environment
or addresses. For example, TA0 is an alias for a timer with its
accumulator data starting at V0. It is often much more meaningful to use
the aliases rather than the counterpart memory address notations. But
in the end, it is really a matter of preference. You can turn the display of
aliases ON or OFF globally. See your individual Programmable
Controller User Manual for a complete listing of aliases for the CPU you
are using.
Color Options
A brief description of where and how colors are used follows.
Normal Background — the normal background color (the default is white)
Selected Background — used for setting the color that appears when you select
something. For example, if you select a range of rungs (to copy, delete, etc.) you will
notice they are highlighted with a color
Status Background — When you select online status, you can choose a different
background color to show that status is enabled
Status Foreground — the color the individual elements show when they are active
during status
Comments — the color for documentation comments
Description — this color is for the element description
Wiring Information — the color used for wiring information
Nickname — the color used for the nicknames
Element — the color used for the actual element address (X10, IO000, etc.)
Token — the color of the actual symbol, such as a contact, coil, etc. Also, in Stage
view, there are tokens that show jumps, convergence, etc. This color is also for those
elements in the flowchart diagram.
Some Colors DirectSOFT32 uses different colors to indicate certain conditions. There are color
Convey coded vertical bars in the margin for keeping track of what has been compiled or
Information saved. Below is an inset that is magnified so that you can see the vertical bars. These
are actually yellow, green and blue by default.
Uncompiled (Yellow)
Compiled, but
not written to the
Programming
Environment
disk (Green)
Compiled, but
not written to
the PLC (Blue)
Uncompiled — when you have edited a rung, a vertical color bar (default yellow)
appears to remind you it has not been compiled.
Unsaved to Disk — Once you compile the rungs, a second color bar appears
(default green). This is to remind you that you have not saved the changes to the
disk.
Unsaved to PLC — During online editing, there is also a color bar that indicates the
changes have not been saved to the PLC (default blue).
Selecting New You may change these colors to suit your preferences by using the View > Color
Colors Setup option. You can click on the color usage (normal background, uncompiled
background, etc.) and then click on the color palette to select the color. The sample
area (below the color palette) has a color bar that will change as you change the
colors. There is also some text for each type of documentation. This is the row of C’s,
D’s, W’s etc.
Click here to
select colors
Click on item to
select it for a
color change
The Default If the colors are totally disorganized, click on the Restore Defaults command button
Settings to return to the DirectSOFT32 default color settings.
Programming
Environment
The Tool Palette The Tool Palette can be very helpful, especially in the beginning while learning to
program in DirectSOFT. Later, you may prefer to use the faster Hot Keys instead of
clicking on the tool buttons themselves. The Hot Keys appear when the cursor is on
a button. This feature is known as a ToolTip The Tool Palette shown below may not
be exactly like the one you have on your computer screen. The tool palette shown
depends on which CPU your PLC is using. In this example, only the elements
common to all CPUs are used, therefore, this will not be a problem. The Tool Pallet is
also floating, so you can move it and resize it anywhere on your desktop.
Normally Open Contact
Programming
Environment
Equal-To Contact
Not-Equal-To Contact
Greater-Than or
Equal-To Contact Less Than Contact
The following is a description of the Tool Palette buttons. Not all of these buttons may be
available for the CPU you are using. Also, there may be other variations of these buttons that
are not shown.
Normally Open Contact — Click on this button to enter a normally open contact.
Normally Closed Contact — Click on this button to enter a normally closed contact.
Normally Open Immediate Contact — Click on this button to enter a normally open
Immediate contact (Refer to your User Manual for details on Immediate contacts and
coils).
Equal To Contact — Click on this button to enter a comparative boolean contact for
equal.
Less Than Contact — Click on this button to enter a comparative boolean contact for
less than.
Display Contact Dialog — Click on this button to view the Contact Dialog of the
Instruction Browser (allows you to view and select the various types of contacts).
Programming
Environment
Display Coil Dialog — Click on this button to view the Coil Dialog of the Instruction
Browser (allows you to view and select the various types of output coils).
Display Box Instruction Dialog — Click on this button to view the Box Instruction
Dialog of the Instruction Browser (allows you to view and select the various types of
box instructions).
Display Element Browser — Click on this button to view the Element Browser
(allows you to select from all the various types of memory addresses, X0, Y0, V2000,
etc.). Also a quick way to edit Nicknames, Wiring Info, or Descriptions for Elements.
Wire to Output — Click on this button to toggle a horizontal wire to the output
column ON or OFF.
In This Chapter. . . .
— I/O Configuration
— Referencing Program Elements
— Entering Instructions
— Shortcuts for Entering Elements
— Drawing/Deleting Connecting Lines
— Cutting and Pasting
— Using Search/Edit/Replace
— Accepting (Compiling) Your Entries
— Common Mistakes
5--2
Entering a Program
I/O Configuration
One of the first things to be done before you begin to edit a program is to establish the
I/O addressing for your PLC. Use the user manual for the PLC that you are working
with to assist you with the I/O configuration. The DirectLOGIC PLCs have automatic
I/O configuration, and some of the CPUs offer manual I/O configuration. Check the
user manual for the PLC that you are using.
To access the I/O configuration with DirectSOFT32, the PLC must be connected to
your PC and online with DirectSOFT32. Open the new program and connect your
PLC to the PC. Select PLC then click Configure I/O.
The following dialog window will appear showing the automatic I/O configuration (by
default). If you are using a CPU which can be manually configured and you need to
change the configuration, click on the “A” next to the slot that is to be manually
addressed. The “A” will change to an “M” to allow the address to be changed.
Save to disk Read from disk
After the manual configuration is set, save the configuration to the PLC and to your
project. The disk and PLC icon buttons located in the right--hand corner of the dialog
allows the configuration to be either saved or read.
Aliases Chapter 4 discussed the use of aliases to make some data references easier to
understand. By default, they are displayed when you type their counterpart. If you
prefer not to use them, they can be turned off with the Global Tab of the Options
menu. Below are three examples that show how to use aliases.
NOTE: These references are only used within DirectSOFT32. They cannot be used
with the Handheld Programmers. The actual instructions contained in the CPU will
reflect the actual data type, not the new reference.
Entering Instructions
DirectSOFT32 has two basic types of instruction editor dialogs; single parameter,
and multiple parameter. The following information will help you to become more
familiar with these two types of dialogs.
Single Parameter Most contact, coil, and box
Instructions instructions have single parameters
and are entered using a single parameter Red Indicator
dialog. When some dialogs open for shows not
input, they automatically use a default complete
element address. For example, if you
use the applicable Ladder Palette button
for a normally open contact, the
Instruction Editor dialog box appears
Cancel
with C0 as the default. You can change
this to any address or nickname you like.
Click on the 4 (check) mark to accept the Accept
entry, the 7 (or ESC) to cancel the entry,
or the element browser button
(magnifying glass with XYC) to browse
through the available element addresses
or nicknames or press ENTER to accept
the entry.
Green Indicator
shows valid entry
Using the Ladder When you enter the Edit Mode (CTRL + E), the Ladder Palette appears at the lower
Palette left of the screen. The Ladder Palette is floating and can be resized and repositioned
anywhere on your desktop. The Ladder Palette is one of several ways to enter
instructions. First click with the mouse on the rung where you want an element to be
entered. Then click on the appropriate instruction on the ladder palette. If you have
clicked on a button that is representative of an individual contact or coil (the top 8
buttons on the palette) a dialog box will appear to enter the parameters.
Ladder
Palette
Opening the Some instructions do not have a one-to-one button on the palette. For entering these
Instruction instructions, click on a Browser button of the Ladder Palette and browse through the
Browser list of instructions available. There are three buttons on the palette for browsing the
coil, contact, and box instructions. Clicking on any of them will bring up the
Instruction Browser (shown below), which allows you to select the correct instruction
from the lists available. The tab that appears in front of the Browser is dependant of
the button clicked. Once you select the proper instruction and click on the OK button,
a dialog box similar to the one for filling in the parameters will appear.
Browse
contacts
Entering a Program
Browse
coils
Browse
box
TIP: Notice the wire to output is CTRL + W and the wire to stage hot key is
CTRL + SHIFT + W.
NOTE: For a more complete list of available Hot Keys, use the Help menu.
Entering You can also enter any of the instructions from the menu bar, via the Instruction
Instructions from Browser mentioned on the previous page. Click on Edit and select Contact, Coil, or
the Menu Bar Box. This will pop up the Instruction Browser as if you had clicked on one of the
browser buttons from the Ladder Palette.
Entering a Program
TIP: Once you become familiar with DirectSOFT32 the most common method for
entering instructions is to position the cursor on the rung where the instruction is to
be entered and type the element address, i.e. X12, C22, Y14, etc.; or type in the
mnemonic, i.e. LD, LDA, LDD, etc.
NOTE: You must use the Ladder Palette, the Hot Key equivalent, or select the Coil
or Box from the Edit menu when you want to enter the OUT box instruction
Entering NO and
NC Contacts TIP: When entering contacts, another quick method to use is the forward slash ( / )
to toggle between a normally open and a normally closed contact. For example, if
you want X0 to be a normally closed contact, position the cursor on the rung, type X0,
and press the forward slash ( / ) key. If you want to change it back to a normally open,
press the forward slash key again.
Entering To enter an instruction in parallel, first enter a contact (or output if you are trying to
Instructions in build multiple outputs) as normal. After you accept the entry by pressing ENTER or
Parallel clicking on the check mark, press ENTER again. The rungs following the current
rung all move down on the screen. Now enter another instruction. The new
instruction appears in parallel, but the instructions are not connected.
Entering Power There are some instructions such as Master Control Relays (MLR/MLS),
Flow Instructions FOR/NEXT loops, Stage Boxes (SG, ISG), Program Control (GOTO/LBL, INT,
SBR), etc. that indent the power rail or are inserted in the power rail of your ladder
diagram. One common mistake among new users of DirectSOFT32 is to try and
create the indentations using the CTRL + Arrow connecting lines. This will not work.
There is really no reason to worry about it. DirectSOFT32 will instead do the
indentations automatically when you compile the rungs that contain the power flow
elements. The process of compiling the ladder logic will be discussed later, but for
now you need to know only the indents will happen automatically when you compile.
This will become clear through the examples on the immediate two pages. For this
example, use the hot key F8 to do the compiling and the FOR/NEXT instruction.
Entering a Program
Refer to your CPU User Manual to learn how to use the Power Flow Instructions.
Entering a Program
Some of these instructions may not be available for the CPU that you are using.
Entering Special Some elements are special because they do not follow the usual rules (i.e. 330S
Case Elements Timers/Counters, DL330/DL340 CT674--CT677) or they are entered in perhaps
different ways than one might expect. On this page and the adjacent page, these
special cases are discussed.
Non--Useable If you have a DL330, DL340 or compatible, then you know the counters/timers
Preset Field for CT674 through CT677 cannot take software presets in the same manner as all its
DL330/DL340 other built-in counters/timers. These counters/timers are designed to have their
Counters/Timers presets entered via an external hardware device (D3--TCSU Timer/Counter
(CT674--CT677) Setpoint Unit). You cannot enter preset values for CT674--CT677 via the
timer/counter setup dialog.
This presents a unique situation for DirectSOFT32 because for these two CPUs,
DirectSOFT32 always shows two input fields (timer/counter address and preset) for
all of its timers/counters and makes no exception for these special cases. You can
enter the element in your ladder logic, but you must ignore the second field in the
input window (as shown below). This second field is intended for presets on all other
timer/counters, and not these exceptions. Instead, close the box without a preset
and enter the preset via the D3--TCSU. Please be aware that even after you enter
the presets via the thumbwheels, re--opening this dialog box will not show the preset
value in the second field. You will only know what the preset is by looking at the
settings on the Setpoint Unit.
NOTE: If you inadvertently enter a number in the second field, use the back arrow z
to delete the entry, followed by pressing the space bar key.
Entering a Program
TI330S/TI325S and If you have a TI330S/TI325S or DL330P, then the situation is slightly different from
DL330P Exceptions the one explained on the previous page. These CPUs do not allow presets for any of
their counters/timers via the setup dialog of DirectSOFT32. The confusion that often
occurs (mainly from users who have used DirectSOFT32 with other CPUs) is
“Where do I enter the preset?”. The dialog box for setting up the counter or timer will
only have one input field. This is for entering the counter or timer address
designation, i.e. CT600, CT620, CT677, etc. There is no way to enter a preset.
Refer to the DL305 User Manual for a detailed discussion of how these timers work
with their presets.
END coils All instruction sets for DirectLogic CPUs and compatibles offer the END instruction
as an output coil. This is a foreign concept for many of those customers who may
have used programming software from other PLC vendors. The END coil is not a coil
in the true sense, but is merely a marker that designates the end of your program.
Every DirectSOFT32 program must have this instruction.
Confusion often occurs when using the Instruction Browser. Many people look under
Standard Coil for this instruction; and then become frustrated when they cannot find
it there. Because it is not a standard coil in the strict sense, it is listed under Program
Control.
Entering a Program
The END coil is found under Program Control and not the Standard Coil category.
Setting and Some PLCs in the DirectLogic family allow you to set (or reset) individual bits stored
Resetting a Bit in memory. This is commonly called “Bit-of-Word” capability. The PLCs which
support this includes the DL05, DL06, DL250--1 and DL450 CPUs. The
DirectSOFT32 commands available for these CPUs offering Bit-of-Word include
SET, RST, OUT, and STR. Notice in the examples shown below (using the SET and
RST commands) the letter ’b’ precedes the memory location where you want to
manipulate a bit in some way. After the V-memory address of the word, use a decimal
point and a number between 0 and 15 ( with zero being the least significant bit ) to
designate which bit to set. For example, b1400.3 is the fourth bit of V1400.
Enter the SET command.
Using Floating Typically small, low-end PLCs allow you to work with integers, but do not allow you to
Point Math perform math containing decimal places. This second type of math is called, “floating
point math”. If the processor for your PLC supports floating point math i.e., DL06,
Entering a Program
DL250--1, DL260 and DL450, you will need to know the conventions used for
entering the floating point math elements and parameters. Refer to the respective
user manual for more information on these features and conventions.
WARNING: As you read this section on connecting lines, be aware that elements
that have not been connected will be deleted when compiling your program. How to
compile all of your edits is discussed at the end of this chapter. You will also be
reminded to connect all of your elements prior to compilation.
Use the CTRL Key Most programs contain a wide variety of rungs with complex series and parallel
and the Arrow element connections. You can build most any network by connecting the contacts,
Keys to Draw the outputs, etc. with horizontal and vertical lines. Enter these lines (refer to the ones
Connecting Lines entered on Page 5--9) by using the CTRL key and the arrow keys. For example,
press CTRL ¯ to draw a vertical line from top to bottom or press CTRL ® to draw a
horizontal line from left to right.
Below is an example network containing combinations of series/parallel elements.
Using the CTRL There are times when you need to use a diagram that is often referred to as a midline
Key and Arrow output. There are no special procedures required. Enter the contacts and outputs as
Keys to Create normal, and use the CTRL and arrow keys to draw the connecting lines. Below is an
Midline Outputs example of how a midline output would appear.
NOTE: There cannot be any additional logic on the rung between the midline
connecting point and the output. See Compiling Errors at the end of this chapter.
Deleting the Deleting lines is also a simple procedure. Use the Edit > Wire > Delete options to
Connecting Lines delete wires in all directions. You can also use the CTRL + SHIFT + ARROW KEYS
to delete the lines. Below is an example illustrating how to delete lines.
In this example, use CTRL + SHIFT + ¬ to delete the instruction to the left of the
cursor along with the connection wire.
Entering a Program
TIP: Use the Hot Keys to quickly select portions of the program.
SHIFT+HOME selects from the current rung to the beginning of the program.
SHIFT+END selects from the current rung to the end of the program.
Entering a Program
Deleting Rungs
When deleting one or more rungs, it is with the intention of removing the rung (or
rungs) from the program entirely. Delete them by pressing the Delete key, or by
using the Edit > Delete option from the menu bar.
First, select the rung or rungs you wish to delete.
Entering a Program
Copying Rungs
You can copy selected rungs to another location (or another program) by using the
Copy button or the Edit > Copy menu selection. The original rungs are not altered in
any way. When you copy the rungs, they are held in a temporary storage location
called the Clipboard.
The rungs are held in the clipboard until you use the Edit > Paste feature or the
Paste--from--Clipboard button. If you do not paste the rungs and you copy another
selection, the original rungs are removed from the clipboard. Basically, the clipboard
can only hold one selection at a time. When you paste the rungs, they are inserted
before the current position.
Entering a Program
In this example, a rung has been copied. This placed it on the clipboard. It has
then been pasted (from the clipboard) to a position above the original rung.
NOTE: If you are using Stage instructions, be careful where you paste the rungs.
This is only true if unconditional outputs follow a Stage box and you paste new rungs
before the unconditional output rung.
Unconditional Output
When pasting the new rungs, the unconditional output will be joined to the new
rungs. The following screen shows an example. Now the output is controlled by an
input condition, which is not the intent of the original program.
Output joins
new rung.
Entering a Program
The rungs are held in the clipboard until you use the Edit > Paste feature or the
Paste--from--Clipboard button. If you do not paste the rungs and you cut another
selection, the original rungs are removed from the clipboard. Basically, the clipboard
can only hold one selection at a time. When pasting the rungs, they are inserted
before the current position.
Position where
the cut object
is to be pasted.
Entering a Program
This next screen shows how the display would appear after these rungs were joined.
Notice the rung numbering has changed.
Entering a Program
Insert a Row or You can use the Edit > Insert feature or the Hot Key Insert to insert a row. You can
Rung select the number of rows and location to insert rows, either before or after the
current rung.
DirectSOFT32 provides a window prompting you for information on what to insert.
You can select what you want to insert and where in relation to the cursor (before or
after) that you want it placed.
Entering a Program
Building a Table The following paragraphs show how to complete the entries for the Search and
Replace ranges. One key thing to remember is that you can perform the search and
replace operations individually, or as a group. Notice a command button that allows
you to define an entry and store it in a table. This allows you to then perform the
search and replace operations all at one time after they are all defined.
Defining the There are four fields used to define the Search Range
Search and search and replace elements. If you only
Replace Ranges want to replace a single element, such as
X20 X21 X22 X23 X24 X25
X40, then you do not have to complete all
of the fields. Enter the search element in
the first search field and the replacement X40 X41 X42 X43 X44 X45
element in the first replacement field.
You can also replace a range of Replacement Range
elements. For example, you can
sequentially replace X20 -- X25 with X40
-- X45. Once you enter the first starting
replacement element address,
Entering a Program
DirectSOFT32 automatically
determines the final element address for
you. You can use higher numbered
elements or lower numbered elements.
Search All or Part You can also select what part of the program you want to search. You can specify the
of the Program? entire program (All), or specify a range of rungs or addresses.
WARNING: Be aware that instructions not connected with lines back to the rungs
and power rail will be deleted when you compile your program.
As you have entered rungs, color code bars appear in the margin. Since this manual
is not printed in full color, please follow along with the example below using your
imagination or actually set it up on your own screen. The top screen shows a yellow
vertical bar to remind us that the rung has not yet been accepted (compiled). This
simply means that DirectSOFT32 is holding the modified rungs in memory and has
not yet converted the entries into the Operations Codes (Op Codes) that are
understood by the PLC.
In the second screen of the example, the rung is accepted (compiled) and a green
colored vertical bar appears in the left margin. You can accept each rung as you
enter it, or you can enter several rungs and accept them at the same time. To accept
the rung(s), press F8, use the Edit > Accept menu option, or use the compile button
from the Offline Tool Bar.
Before Compiling
Uncompiled changes
Yellow Bar by default
After Compiling
Entering a Program
Compiled (Accepted)
Green Bar by default
Compilation Errors During a compilation process, DirectSOFT32 will display any compilation errors. If
you have errors in the program, they appear in an output window. You can use the
Help File (F1) to gain additional information. You can quickly find the exact location
of the problem by “double-clicking” on the error shown in the output window. The
cursor will automatically move to the rung that contains the error.
¬ -
....when you compile it, you will
see an error message in an output
window.
If you make an error when
when writing your program...
Place the cursor on the error message and Then to go back to your ladder logic and
press F1. The Help File will give you additional make corrections by double clicking on the
information error message.
®
¯
“Double-click” on the
error message.
Entering a Program
Common Mistakes
Failure to Enter the New users will typically open a project and immediately try to perform editing
Edit Mode functions. Remember that you must first enter the editing mode. You can tell if
you are in the editing mode by looking at the cursor. If it is not a hollow cursor you are
in the Edit Mode. If the cursor is hollow you are in the Browse Only Mode. Press
CTRL + E to enter the Edit Mode.
AND above a JOIN The rule is that after a vertical wire has been dropped to AND a sub-rung with a
midline output, no additional input logic may appear on the leg of the midline output.
Trying to Do a Remember you must first select the rung or rungs to be copied or cut. If you do not
Copy or Cut have anything selected prior to selecting Cut or Copy, then the software has no idea
Without Selecting what you want to cut or copy. In fact, if nothing is selected, the words Cut and Copy
the Rungs will be gray when you look on the menu under Edit of the Menu Bar.
Entering a Program
In This Chapter. . . .
— How to Turn Documentation ON or OFF
— Using the Documentation Editor
— Documenting and Assigning Nicknames
— Entering Rung Comments
— Entering Stage Comments
— Importing and Exporting
— Preventing Loss of Documentation
6--2
Documentation
Documentation is the text associated with the components and structure of your
DirectSOFT32 program that you add for greater clarification. It may refer to
elements, wiring, rungs, or stages. All of the documentation options are turned ON
by default when the Options window is first opened.
Options Dialog You can turn OFF the documentation types in each view, and leave the types that
you want to select ON. The types of documentation are turned ON or OFF via the
Options dialog. There is a tab for each view. The quickest way to open the Options
dialog is to place your mouse cursor in the programming window of your Ladder,
Stage or XReference Views; and then, click the right mouse button. This pops up a
menu that, among several choices, allows you to select the keyword Options. This
brings up the Options dialog. You can also select View from the main menu and
then Options.
Most of the Options Dialog features were covered in Chapter 4, however for
documentation being turned ON or OFF, only the Ladder, Stage and XRef tabs are
needed. Shown above is the Ladder tab. Check the boxes beside the types of
documentation to be visible in each of the applicable views. Detailed explanations of
each type of documentation are on the adjacent page.
Click on the OK button, after making your choices.
NOTE: Once you click on OK for the settings of the Options dialog, DirectSOFT32
saves the documentation settings for that view. If you click on the New Views box,
these will become the new defaults for the current project as well as any new projects
opened thereafter. You can change the settings again at any time.
Specific Most documentation refers to individual elements and is therefore specific in nature.
Documentation Listed below are the four types of documentation used.
Documentation
D Elements - the addresses for the single elements, i.e. X1, Y10, etc.
D Nicknames - alpha-numeric names can be used for the various types of
program elements. It is usually easier to remember the name Start
Switch than it is to remember that X1 is the input point for the switch.
D Descriptions - longer descriptions of the element. You can also use this
area to include brief troubleshooting steps, etc.
D Wiring Information - the wiring information can help you quickly identify
the panel wiring for a specific point. For example, you may know that X1
is the Start Switch, but you usually have to find another print to know
which wire number to start tracing.
Description
Wiring Info
Nickname
Element
General Comments are general descriptions that are best suited for descriptions of a
Documentation program rung, or a section of the program.
D Rung Comments - rung comments are assigned to an individual rung.
D Stage Comments - if you are using the Stage instructions, you can also
add comments that describe the contents of any stage.
Stage
comments
Rung
comments
The Documentation Editor allows you to quickly and easily enter the nicknames,
wiring information, and descriptions for program elements. You can access this
editor by using the Tools > Documentation Editor menu option or the Hot Key,
CTRL + D.
Using the Scroll You will also notice some scroll command buttons that allow you to scroll through the
Command Buttons various data types. These are shown (in each direction) as ", "", "R, "|, etc.
Each of these buttons has a different function.
"R — Moves to the beginning of the next data type (X, Y, C, etc.)
Copying Although it is not readily obvious, you can also use several Hot Key commands to
Documentation copy, cut, paste, etc. within the documentation fields. For example, if you have
Documentation
Between Elements entered a lengthy description for a point, and other points are very similar, you can
copy the information. The following example will demonstrate how this performed.
1. Position the cursor in the cell you want to copy.
2. Double Click the left mouse button. Press and hold the left mouse button
and drag the mouse to highlight the text. (You can also use the SHIFT +
arrow keys to select the information.)
3. When you have the cell you want to copy highlighted press CTRL + C. This
copies the text to the windows clipboard.
4. Move to the element where you want to paste the information. (You can use
the scroll command buttons or Find Element.)
5. Position the cursor over the location where you want to paste the text and
click the left mouse button.
6. Press CTRL + V. This pastes the text.
You can also use the other Hot Keys to work on selected text. Use Delete to quickly
erase text, use CTRL + X to cut text to the windows clipboard, etc.
NOTE: You will notice when copying a nickname, the new nickname will have a ’?’
before and after the new entry. This occurs because each nickname must be unique.
Creating a Element nicknames are used more often than any other type of documentation. As
Nickname without you program with the nicknames, you do not necessarily have to assign an element
Assigning it to an address when you enter the contact, coil, etc. You also have the option of entering
Element wiring information or a description even though you may not know the actual address
used in the PLC system. Below is an example of a contact with a nickname.
Later Assigning If you have used unassigned nicknames in the program, you must assign element
the Nickname to an addresses before the program can be downloaded to the PLC (the PLC does not
Element understand the nicknames, it only understands the element addresses). You can
assign the nicknames by clicking on the Assign Nicknames command button in the
Element Browser or, you can use the Tools > Assign Nicknames menu option.
With either method, the Assign Nicknames Dialog appears.
As shown on the previous page, there may be instances where both the element and
nickname have wiring information and descriptions. By using the small selection
Documentation
buttons, you can mix and match the information as necessary to achieve the desired
result.
D Source Nickname — This column shows the list of nicknames. Click on
the nickname with the mouse to select it.
DSource Element — This column is used to select the element that you
want to assign to the nickname. You may have already entered a
nickname, wiring information, or description. Note, if you assign an
element that already has a nickname, the nickname that appears in this
column will become unassigned. This is because you are assigning a
new nickname to the element by using these procedures.
D Result — This column shows the result of your selections. This is useful
because it helps to avoid accidental mistakes in the selections.
First open the Assign Nicknames Dialog box as explained on the previous page.
Now type in the Element. Check the source and results columns to make sure there
are no conflicts with previous assignments. Click on Assign. A confirmation dialog
pops up. Click on OK to confirm and close the dialog. The element name will now
appear in the ladder logic. This assumes you have not removed the default X mark
beside the word Elements in the Options dialog (accessible under View).
Click on Assign
Confirmation Dialog
Rung
Comment
Comments are Start typing the comments as necessary. Since the ladder view is a full screen editor,
Free-Form you do not have to backspace an entire sentence to fix a spelling error. Instead,
position the cursor over the location you want to edit and click the left mouse button.
Start entering new text.
Selecting Rungs You can use the Previous or Next command buttons to scroll through the rungs. You
for Comments can also find a specific rung by using the Goto command button. DirectSOFT32 will
only let you enter comments for rungs that contain program elements. You cannot
enter comments for rungs that do not contain instructions.
Using the Scroll Even though they are not shown on all of the example screens, the software will
Command Buttons show some scroll command buttons that allow you to scroll through the various
comments. These are shown (in each direction) as ", "", "|, etc. Each of these
buttons has a different function.
" - Moves one rung at a time.
"" - Moves 5 rungs at a time.
"| - Moves to the end of the program.
Saving the When you have finished entering the comments for all the rungs, click on the OK
Comments command button. This will save the comments to disk.
Copying You can also use several Hot Keys to copy, cut, paste, etc. between rungs.
Comments 1. Position the cursor over the beginning of the text you want to copy.
Between Rungs 2. Press and hold the left mouse button. Move the mouse and notice the text is
highlighted. You can also use the SHIFT + arrow keys to select the text.
3. Once the text is highlighted, release the left mouse button.
4. Press CTRL + C. This copies the text to the windows clipboard.
5. Locate the rung where you want to paste the information. (You can use
Previous, Next, or Goto.)
6. Position the cursor where you want to paste the text and click the left mouse
button.
7. Press CTRL + V. This pastes the text.
There are also other Hot Keys; Delete to quickly erase text, CTRL + X to cut text, etc.
Moving Rung DirectSOFT32 also allows you to easily move rung comments from one rung to
Comments another. You can move the comments for a single rung or a group of rungs. To move
Documentation
comments, click the Move command button.
There are several fields that you use to specify the source and destination.
D Source — This is the beginning of the group of rung comments that you
want to move.
D Number — This is the number of rungs from the starting point. For
example, if you entered 5 as the source and 3 as the number, then
DirectSOFT32 would move the comments for rung 5, rung 6, and rung
7. This number defines the number of source rungs and the number of
destination rungs that will be written.
D Destination — This is the starting point for the destination. For
example, if you entered 10 here, then the comments would be moved to
the group of rungs starting at rung 10.
D Units — There may be times when you want to use rung numbers or
addresses. It is generally easier to use rung numbers with most any
type of program. However, if you are using the address display option,
you can use this field to move the comments by address location.
Once you have completed the entries, click OK to move the rungs.
NOTE: You can overwrite existing rung comments with this feature. DirectSOFT32
always provides a confirmation prompt before it completes the move. The message
reminds you that any overlapping comments will be changed. You will see this
message even if you do not have overlapping rungs. It is a reminder that you can
overwrite existing rungs.
Use Stage View If you are using the Stage instructions you can also enter comments for each stage.
However, you must display the program in Stage View before you can enter them.
You can choose Stage View by using the View > Stage View menu option.
To enter Stage comments, you must be working in either the flowchart portion of the
window or the Stage comments portion of the window. Click the mouse in either
window and then use the Tools > Comment Editor menu option or the Hot Key,
CTRL + K. The Comment Editor appears, but now you will notice the comments are
for Stages instead of rungs. There is also another way to access the Stage Comment
Editor. Position the cursor over the Stage Comments portion of the window and
double-click the left mouse button.
Stage
Comments
Comments are You can start typing the comments as necessary. Position the cursor over the
Free-Form location you want to edit and click the left mouse button. Start entering new text.
Documentation
Selecting Stages You can use the Previous or Next command buttons to scroll through the Stages.
for Comments You can also find a specific Stage by using the Goto command button.
Saving the When you have finished entering the comments for all the stages, click on the OK
Comments command button. This will save the comments to disk.
Copying You can also use several Hot Key commands to copy, cut, paste, etc. between
Comments Stages. If you have entered a comment, and some other Stages are similar, you can
Between Stages copy the information.
1. Position the cursor over the beginning of the text you want to copy.
2. Press and hold the left mouse button. Now move the mouse around. Notice
the text is highlighted. (You can also use the SHIFT + arrow keys.)
3. When you have the text you want to copy highlighted, release the left
mouse button. Now the text is selected.
4. Press CTRL + C. This copies the text to the clipboard.
5. Find the Stage where you want to paste the information. (You can use
Previous, Next, or Goto.)
6. Position the cursor over the location where you want to paste the text and
click the left mouse button.
7. Press CTRL + V. This pastes the text.
You can also use the other Hot Keys to work on selected text. Use Delete to quickly
erase text, use CTRL + X to cut text, etc.
DirectSOFT32 has the capability to import and export the ladder program, element
documentation (nicknames, wiring info, and descriptions) and rung comments from
a user project. The Import/Export feature uses Comma Separated Variables (CSV)
and Comma Separated Text (TXT) data formats. For example, you can use
Microsoft Excel to generate your Element Documentation and import it directly into
your DirectSOFT32 project. You will also be able to export the existing element
documentation to a CSV file that can be used in diagrams in a program such as
AutoCAD.
Exporting Program The project must be open to export program documentation. There are three export
Documentation options to chose from, Program, Element Documentation and Rung Comments. For
example, to export a program, the following windows will show the steps to use to
export the program. From the File menu, chose Export then select Program... to
export a program file.
In the next window, select the folder where you want to export the program to, enter
the program name and click the Save button.
Documentation
A drop down window will appear so the options can be selected and saved. See the
Export Options window below.
The text file can be opened with Notepad or equivalent word processor. The window
Documentation
below is an example of what can be exported. You will see Rung Comments and
Element Comments.
Exporting Element Element information can be exported from a project to a .csv file. Using another
Documentation example program, the following windows will show the steps to use to export the
documentation. From the File menu, chose Export then select Element
Documentation... to export the documentation.
There are two different formats which can be selected to export, Standard and
EZ--Touch formats. Both formats generate a .csv file in spreadsheet form.
This is the standard format showing a Microsoft Excel spread sheet with the
Documentation
element (address) in column A, the nickname in column B, wiring info will be
in column C and element comments are in column D.
This is the EZ--Touch format showing a Microsoft Excel spread sheet with the
tagname (element) in column A, the value type in column B and element in
column C.
If unassigned nicknames are exported, they will appear in the resultant text as the
following types:
UB -- unassigned bit
UBY -- unassigned byte (useful only for R memory in the DL305
UW-- unassigned word
UDW -- unassigned double--word (nothing yet is a double--word natively in any PLC)
UU -- unassigned unknown (used for uninitialized types, should never be used)
Exporting Rung The program rung comments can be exported from a project to a text file and a
Comments printout can be obtained using Microsoft Notepad or equivalent word processor. The
Documentation
following window will appear after selecting Rung Comments.... Select the program
which has the comments to be exported from this window, then click the Save
button.
Importing a There may be a time when it is necessary to import a DirectSOFT32 program which
Program has been previously edited and exported as a text file. This could be an entire
Documentation
program or just a few rungs with element nicknames and comments. Use the
following steps to guide you through the import procedure.
Begin by opening the DirectSOFT32 Launch window. Click the Cancel button in the
New window,then, select File > Import > Program
The Import Program window will appear. Select a previously exported DirectSOFT
program to be imported. Chose the program text file and click Open.
Documentation
The complete imported program will appear such as the example shown below. In
this example, all comments, element comments, and nicknames are shown with the
program.
Documentation
This is done by, first, saving and closing the current project. Now, click File > Import
> Program. The program to be imported is selected and opened as shown in the
previous example.
Importing Element In order to import program documentation a project must be open. This project can
Documentation be one which is currently open. The most typical method for importing element
Documentation
To import the element information, select File > Import > Element Documentation.
The following window will appear. Select the folder and the .csv file to be imported.
Also, notice the Import Method box on the right side of the window. There are three
methods to chose from: Merge (.PRJ priority), Merge (.CSV Priority) and Delete
existing. Selecting one of the three methods will determine the course of action
which will be taken if the currently open project and the import file have duplicate
nicknames. If .PRJ Priority is selected, the nicknames in the import file will be added
to the project file. If there are duplicates, the nickname in the project file will be kept. If
.CSV Priority is selected, the nicknames will be added to the project file. If there are
duplicate nicknames, the import file will overwrite the ones in the project file. If
Delete Existing is selected, all of the element documentation of the open project will
be deleted, then it will be rebuilt with the contents of the .csv file. Click the Open
button to execute the import.
If the following element types are imported, they will appear in the DirectSOFT32
documentation editor with “----------” under the element type column.
UB -- unassigned bit
UBY -- unassigned byte (useful only for R memory in the DL305
UW-- unassigned word
UDW -- unassigned double--word (nothing yet is a double--word natively in any PLC)
UU -- unassigned unknown (used for uninitialized types, should never be used)
Documentation
When the element documentation is imported, the Documentation Editor will be
updated with the imported information. This can be verified by opening the
Documentation Editor from the Tools option on the main menu bar. When the
elements are created or if they are already used in the program, the element will be
updated with the new information.
Importing Program comments are imported like the Element Comments description above.
Comments Select Import > Rung Comments from the File option button on the main menu
bar. Then select the text file which has been previously exported. Also select the
Import Method to use. Merge (.PRJ priority) if the current project is to remain in
place when the import is executed. If comment matching occurs, you will be asked
which one to update, the imported one or the existing one. Selecting Merge (.TXT
priority) will allow the imported comments to overwrite the existing ones. Delete
Existing will delete the current comments and update with the imported comments.
Insert Instructions The Insert Instructions From File feature will allow you to insert mnemonic text
files as instructions within your current project. Mnemonic instructions can be
Documentation
inserted one time or several times within a program. To use this feature, you must
edit a text file, such as, a file written with MS Notepad. This file must be written in
mnemonic text form like the example below. Note that rung comments, element
descriptions and element comments can be edited within the text file to be inserted.
The text file needs to be edited in the same format as shown, with a PLC type at the
beginning, #BEGIN, the documentation and #END. Quotation marks are placed
around each line of rung comments. Of course, the ladder mnemonics is also edited
within the text file. The element documentation must be in this form: “element
address”, “element nickname”, “wire number”, “comment”. Quotation marks (”) must
be used with each entry followed by a comma (,). If an entry is to be left blank, the
quotation marks must not be omitted.
PLC type
Ladder mnemonics
“Address”,”Nickname”,“Wire number”,“Comment”
The mnemonics text which is to be inserted can also be edited without comments
like the example below. Note the PLC type is at the beginning of the text.
PLC type
To execute the insert instruction, you must be in the Edit Mode. Click on Tools >
Insert Instructions From File.
Documentation
The Insert Instructions window will appear. Select the folder and text file to be
inserted. Chose either Insert At Beginning, End or Before Rung Number. You can
also chose how the element documentation should be imported involving “collisions”
with existing program documentation. Select Merge (.PRJ Priority) if the existing
project documentation is to remain unchanged. Select Merge (.TXT Priority) if the
new documentation is to overwrite the existing documentation in the program. If the
program element documentation is not to be changed, select Ignore Element
Documentation. Click the Open button to execute the instruction.
and documentation.
Restore One option that the Insert Instructions function has that you may find useful is the
Restore feature. Each time that the Insert Instructions is executed, a backup copy
of the entire program is made before the insert occurs. If you find that an error was
made, i.e. wrong code, you can click on the Restore button and your program will be
restored to the original state.
Documentation
The documentation you create with DirectSOFT32 is stored on disk. Each time a
project is opened with DirectSOFT32, there are multiple project files opened. You
need to apply the same precautions you would with any other database package to
avoid data loss.
Backing up the files is the best insurance to prevent loss. Any time you intend to
make changes to a project, make a copy of the project before starting. If something
goes wrong, your original will remain intact and unchanged. There are four different
methods to preserve your project as you create the program and after the project has
been completed. The four methods are: Save Project (to disk), Save Project As,
Backup and Export Program.
Save Project Save Project to Disk will be used to save your project often. Your entire project, i.e.,
program and all documentation will be saved to the drive that you are working from,
usually the C: drive. From the File menu, select Save Project > to Disk.
To save your project to a different folder than the one that you are working from or to
save your project to a floppy disk, select Save Project As from the File menu. In the
Save As window select the folder or the floppy disk drive where you want to save the
project to. Name the project, click the Save button and the entire project will be
saved.
NOTE: The Write to Disk button, , on the toolbar saves the ladder
program only.
Backup Project The backup feature is another way to save your project. By clicking on the Backup
button, the entire project will be saved. When the Backup Project window appears,
Documentation
you can either use the default date/time stamp to save the project or rename the
folder. You can also select a different drive to backup your project to.
The last backup method is to use the export program feature as explained
previously. This method will save your program to a text file. One advantage of the
text file is that it will allow you to edit the program or comments without using
DirectSOFT32.
If you intend to use a floppy disk for backing up or for transporting the project to
another computer, consider scanning the floppy disk frequently to make sure there
are no defects on the diskette and that there is as much free space available as
possible.
Close all other applications that may be running to allow as much free RAM as
possible. This not only lessens chances of memory conflicts, but also allows
DirectSOFT32 to run much faster.
You may want to consider printing a hard copy of the documentation at longer
intervals. If your computer breaks down or you lose all of the data due to a disk crash,
you will at least have a hard copy.
In This Chapter. . . .
— Accessing Other Views
— Stage View
— Mnemonic View
— XRef View
— Usage View
7--2
Other Views
NOTE: When using a PLC that supports PID loops, you will also have access to the
PID view (refer to chapter 12 for more information on PID).
Ladder, Stage, Ladder, Stage, Mnemonic and Xref Views can be accessed by selecting View
Mnemonic and from the menu bar and then clicking with your mouse to select the view of your
XRef Views choice. Multiple views can be open at the same time. You may want to use the Tile
Other Views
feature (Windows/Tile) from the tool bar to help organize the various desktop views.
Usage View The Usage View is a subfunction of XRef View. To access it, open the Xref View and
click on the Usage View icon. Having done so, you will then see a window that shows
you which addresses of the various I/O elements are being used in your program.
Usage View
Click on Usage View icon
Other Views
more compact, and easy-to-follow flow diagrams. Consult your PLC User Manual on
how to use Stage instructions in your ladder logic.
Below is the Stage View. Notice that when you open Stage View, a ladder sub--view
is also visible. The part of the ladder program being displayed as Stage in the upper
window, is also shown as ladder logic in the lower window. The two windows are
synchronized. When you click with the left mouse button on any element in the Stage
part of the view (top portion), the Ladder Logic (lower portion) will scroll to the same
position in your program. This also makes troubleshooting your program easier.
When you are testing your program on-line with your PLC (with Status ON), both the
Stage portion and Ladder portion of Stage View will track with each other, showing
you the power flow and transitions as they occur. If you want to additionally look at
another area of Ladder Logic at the same time, you can open Ladder View also and
tile the two windows.
Stage portion
Comments
Ladder portion
Comments Window Another handy feature of Stage View is the comments window. Refer to the
for Stage View Documentation chapter for details on entering stage comments.
Stage Components If you are viewing the Stage portion of Stage View and are uncertain what a
component means, click on it with your mouse, and the corresponding ladder logic
equivalent will be pinpointed in the lower window. You can also consult the Help
screens for further clarity.
Mnemonic View
Great for Helping There are times when DirectSOFT32 users will use a handheld programmer to
with Handheld modify a program originally written in DirectSOFT32. Since the handheld
Programming programmer uses mnemonics and not graphic objects which DirectSOFT32 uses,
the information available in the Mnemonics View is much more useful for reference.
Open the Mnemonics View for your written program, and send it to the printer. You
can carry the hard copy to where your PLC is located. Consult your PLC manual for
details on the exact key strokes required for entering each mnemonic. Note there are
no display options for the mnemonic view.
Other Views
XRef View
Normal View Sometimes it is useful to be able to see which instructions you have used and where
they are used in the program. For this need, the XRef (cross-reference)View is the
view to use. By default, when you enter this view the cross-reference is given in the
mnemonic order they appear in your program. This is called the Normal View. What
is shown in the XRef View is dependent on the Current Query. The Current Query is
the collection of elements checked off when you set the Options in the Options
Dialog. For example, if you checked off nicknames, they are in the table. See the
Help files for more details on Current Query.
Other Views
The Default Normal View shows
the element id or nickname,
rung, address and instruction.
The id or nickname will match
the Current Query. The current
Query is determined by what
options you have selected from
the Options Dialog. See the
Help files for more details
concerning Options and Current
Query.
Rung View If you want to see the information on a rung by rung basis, click on the Rung by Rung
Icon. It is the third icon from the left on the tool bar. The curved arrow icon will allow
you to go to a specific rung. The left and right arrowhead icons allow you to advance
forward or backward through the program one rung at a time.
Usage View
As mentioned earlier, the Usage View is actually a subfunction of XRef View.
Sometimes it is hard to remember which of the I/O or timer/counter element
addresses you have used in your program and which ones are still available. The
Usage View provides a quick way to scroll through all of the available data types and
to see how your program is using the available range of elements. The second
column of the view shows you bit-by-bit what is in use.
Other Views
Usage View
When you see X’s enclosed with
brackets, it means that a range of bits
are being used. For example, the rung
shown below might be responsible for
the usage reported in Usage View for
Y0 to Y3:
X11 Y0 Y3
RST
Usage View Icons When accessing the Usage View, you will have eight icons on a bar at the top of the
view. The first two buttons allow movement back and forth between Usage View and
Xref View. These buttons have been discussed previously. An explanation of the
remaining six buttons is given below. In most cases, the right--hand button will be
grayed out, i.e. disabled. You either have the auto-rebuild feature enabled in the
DirectSOFT32 Options dialog (File/Options from menu) or you have not made any
changes to the program that would require updating the usage.
If you look at the Options dialog in the tab for XRef DB, you will see the Auto-rebuild
is enabled by default. If you were to disable this by removing the X in the box, you
would be in manual update mode. The rebuild icon in the usage window would
become black each time you make changes to your program. When you are in this
manual mode (non--auto--rebuild), you can update by clicking on the icon only.
Unless you have a slow computer where it takes up too much processor time doing
Other Views
the auto-rebuilding, there is not any reason to disable the Auto-rebuild in order to do
this operation manually.
In This Chapter. . . .
— Printing Current View and Documentation
— Printing Multiple Views and Documentation
— Print Setup
— Print to AdobeR AcrobatR
— Print Preview
— Troubleshooting Printing
— Sample Printing Setups
8--2
Printing
When you first enter the Print All If you want to print a specific
dialog, all of the available options View or Views then place an X
and data types are selected. beside the View or Views you
wish to print.
Printing
Remove X’s from data
types that you do not
want printed.
Printer Setup
Both Dialogs Allow Whether you are using the Print or the Print All dialogs to setup your printing, each of
You to Customize these dialogs allow you to specify the printer to be used along with the
the Printer and Its printer-specific details.
Parameters
Both the Print and Print All dialogs have a Printer Setup button to select
specific printer parameters.
Print a PDF If you have AdobeR AcrobatR PDF Writert, you can print a pdf file by simply
selecting the Acrobat PDF Writer in the Print Dialog window. Acrobat Distillert can
also be selected if you have this option.
DirectSOFT32 The Printer Setup dialog is a common dialog. It is the same dialog you encounter in
Accesses the most Windows software applications. You can set the paper size, type of printer, and
Standard Printer printer-specific options. If you do not setup the printer, it will use the default settings
Setup Dialog previously set either through Windows itself, or some other software that accessed
the Windows setup dialog.
Printing
Print Preview (The Tip to Successful Printing)
Print Preview It can be beneficial using the Print Preview feature. You access Print Preview from
Setup the File selection on the menu. Using Print Preview, not only will potentially prevent
the waste of printing paper, it will help save time by not printing something over
again. Most of the dialog is self-explanatory. Below are callouts of some of the more
unique features.
Set margins
Optional Heading
Print Preview When you click on OK in the above dialog, you are given the Print Preview. Most of
the buttons on the menu bar are self-explanatory. If the preview does not look the
way you intended, click on the Settings button to make changes.
Troubleshooting Printing
Printing Problems If your program looks good in Print Preview before printing it and some parts of it do
not appear on the printed copy, there is most likely a problem with the color setup.
When generating the data sent to the printer, DirectSOFT32 will attempt to make the
printed copy look as close to the on--screen version as possible, including the colors.
If you are using a color printer, there probably isn’t enough contrast between the
background and whatever is being printed. If the printer is black and white, the same
lack of contrast could be the problem since DirectSOFT32 tries to generate
gray--scale colors to match the 3--D Tokens colors. Either one of the following
procedures can be used to solve the problem. If you have used View > Color Setup
to change the colors used for editing your program, select View > Color Setup
again, and chose Defaults to reset the color configuration back to the installed
colors.
As a general rule, if the ladder view looks correct in Print Preview but does not show
up correctly on the printed page, the first thing to suspect is the printer driver being
used. Check the printer manufacturer’s web site for the latest driver for your printer,
then download it and install it in your computer. Check the ladder view in Print
Preview and reprint the program.
There may be a corrupted printer setting file in DirectSOFT32 if DirectSOFT32
crashes whenever Print or Print Preview is selected. Each project has a printer
settings file that is generated whenever a new project is created. It will reside in the
project folder with the other project files, and it will have an extension of .prt. To
correct this, close DirectSOFT32 and delete this file by using Windows Explorer.
Printing
Open DirectSOFT32 and try the Print operation again.
Another reason for DirectSOFT32 crashing when selecting Print or Print Preview
may be from corrupted global printer settings files. There are two files in
DirectSOFT32\Program\Bin sub--folder named PrntServ.rst and Program.opt. The
two files can be deleted from the directory after closing DirectSOFT32. Find the two
files by opening Windows Explorer. Once the files have been deleted, open
DirectSOFT32 again and try the Print operation.
Printing the To print only the documentation for all elements of your program, use the Print All
Documentation dialog. This is accessed as File > Print All. At the top of the dialog, remove all of the
Only (No Views) X’s in the boxes except the one for Docs. Remove the X’s for unused and
unassigned data types.
Printing the XRef If you want to print only the cross-reference information, use the Print All dialog.
View with All the Select File > Print All. Remove all of the X’s at the top of dialog for everything except
Documentation XRef. Remove the Usage View X. Remove all the X’s for unused and unassigned
data types.
In This Chapter. . . .
— Establishing PLC Links
Creating a Standard Link
Creating a Modem Link
Creating a Ethernet Link
— The Online Toolbar
9--2
Creating and Managing Communication Links
DIf you have any PLCs connected to your personal computer when you start
DirectSOFT32, and no links are present, the software will automatically
build links for a PLC that matches some favorite settings. They are:
— DirectNET (CCM) -- 19.2, odd parity, ASCII mode, station address 1
— K-sequence -- 9600, odd, station address 1
For example, if you have a single DL405 CPU connected that meets this
criteria, there will be an entry created in the menu tree under the Comm
Links icon.
DLink settings are stored by name. You can select names that mean
something, instead of a ambiguous number assignment.
DYou can quickly view (or edit) the link settings by right clicking on the link
name in the menu tree and selecting Edit Link.
D You can go online with the PLCs by double clicking on the link name in
the menu tree with the left mouse button.
Creating and Managing
Communications Links
Create a Standard The first section will discuss configuration of a link that uses standard serial ports. If
Serial Link you are creating a serial link that will connect through a modem, go to page 9--7 for
modem-specific information. If you need to create an Ethernet link, go to page 9--16
for information pertinent to Ethernet links.
1. The Link Wizard can automatically determine the majority of the
communication settings. It will search for any existing connections and try
to establish the link. If there is no link present or if you want to establish a
new link, you can activate the Link Wizard in the DSLaunch Window by
right clicking on the Comm Links icon and selecting Add Link.
Right click to
select Add Link
2. First, select the port where the PLC is connected. After making your choice,
click on Next.
3. Select the PLC family by clicking once with the mouse on the appropriate
choice. If you are unsure of the PLC family but know which communications
protocol to use, select the Not Sure choice. If you are using a DirectLogic
Compatible PLC the Link Wizard can try and detect the model
automatically. Click on Next when you are finished.
5. If the PLC has been configured to a node Address other than 1, enter that
address now. Click Next when finished.
Link Status After creating a link, the name of the link will be displayed in the menu tree under the
Comm Links icon. When you click on the link all of the configuration information will
be displayed on the DSLaunch Window screen. The status field is color--coded to
help easily identify the link status.
DGreen — link is already enabled (means it is active and you can use it).
DYellow — paused (you are currently changing the link parameters).
DRed — link is disabled (inactive). This does not indicate a problem with the
PLC, but that you cannot communicate until the link is active. If a
link becomes disabled, DirectSOFT32 will automatically attempt to
enable the link when you double-click on the link project.
To go Online with the PLC -- double click on the link name with the left mouse
button. If there is a program already in the PLC, it will be displayed when the Program
Window appears. Below is an example.
Available
Links
Creating and Managing
Link
Communications Links
Status
Link
Information
Creating a Modem Establishing modem links have changed from the standard serial link.
Link DirectSOFT32 now uses Telephony Application Programming Interface (TAPI) for
modem configurations. The TAPI protocol allows applications to control modems or
other telephony devices for operations such as dialing, answering, or disconnecting
a connection. With the TAPI protocol, all of the modem support is centralized by the
Windows operating system.
By using the TAPI interface, you will use your Windows modem setup utilities to
configure the modem. Configuring the modem in this matter should simplify the
setup process and allow you to select the most recent drivers for your modem.
If there is an existing modem connected to your PC for Internet or fax use, the
modem setup will have to be changed. Some of the features will have to be disabled
in order to communicate to the PLCs. To avoid making any changes to the existing
modem configuration, you will need to install the same modem a second time.
Windows will change the name by adding a number to the end i.e., “modemname#2”
each time you add the same modem to your PC. Refer to your PC and/or modems
installation manual for additional information on setting up your modem.
NOTE: If you are using the AutomationDirect MDM--TEL serial modem, refer to the
ADC MDM--TEL Modem setup folder on the DirectSOFT32 cd that came with this
manual before trying to establish a link through the modem setup.
Modem Setup The first series of examples were performed in Windows 2000 and will illustrate how
to configure the modem connected to your PC. The examples may differ depending
on your Windows operating system.
1. Install modem if not already installed. Refer to your modems
documentation for installation information. If your modem is to be used for
other devices you will need to install it a second time.
2. Once you have successfully installed your modem, you will need to edit its
properties. In the Windows Start field, select Settings > Control Panel.
3. Select the Phone and Modem Options icon. A dialog box with all available
modems installed will appear.
4. Choose the Modems tab, then click on Properties at the bottom.
7. Make Port speed 9600, and choose None for Flow control.
8. Click on the Advanced tab and choose 8 Data bits, None Parity and 1 Stop
bits.
9. Click OK until all dialog boxes are closed. This will setup your Windows
driver so DirectSOFT32 can use the Windows TAPI control when
accessing the modem.
Creating and Managing
Communications Links
Configuring the With the modem configured correctly, the link to the PLC can now be established.
Link The next series of steps will provide the information necessary for configuring the
link using DirectSOFT32.
1. The LinkWizard can automatically determine the majority of the
communication settings; however, you will need to manually setup the
modem specific information (modem type, phone number, etc.). To
activate the Link Wizard in the Launch Window, right click on the Comm
Links icon in the DSLaunch tree and select Add Link.
Right Click to
select Add Link
3. The Configure Link dialog box should now be present. First, choose the
PLC family and the PLC CPU Type. Click once on the appropriate item in
the PLC Family and a list of available CPUs for that family will appear to the
right. Click once to select the appropriate PLC Type. Also give the link a
name and description.
4. Click the Port tab of the dialog to display the port configuration dialog. This
dialog allows you to setup up the port to match your modem’s configuration.
Follow the steps below:
DSelect Modem in the Devices column.
DSelect the modem type that you configured earlier in this procedure. You
can verify or modify the settings by clicking on the Properties button
or you can create a new modem by clicking on the Add button.
DEnter the dialing information for your modem.
Creating and Managing
Communications Links
5. Click the Protocol tab to display the communication protocol dialog box.
This dialog allows you to further define the communication parameters.
Communication Links
No, the link configuration will simply be saved to disk.
7. After successfully creating a link, the Launch Window will have an entry for
the link you have created. The name that you assigned the link should
appear in the menu tree under the Comm Links icon. If the link is
highlighted, the main launch window screen will change with all of the links
information displayed.
Creating and Managing
Communications Links
Creating an This section will discuss the configuration of a link that uses a standard network
Ethernet Link interface card to connect to PLC Ethernet Communications Modules (ECOMs).
1. The LinkWizard can automatically determine the majority of the
communication settings. It will search for any existing connections and try
to establish the link. If there is no link present or if you want to establish a
new link, you can activate the LinkWizard in the DSLaunch Window by
right clicking on the Comm Links icon and selecting Add Link.
Right click to
select Add Link
3. This dialog allows you to choose the Transport and the Transport Protocol
to use. The Transport is nothing more than a network driver. Take note of
the following restrictions:
DIf the Operating System is Windows NT 4.0/Win2k/XP, the only Transport
option available to you is Winsock. Windows 98 will allow you to choose
either IPX interrupt or Winsock.
D If you select UDP/IP as the Transport Protocol, you must change the
IP address of the PLC ECOM module from its default value of
255.255.255.255 before you can connect to it. How to do this will be
explained in more detail on the next dialog.
4. DirectSOFT will use the Transport and Transport Protocol you specified to
scan the network for any Ethernet modules. After the scan is complete the
following dialog is displayed (look at the two sections of this dialog in some
Creating and Managing
Communications Links
Module List Each Ethernet module is assigned a unique 12 digit address at the factory,
called the Ethernet address. A sticker located either on the back of the
circuit board, the ECOM module or on the side of the module itself, will have
the Ethernet address printed on it. The Module List will display any Ethernet
modules it finds on the network, sorted by their Ethernet address. If you
select any device in the Module List, the current configuration for that
device is displayed in the fields in the Address Mode section.
DThe Query button executes a rescan of the network for Ethernet modules
using the same Transport and Transport Protocol specified in the
previous dialog.
DThe Setup... button displays a dialog box that allows you to assign a
Name, Description and IP address to the selected module.
D The Link Editor button displays a dialog box that will let you manually
configure the link parameters for a specific Ethernet module.
Address Mode Each Ethernet module must have some way of uniquely identifying itself on
a network. The Ethernet address, which is assigned at the factory, is most
always unique, but it is not always the most convenient identifier to
remember.
Fortunately there are three user-configurable identifiers available: the
Module ID, the Name, and the IP Address (the Ethernet address is not user
configurable). The Address Mode selection determines which of these
indentifiers DirectSOFT32 will use to locate the Ethernet modules on your
network.
The important thing to remember is that whichever identifier you choose for
the Address Mode, it must be unique on the network.
If you want to change the module’s configuration, click the Setup button
and make any adjustments needed for your network (this dialog is
discussed in detail on the next page). Click Next when you are finished.
If you click the Setup button, the following dialog box is displayed.
If you enter new values for a field, click the Update Module button to write
these new values to the EEPROM in the Ethernet module.
The Query Network button will initiate a rescan of the network using the
Transport and Transport Protocol previously specified.
Click the Exit button when you have completed any changes.
6. After successfully creating a link, the Setup Links dialog will now have an
entry for the link you have just created. The Link Enabled box is a visual
indication that the communication parameters for this link are correct and
the PLC is available for use.
Deleting Links Once a link has been created, it will appear on the DSLaunch window. If you have
several links there will be several link names listed. Use the following steps when
you want to delete a link.
1. Select the link from the DSLaunch window by clicking on the link icon with
the left mouse button. Press the Delete key. A Delete Link dialog will
appear.
2. Press the DELETE button to delete the link. Note: you cannot delete a link if
it is in use. For example, since you can have multiple windows active at the
same time, you may have a link in use by a window that is hidden from view.
Going Online By Using a Link — Double-click on the link icon with the left mouse button to
connect to the PLC. If there is a program in the PLC, it will be displayed when the
Program Window appears. If you use this method, DirectSOFT32 does not
automatically remember if there was a version of the program stored on disk (you will
notice the program window does not have a title). For example, if you had created
documentation for a program and downloaded it to the PLC, the documentation
would not be available if you double-clicked on the link to go online. This is because
the PLC does not store the documentation or the link parameters.
By Using the Projects List — Once you build a program and save it to disk, a
Creating and Managing
Communications Links
project title appears in the Projects folder/icon of the Launch window menu tree. If
the PLC was connected when you developed or saved the program, the program will
remember which communications link was used. If you double-click on the project,
DirectSOFT32 automatically attempts to reconnect to the link.
For example, if you connected a DL440, created a project, and saved it under the
name Press2, the project automatically stores the link. If you double-click on the
Project Name from the Launch Window menu tree, DirectSOFT32 will automatically
compare the program contained in the CPU to the project stored on disk.
Automatic Program When you go online, DirectSOFT32 automatically compares the program stored on
Comparison disk with the program stored in the PLC. The following is an example of the screen:
If the programs are different, you can choose to display the program stored on disk,
or the one contained in the PLC. Neither program will be overwritten unless you
specifically save the PLC program to disk, or download the program from the disk to
the PLC.
If you are not sure whether to use the Disk version or the PLC version, you can click
on Details. A window will appear that allows you to compare the program stored
on the Disk to the program stored in the PLC on a mnemonic level.
the element is entered, the current value of the element will be continuously read
from the PLC and displayed in the current value field. The new value field will be set
to what is first read from the PLC after each change is made to the element field (if the
view as is bit, then the new value will be set to the opposite of what is read from the
PLC). To change the value, type in the new value in the new value field (if the format
bit, select either Off or On).
PLC Mode Hotkey: CTRL+SHIFT+R
The PLC Modes dialog is used to set the current mode of the PLC. Select the mode
to be transitioned (Run, Program, etc.).
System The System Information dialog is used to view PLC type and firmware version
Information information as well as memory types and error information.
Syntax This dialog is used to display the syntax or duplicate I/O errors in the program which
Check is in the current PLC. To view the syntax errors, press the Syntax Check button. To
view the Duplicate I/O errors, press the Duplicate I/O Check button. The selected
errors will be displayed in the list box, and in the output window.
In This Chapter. . . .
— Using Status to Monitor Operations
— Monitoring Status with Data View Windows
— Changing I/O Points and Data Values
— Changing Data Values with the Memory Editor
— Troubleshooting with Test Mode Operations
— Trap Monitor
— Checking the DirectSOFT32 File Revision Numbers
10--2
Debugging and Monitoring
Use the
Debug
Menu
Click on Status
By selecting Status, you can monitor the status of the individual program elements
(On or Off). You can also monitor data values in memory locations, monitor timer and
counter current values, etc. The following is an example screen illustrating how the
status appears. Notice the active elements are highlighted.
Highlighting
shows element status
and Monitoring
Debugging
Selecting Status You can enable status for each individual view within a program window. For
for Each View example, while using Stage View, you can enable status for the flowchart portion or
the ladder portion individually. Click in the window you want to use and select the
Debug > Status menu option, click on the Status button, or use the Hot Key
CTRL+SHIFT+S.
Status ON for
the flowchart
Selecting Status You can also enable/disable status for all open views in a Program Window by using
for All Windows the Debug > All Status On and > All Status Off menu options. For example, if you
have a Stage View, you will enable status in the flowchart and the ladder view.
and Monitoring
Debugging
Anatomy of the The example shown below illustrates the basic components of the Data View
Data View Window window:
Element Column
Selecting the You can tailor the look and features of your Data View windows. Select View and
Options for Your then Options. You will see the Options Dialog. Click on the Data View tab. You will
Data View Window see the tab shown below:
You will usually want to leave the default General Settings (left hand side of the
dialog) as shown. Occasionally, you may want to enable Col 1 shows display
format (binary, hex/decimal, etc.). This feature will only show the display format in
the first column when working offline or with the Status OFF. However, not all
and Monitoring
requirements are the same. You can experiment with these general settings to see
Debugging
Three Types of Bit The right side of the Options Dialog tab for Data View allows you to enable or disable
Editing Available three different categories of bit manipulation and/or monitoring:
D Status Bits
D Pause Bits
D Override Bits
These types of bits and their availability are discussed in your applicable PLC user
manual. Be aware that some models do not allow individual bit manipulation. You will
have to research which bit settings are available for your PLC.
Types of Bit
Editing Available
If you enable all three choices, all the elements represented by individual bits will
have two to three pairs of buttons or indicators in their Edits column (assuming your
PLC supports all three types of bit settings). Only the output elements can use the
pause bits. They are the only elements that may have three sets of buttons or
indicators. You have an entire array of buttons and indicators available. The ones
shown above are default buttons. Click on any of the bit buttons in the dialog box, and
a selection window will appear as shown below. You can then select the buttons or
indicators required. If you do not want to repeat the selection of these options for
every Data View, you should also enable the New Views option at the top. Your
setup will be automatically duplicated each time you open Data View. Click on OK
when you are finished making all option selections.
Documentation Behind the Display tab of the Data View Options tab,is another tab labeled Doc.
Options for Data Click on this tab in order to setup your documentation options for your Data View
View Windows window. It is within this dialog you enable or disable what type of documentation you
want to be visible (Elements, Nicknames, Descriptions, etc.). Another important part
of the dialog is the Title field. It can change the Header of the Data View window.
NOTE: The Title field of the Doc options tab of the Data View setup should not be
confused with saving and naming a file. The Title field is not the file name, but rather
a convenient descriptive tag for identifying the window. This is useful when you are
debugging with several Data View windows open at the same time. The descriptive
headers make it easy for you to visually find the correct Data View to be watching.
Data View The word “modes” refers to whether or not you want the Data View window to be a
Mode Options Read Only or a Read/Write tool. If you select the Read Only option, you cannot write
edits to the PLC via the Data View window. You can also enable a feature that will pop
up a confirmation dialog every time you attempt to write Data View edits to the PLC.
This is a safety feature you may want to enable.
Making Entries in When opening a Data View window it will be blank. To make an entry in the list, type in
the Window the element address or the nickname. For example, you can type C1 or Test
Output1. Also, you could enter R000 for a data register or V1400 for a V-memory
location, or any other valid program nickname or memory location. The example
below has coil and counter elements entered while online and the Status On feature
enabled. The information can also be entered while being offline and/or with the
Status Off. If you work offline, later you can enable the Status On feature to observe
the elements and data while the program is running.
Using the Tile Throughout the examples shown, the Data View has been placed above the ladder
Feature for Better logic programming area. This is a convenient placement that allows you to observe
Viewing the activity on your ladder diagram as well as watch the data changes taking place in
your Data View. To position the Data View and Ladder Logic Programming as
shown, click on Windows and select Tile. Resize the windows as needed.
and Monitoring
Debugging
Selecting the Data At the top of the Data View window are two selection boxes that determine the
Format and Size of following items for each element:
Data Display D The data format binary, hex, etc., i.e.,you can access I/O points as a
single bit, or as a binary bit pattern.
D The size of the data display, i.e., one bit, a word, a double word.
You can pull down the box to see all available data format options. You must also use
the box on its right to designate the number of bytes to be read for each element. The
second box determines whether a bit, a word, or a double word is to be read. Of
course, for some elements this choice is made automatically, given the nature of the
element. For example, you cannot read a word for an element that only relates to a
bit (C1, X22, etc.).
Auto-Increment Occasionally you may need to enter a sequential list of things to monitor. For
example, you can monitor C0, C1,C2, etc. You could type in one entry after the other,
however there is an easier way. Enter the first element in the sequence, move the
cursor back up to the element, and then start pressing CTRL > ENTER for each
sequential entry you want entered. When you press these keys in a Data View, a new
entry appears that uses the same data type and format as the previous entry, and it
increments the new entry automatically. The different nicknames that may be
assigned are retained during this process.
and Monitoring
Debugging
Saving or Naming When building a Data View window, you have the option to give it a file name and
a Data View save. Use the following selections: Debug > Data View > Save from the main menu.
Window If creating a duplicate file under another name, use Debug > Data View > Save As...
NOTE: Naming and Saving a Data View configuration does not change the
descriptive header of the Data View window. To change the Header, see Page 10--7.
Writing Your Edits All of the edits go into a buffer prior to writing them to the PLC. Notice that you have
to the PLC three buttons in the upper right hand area of the Data View window. The button that
looks like a page with the corner folded clears everything out of the Edits buffer
without writing them anywhere. It clears any Edits that you have not written to the
PLC. The button with a single arrow pointing to a PLC writes only one edit at a time to
the PLC, and the other button with several arrows writes the entire contents of the
Edit buffer to the PLC.
NOTE: Writing of multiple edits will not happen simultaneously, but will be written
one at a time.
WARNING: Only authorized personnel fully familiar with all aspects of the
application should make changes to the program elements or data values. Changes
during Run Mode become effective immediately. Thoroughly consider the impact of
any changes to minimize the risk of personal injury or damage to equipment.
Deleting Entries You can delete an entry any time by clicking on the entry using the left mouse button
to select it and pressing the Delete Key. You can also delete the item by clicking with
the right mouse button to bring up the “local menu”, and then selecting Delete. A
third way of deleting the entry is to select Edit, then Delete from the main menu bar.
Deleted entries are not placed on the clipboard; and therefore lost.
Also, when you delete data from a Data View window, a blank space is created. You
cannot use the delete operation to eliminate the space. You can, however, re-use the
space.
Copying, Cutting, Copying or cutting an entry sends it to the Windows clipboard. From the clipboard it
and Pasting can then be pasted. Use CTRL + C for copy, or CTRL + X for cut, or CTRL + V for
Entries paste. You can also perform these operations using the respective selections from
Edit on the main menu bar.
WARNING: Because the Data View window follows the conventions of spreadsheet
pasting, be aware that the pasting operation will overwrite any field that has been
selected prior to the paste. Consequently, pasting is preferably performed to empty
fields or write to fields with data you want to replace.
TIP: Users frequently want to move and organize data in a an existing Data View
window. To keep from overwriting data accidentally, the following is suggested:
1. Save the Data View by selecting Debug, then Data View, then Save.
2. Select and cut (to the clipboard) all of the rows of data below the point
targeted for insertion.
3. Move your cursor down from that point however many rows you are going
to need for the targeted data that will be pasted. For example, if the data you
are eventually wanting to paste will take up two rows, move down to the
third row. Select this row.
4. Now paste the data (the data that is being moved out of the way) from the
clipboard to your Data View window. Above the data moved, you now have
the needed blank space available for the final targeted pasting.
5. Select the targeted data. Then cut or copy the data to the clipboard.
6. Finally, paste the targeted data from the clipboard to the space you had
allocated for this final pasting.
7. Inspect the pasting operation, making sure nothing was overwritten. If
satisfied, Save your Data View again incorporating your changes.
Working with a When selecting Data View entry data for copy or paste, you can use the same
Range of Entries method shown earlier for selecting rungs of ladder logic. Use the SHIFT + arrow
keys to select the range of data horizontally or vertically. You can also click the left
mouse button and hold on the first entry, then drag the mouse down to the last entry.
and Monitoring
To delete a range of entries, select the range (as described above), then choose
Debugging
WARNING: Only authorized personnel fully familiar with all aspects of the
application should make changes to the program elements or data values. Changes
during Run Mode become effective immediately. Make sure you thoroughly consider
the impact of any changes to minimize the risk of personal injury or damage to
equipment.
Changing Values As you learned in the previous section, you can use the edits field of the Data View
from Data View window to make dynamic changes to I/O points and values that are stored in
memory. With respect to changing the status of an I/O point, this can be performed
by using one of the dynamic edit buttons available. Values in memory can also be
changed in the edits column by typing a new value. Remember that any edits in Data
View will not take affect until you write them to the PLC.
Using the Change You can also turn on I/O points, write values to memory locations, etc. by using the
Value Window Change Value dialog box. You do not necessarily have to enable Status to change a
Instead value, but it is highly recommended to see visible results.
There are several ways that you can access this dialog box.
D Click on the element you want to change (in any window) and then use
the Debug > Change Value menu option, or use the Hot Key CTRL +
SHIFT + F2.
D Click on the element you want to change and then use the Change
Value button.
If status is on and you are not using the Edit Mode, double click on the
and Monitoring
D
Debugging
As you examine the box you will notice the Read from PLC and Write to PLC
command buttons. DirectSOFT32 automatically reads the value from the PLC when
the dialog appears. If you want to read the data again, click on the Read from PLC
button. After you have entered a new value (OFF, ON, or data) click on the Write to
PLC button to write the change to the PLC.
Specify the You can use nicknames or element addresses when working in DirectSOFT32. This
Element Address is also true for the Change Value dialog box. If you have the nicknames enabled for
or Nickname the selected view, the nickname is automatically displayed instead of the element
address. For example, if you click on an input contact labeled Start Switch and then
select Change Value, the nickname Start Switch automatically appears in the
element field.
Specify
address
or nickname.
Enter the New The Change Value dialog box shows the current value stored in the PLC and allows
Value you to enter a new value. There are several data formats, therefore the value you
enter depends on the format selected. For example, if viewing the I/O point as a bit,
you can select On or Off. If you are viewing the I/O point as binary, a binary bit
pattern. When you have entered the new value, click on the Write to PLC button to
write the change to the PLC.
Shows current
value from
PLC
WARNING: Only authorized personnel familiar with all aspects of the application
should make changes to the program elements or data values. Changes during Run
Mode become effective immediately. Make sure you thoroughly consider the impact
of any changes to minimize the risk of personal injury or damage to equipment.
Use the Tools DirectSOFT32 also allows you to view (and change) multiple data memory areas
Menu with the Memory Editor. This is especially helpful for:
D Entering values into V-memory or Data Registers (for use as constants,
timer/counter presets, etc.)
D Entering Text strings into a block of V-memory or Data Registers
Use the Tools > Memory Editor menu option to display the Memory Editor, or use
the Hot Key CTRL + Y. The following screen shows an example of the Memory Editor
for the DL440 CPU.
Select the The first step when using the Memory Editor is to activate the Find command
Locations for button to display the memory locations to change. Note that you cannot access bit
Viewing registers (I/O as registers or V-memory) with this editor. For example, you would
enter R600 to access Timer 600 in a DL305 system, or V1000 to access Counter 0 in
in a DL405 system. When you select the memory location, the table appears with the
location entered as the first entry in the list. You can also use aliases to find memory
locations e.g., CTA0 finds V1000.
Select the Data You can view the data in various formats. Select the data format that best suits your
Format needs. There is a section later in this chapter that provides additional detail on the
data formats. Click on the selection buttons, or use the Hot Keys:
D CTRL + B — Binary
D CTRL + O — Octal
D CTRL + D — Decimal
D CTRL + X — BCD/Hex
D CTRL + T — Text
Select the Number The default setting is one word, which is always two bytes. For example, if you are
of Bytes viewing four bytes and monitoring V1400 in a DL405 system, you will actually see
two complete V-memory locations. Also, notice the list of locations now reads,
V1400, V1402. There is also a setting for a custom range of bytes. This is especially
useful if you are viewing locations in the text format.
Enter the Value To enter a new value for a location, click on the selection indicator for the memory
location and enter the new value in the field next to the location.
and Monitoring
Debugging
Write the Changes In the upper right corner of the Memory Editor notice the Read from and Write to
to the PLC or Disk PLC and Disk buttons. You may recall that a project consists of more than the ladder
program. For example, the project (on disk) also stores the V-memory settings,
system parameters, etc. So, you can write these values to disk or to the PLC.
The Two Types of What is not apparent in the selection window is there are two types of test modes,
Test Modes Test Program and Test Run. If you select Test from the above dialog while you are
in the Run Mode, you will go into the Test Run Mode. If you select Test, while you
are in the Program Mode, you will go into Test Program Mode. The PLC mode
indicator on the Online Tool Bar shows “Test Run” or “Test Program”.
Program ModeÔ(Select Test)ÔTest Program Mode
Run ModeÔ(Select Test)ÔTest Run Mode
The Purpose of the While in Test Program Mode, you can do 6 different things:
Test Program Mode 1. Perform one scan while observing the power flow status of your elements in
your program. Enable the Status Mode to see the power flow status
changes.
2. Perform a user-specified number of scans while observing the power flow
status of your elements. Enable the Status Mode to see the power flow
status changes.
3. Perform scanning continuously until you stop it manually. (Here again,
enable the Status Mode to see the power flow status changes.)
4. Stop the scanning manually by clicking on a button. (Halt Mode)
5. Single Step instructions through each address position of your program.
6. Execute instructions up to a specified point in your program by selecting a
breakpoint address. Instructions will be executed in order until the
breakpoint is reached. At breakpoint, the execution is halted (system
placed in Halt Mode).
and Monitoring
Debugging
NOTE: Please note that your PLC may support all, some, or none of the Test Mode
operations.
The Test Program In Test Program Mode, you can activate the Debug > Test Mode Operations from
Mode Button Panel the main menu bar. A Test Operations dialog will appear on the screen allowing you
to activate the individual Test Mode Operations. To perform any of the six Test
Program Mode functions mentioned on the previous page, select them individually
with the mouse or use the hot keys. Notice the type of Test Mode is spelled out at the
bottom of the panel. In the example below the Test function was selected while being
in the Run Mode.
Breakpoint
Start Scan
Single Step
Stop Scan Instructions
Multiple Scans
Single Scan
Using Hot Keys for When using the Test Operations for Single Stepping, position the Test
Single Stepping Operations dialog box outside your logic window and access the Single Step
function using the Hot Key combination CTRL + SHIFT + A. The reason for this is
called “focus”. Windows will switch focus to the point where you have clicked the
mouse. This moves the cursor back and forth between the Test Operations dialog
and the logic window. Keep the cursor in the logic window to visually follow where the
single stepping is currently executing. A chart showing other related Hot Keys
combinations is shown below:
Using Pause Bits You can set a Pause bit for each output via the Data View window setup procedures
to Maintain discussed earlier in this chapter. By setting the pause bit, you can control the output
Outputs status when the CPU transitions from Test Run to Test Program Mode. The ability to
hold output states is useful, since it allows you to maintain key system I/O points.
You set the Pause Bit to maintain the output status, and you turn off the Pause Bit to
allow the CPU to turn off the output on the transition to Test Program Mode.
In order to use the Pause Bit buttons, remember that you have to enable the Pause
Bits from the Data View options dialog. Select Debug > Data View > New from the
main menu. Enter the elements to use with the pause button. Next, click on View >
Options. Place an X beside Pause Bits in the Data View dialog. Click the Mode Tab.
Click on Read/Write in the dialog there. Finally, click on OK and close the Options
dialogs.
Pause Bits
To set the Pause Bit for an output, click on the respective pause button (letter P).
Click on the other button to turn the pause feature OFF. When in the OFF mode, the
pause bit is not set and the output turns off on the transition to Test Program mode. A
’P’ in the Status column indicates the Pause Bit is set for that particular output point.
and Monitoring
Debugging
Using Override If your PLC supports Override Bits,they can be set for each input and output via the
Bits to Control I/O Data View. Setting these bits allows the status of the input or output to be controlled
DL05/06/240/250--1/ by a programming device instead of the field device wired to the module. It is similar
260/350/450 Only to forcing a point ON or OFF.
In order to use the Override Bits, you have to enable them from the Data View
options dialog. To do this, select Debug > Data View > New. Then, enter the
elements to be controlled with this feature. Click on View > Options. Click on the
Data View Tab to access its dialog. Place an X beside Override Bits. Then click the
Mode Tab. There click the Read/Write button and click on OK.
NOTE: You may have to expand the data view window. Drag the right side of the
window to allow room for the override or pause control buttons.
Override Bits
To set the override bit for an input or output, click on the respective override button
(has a letter O). Click on the other button to turn override feature OFF. An ’O’ in the
Status column indicates the Override Bit is set for that particular point.
Trap Monitor
Accessing the The DL05/06, DL250--1, DL260 and DL450 give you an additional diagnostic tool
Trap Monitor called a “Trap Monitor”. To access this, select Debug > Trap Monitor from the main
menu bar. To ensure the elements are “trapped” when the cursor is positioned on top
of them in your Stage or Ladder Logic programs, you should have the thumbtack
buttons enabled (for Element and Address) as shown below.
Make sure the Element and Address
thumbtack buttons are in this
position.
Combined with Use of the Trap Monitor is usually combined with one or more Data View windows
Data View where you can control inputs and outputs of your ladder logic or stage programs. The
Trap Monitor is useful in observing math operations in your program. You can
specify format (Hex, Decimal, or Octal) for your values being read with the trap. Click
on the small button at the lower right hand corner of the Trap Monitor, and a dialog
window will appear for making the format selection.
and Monitoring
Debugging
Double-click here
and Monitoring
Debugging
In This Chapter. . . .
— Configuring the DV-1000
— Creating a Program
11--2
DV--1000 Setup
The Setup Utility Having weighed the significance of the above, you can proceed to the DV-1000
Setup Utility. To activate the utility, select PLC > Setup > DV-1000... from the main
menu. The utility opens up as shown below, with the three tab selections: Setup,
Presets and Messages.
The Setup Tab The Setup Tab allows you to select which of the five available modes the unit will
enter upon power-up. The Bit Control pointer address can also be selected from this
DV--1000 Setup
point. Double clicking in the address box will display the valid pointer ranges in the
PLC to which the DV-1000 is attached. To save the configuration information, click
on the Save to PLC and Save to Disk buttons at the bottom of the dialog.
The Presets Tab The DV-1000 User Manual explains the purpose and procedure for entering presets
via your ladder logic. That procedure will not be discussed here. The same thing
using the Presets Tab dialog is shown below. To enable the Password option,
simply click on the Password box and enter the desired password. It can be any
4--digit number 0000 thru 9999. To enable the TIMER Presets and COUNTER
Preset options, enter the V-Memory address pointers in the respective fields and
select the number of each type needed for your application. Again, if you double click
in the Location fields the valid ranges are displayed.
To enable the USER Presets option, you need to enter the V-memory address
pointer in the Location field and the number of consecutive locations you want to
change in the Number field. You can optionally enter 8-character text titles that will
be displayed instead of the V-Memory register number. To save this configuration
information, click on Save To PLC and Save To Disk buttons at the bottom of the
dialog.
NOTE: Take care when entering the address pointers. Make sure you account for
the number of data words required and that you don’t assign overlapping addresses.
The Messages Tab Use the Messages Tab to define the message mode configuration. To successfully
configure this option, it is imperative that you understand the V-Memory layout the
DV--1000 Setup
DV-1000 is expecting in the PLC. This information can be found in the DV-1000 User
Manual, and will not be repeated here.
The first parameter to enter is the Active Text Location. This is the first of 48
consecutive V-Memory locations that will be used as follows:
The first 32 locations are the Text Table, and the next 16 are the Numeric Table. You
can optionally allocate memory for up to 16 secondary screens by entering the
number you want in the How many field. Each secondary screen will allocate 32
additional V-Memory locations. In this scenario you have multiple Text Table areas
but only one Number Table. If you want a separate Numeric Table for each Text
Table, click the Numeric layer for each of them box and you will allocate an
additional 16 words after each secondary text area. The following chart shows how
the selection or non-selection of the Numeric layer for each of them option affects
the word allocation.
NOTE: If you intend to have multiple message screens, the Active Text window can
not be one of the screens because you will be block copying the secondary screens
over the top of the Active Text table in your ladder logic program. You will need to
setup all of the screens as secondary screens. The example at the end of this
chapter shows you how.
Entering Text Data Once the tables are defined, you can begin to enter the text characters for each of
the screens. To enter text for the Active Screen, click the Active Screen box and
DV--1000 Setup
type in the text that you want displayed. Do the same thing for the secondary
screens, except, click on Secondary Screen and enter the screen number before
typing in the text (See below).
This is one of those areas where colors convey important features. Yellow sections
of the text/numeric grid will allow data from the numeric layer to show. White sections
of the grid will mask out the Numeric layer. If you accidentally mask out a block, you
can undo this by placing the cursor on the cell and pressing the Delete Key. It will
then turn the cell color from white to yellow.
Yellow
White
Entering Numerical In most applications, you will never need to enter Numerical layers with this utility.
Data The data for these layers will be placed there by the ladder logic program. If you do
however need to enter numerical data via this dialog, click the the radio button
labeled Numeric. You will initially see a grid filled with zeros. For each Text layer
position you left unmasked, change the corresponding value in this numeric layer to
the value you want to show through.
Select
Numeric
Enter Data
Writing to Disk When you are finished with completing this final dialog, click on the respective disk
and PLC and PLC write buttons so that you save the configuration information.
Getting Started From the DSLaunch window, double click the DirectSOFT32 icon to begin creating
a new program. Select the Family and CPU Type and give the project a name. The
example presented was created to work on a DL130 CPU, therefore it will also work
with DL05/DL06/DL105/DL205/DL405 CPUs.
Activate the DV-1000 configuration utility by clicking on PLC > Setup > DV-1000
from the menu options. The following screen will appear. Fill in the information as
shown below. Click the Write to Disk button and the Write to PLC button to save
these changes.
Save
buttons
Configure the Next click on the Message Tab to bring it to the front. First enter the value V2000 for
Message Tab the Active Text Location (the Active Numeric Location is set automatically at
V2040). Next enter 2 for the number of Secondary Screens. Leave the Numeric
layer for each of them option blank.
Entering Display Now you need to enter the text for the displays. These text characters are entered
Text directly into Secondary Screen windows. So now you click on the radio button for
DV--1000 Setup
Secondary Screen. The default Screen Number is 1. Enter the text as shown
below. Repeat this process for each of the Secondary Screens. Advance to
Secondary Screen Number 2 by placing a 2 in the Secondary Screen input box.
Click on the Write to Disk icon and Write to PLC icon to save the changes.
Change the Secondary Screen Number to 2 in order to enter Screen No. 2 display
The Ladder Logic An accompanying ladder logic must be written in order to move the appropriate data
from the application into the display screens of the setup. Use the Ladder View of
DV--1000 Setup
T0
TMR A self-resetting timer to supply data for the Secondary Screen Number 1.
T0
K9999
SP4
CNT A self-resetting counter (counts once per second) to supply data
CT0 CT0
for the Secondary Screen Number 2.
K9999
_FirstScan
SP0
X0 C0
X1
PD
An X0 (or First PLC Scan) transition with X1 OFF will fire a One-Shot C0
to display the text for Secondary Screen Number 1.
_FirstScan
SP0
C0
LD
K20 This rung will copy 20 (HEX) consecutive words (32 in decimal,
each word contains 2 characters for a total of 64 characters) starting
LDA with address V2060 to the Active Text Location which starts at ad-
O2060
dress V2000.
MOV
V2000
X0 X1
LD
TA0 X0 ON with X1 OFF will cause current value of T0 to be displayed in
the bottom row on the Secondary Screen Number 1.
OUT
V2056
X1 X0 C1
PD An X1 transition with X0 OFF will fire a One-Shot C1 to display the
text for Secondary Screen Number 2.
C1
LD
K20 This rung will copy 20 (HEX) consecutive words (32 in decimal, each
LDA
word contains 2 characters for a total of 64 characters) starting with
O2120 address V2120 to the Active Text Location which starts at address
V2000.
MOV
V2000
X1 X0
LD
CTA0
X1 ON with X0 OFF will cause current value of CT0 to be displayed in
OUT the bottom row on the Secondary Screen Number 2.
V2056
END
Download Your After you have compiled the finished program, you are ready to download it to the
Program to the PLC. Assuming that you have already built a link to the PLC and you are online, use
DV--1000 Setup
PLC the File > Write > Program > to PLC options from the main menu, or the Hot key
combination SHIFT + F9, or click on the Write-to-PLC button. If you do not know
how to compile your program or go online with the PLC, review Chapter 9 of this
manual.
Hook--Up to Refer to the DV-1000 User Manual for the procedure used to connect the DV-1000 to your
DV-1000 computer. When you are connected properly, run the program on the previous page. If you
are running this sample program you will probably have switches connected to I/O points X0
and X1 (or an input simulator connected). By turning X0 and X1 ON/OFF manually, you can
display the different Secondary Screen Messages and see the embedded data being
displayed.
Protocols and DirectLogic CPUs provide many different communication port possibilities,
Cable Diagrams therefore, it is helpful to know exactly which programming cable and protocol is
required.
Appendix A
Supported Protocols
CPU
Family Port Cable DirectNET K-Sequence E--COM MODBUS
(or other device)
Protocols/Cable Diagrams
Programming Cables and Protocols(continued)
Appendix A
Supported Protocols
CPU
Family Port Cable DirectNET K-Sequence E--COM MODBUS
(or other device)
Cable Diagrams
335--37, PPX:335--37 Phone Jacks D3--DSCBL--1 S
Appendix A
If DCU is used* D3--DSCBL--2 S
TI405t / 425--CPU, Only one D4--DSCBL S
SIMATIC? PPX:425--CPU
TI405t
N/A, PPX:430--CPU Top port (15-pin) D4--DSCBL S
Bottom port (25-pin) D3--DSCBL--2 S S
435--CPU, Top port (15-pin) D4--DSCBL S
PPX:435--CPU Bottom port (25-pin) D3--DSCBL--2 S S
Smart Slicet I/O Only one D4--DSCBL S
D3--DSCBL--1 D3--DSCBL--2
PLC DL340 PLC
Personal Computer Personal Computer
CPU Ports
RS232C RS232C
2 RXD 2 TXD 2 RXD 2 TXD
3 TXD 3 TXD 3 RXD DL405 CPU
1 RXD (bottom port)
5 GND 4 GND 5 GND 7 GND
1 DCD 1 DCD 4 RTS or
4 DTR 4 DTR 5 CTS DL405 DCM
6 DSR 6 DSR or
7 RTS 7 RTS DL305 x/DCU
1 2 3 4 RS-- 232
8 CTS 8 CTS
4-pin Phone Plug
(4P4C)
9-pin D-- Connector (female)
9-pin D-- Connector (female) 25-pin D-- Connector (male)
D4--DSCBL
PLC
Personal Computer
RS232C 1 YOP
2 RXD 2 TXD
3 TXD 3 RXD DL405 CPU programming port
5 GND 4 ONLINE
1 DCD 7 CTS or
4 DTR 8 YOM
6 DSR 13 0V DL405 Slice I/O
7 RTS 14 0V
8 CTS 15 0V
Straight--through Cable
DS400.ini DirectSOFT32 can connect to the PLCs serially using a COM port, a modem or a
File USB--to--serial adapter. It can also connect via Ethernet using an ECOM module.
You can control which communications resources on your PC you want to let
DirectSOFT32 use. This is done through entries in DS400.ini. This file will be in your
”Windows Folder”. By default, it will be in different places for different operating
systems. For Windows 98/ME/XP, the file will be the ”C:\Windows” and for Windows
Comm. Troubleshooting
2000 / Windows NT, it will be the C:\WinNT” folder. The DS400.ini file can be opened
by clicking on the DS400.ini icon DirectSOFT32 launch window Utilities folder. You
Appendix B
can edit this file with any text editor program such as Notepad. You must restart
DirectSOFT32 if any changes are made to the DS400.ini file.
The sections of the DS400.ini file we’re concerned with are [devasync.dll] and
[devether.dll]. These groups are where you can enable and disable communication
resources for DirectSOFT32 to use. These settings do not affect other applications
on your PC that use these resources; they only affect DirectSOFT32. Here’s what
these sections look like after a normal installation:
[devasync.dll]
COM1Enable=1
COM2Enable=1
COM3Enable=1
COM4Enable=1
ModemEnable=1
COM5Enable=0
COM6Enable=0
COM7Enable=0
COM8Enable=0
[devether.dll]
EthernetEnable=1
Comm. Troubleshooting
COM3Enable=0
COM4Enable=0
Appendix B
ModemEnable=0
COM5Enable=0
COM6Enable=0
COM7Enable=0
COM8Enable=0
[devether.dll]
EthernetEnable=1
[devether.dll]
EthernetEnable=0
Startup Issues The first time DirectSOFT32 starts up its communication server, it attempts to build
links to PLCs that it can find based on the resources that are enabled by DS400.ini.
The communications server will try fixed combinations of baud rate, parity and
station number for both K--Sequence and DirectNET protocols. If a PLC responds, a
Link will be created.
It’s this attempt to create a Link that can cause problems. Most of the time, if
DirectSOFT32 attempts to use a resource that physically isn’t present on the PC
nothing happens. But this action can have adverse effects on some PCs, especially
in situations like leaving EthernetEnable=1 on PCs that don’t have an Ethernet card
installed and configured or if the IPX protocol is not installed.
Comm. Troubleshooting
If you make changes to DS400.ini, you must restart DirectSOFT32 to make the
changes active.
Appendix B
USB--to--Serial The use of USB--to--Serial adapters has become an issue since more and more PC
Converters vendors remove serial ports from their PCs in favor of additional USB ports. In
theory, there should be no problems with this as long as the USB--to--Serial drivers
function like a standard PC serial port. We have made some changes to the
communications server to better handle these adapters.
It is highly recommended to install the device drivers for the USB--to--Serial
adapters before you physically attach the adapter to your PC. This is common
practice for all USB devices and it does matter for some vendor’s products.
Microsoft ActiveSync is the software used to synchronize data between the PC and a PDA
ActiveSync running Windows CE or Pocket PC. This software has a undesirable habit of
attaching itself to the serial ports on the PC it’s installed on so that it can auto--detect
the presence of the PDAs.
The symptom of this problem you see in DirectSOFT32 is the error dialog:
”Error connecting to PLC! ”
”Error: cannot access comm port. The port may not be present or another app may
be using it”
You can restrict the COM ports that ActiveSync has control of under it’s
File-->Connection Settings menu.
Adding Once you have created Link(s) to your PLCs, these links will be validated each time
AutoSense=0 you start DirectSOFT32. The communication server will use the Link’s parity, baud
rate, protocol and station number settings to see if the PLC is still available. This
process can take quite a bit of time if you have several Links or if you have Links to
PLC that are not hooked up because the attempts to communicate must time out.
You can add an entry to the [comm server] group in DS400.ini that will keep
DirectSOFT32 from validating any links on startup.
Add Autosense=0 and restart DirectSOFT32:
[Comm Server]
Autosense=0
B--5
Communications Troubleshooting
Adding Add Dump=1 to the [devasync.dll] group in DS400.ini to enable some low level
Dump=1 communications debugging for serial and modem connections. Use DBWin32, a
debugging aid for Window NT/95, to view the debugging information. To start
DBWin32, click on Start-->Programs-->DirectSOFT32-->DirectSOFT32 Program
Tools-->DBWin32 Logger. The DBWin32 dialog window will be displayed. When you
launch DirectSOFT32, you will be asked if you want to enable the debugging mode.
If you answer yes, the debugging output will be sent to the DBWin32 dialog window.
Add Dump=1 and restart DirectSOFT32:
[devasync.dll]
COM1Enable=1
Comm. Troubleshooting
COM2Enable=0
COM3Enable=0
Appendix B
COM4Enable=0
ModemEnable=0
COM5Enable=0
COM6Enable=0
COM7Enable=0
COM8Enable=0
Dump=1
Index
A D
Accept program, 5---27, 5---29 Data types, 5---2
Address Mode, 9---17 Data view, 10---4, 10---5
Aliases, 5---3, 5---5 changing data, 10---12, 10---14
deleting, copying, pasting, 10---11
Applets, 3---3 entries, 10---8
saving and naming, 10---10
setting format, 10---9
B size of display, 10---9
Debug, 10---2
Bit editing, 10---6
Desktop
Bit set, reset, 5---15 applets, 3---3
description of, 3---3
documents list, 3---3
C launch window, 3---3
links, 3---3
Color options, 4---8 utilities, 3---3
Comments DirectNET, 9---4
copying between rungs, 6---8
Documentation
copying between stages, 6---11
copying between elements, 6---5
entering for rungs, 6---8
data view, 10---7
entering for Stages, 6---10
displaying options, 4---6
moving to a new rung, 6---9
editing, 6---4
Communication Port, A---2, A---3 enabling, 6---2
Communications, 9---2 entering rung comments, 6---8
troubleshooting, B---2, B---4 entering Stage comments, 6---10
nicknames, 6---6
Compile program, 5---27, 5---29 printing, 8---2
Connecting lines, 5---17 reading from disk, 6---5
saving comments, 6---11
Copying
files, 3---6 Documents, accessing from the desktop, 3---3
rung comments, 6---8 DV---1000
stage comments, 6---11 configuration, 11---2
Counter current values, 5---3, 5---5 creating a program, 11---6
messages tab, 11---4
CPUs supported, 2---3 presets tab, 11---3
Current view, printing, 8---2 setup tab, 11---3
E icons in launch window, 3---3
Link enabled, 9---19
Edit mode, 4---10 name, 9---5
status, 9---6
Element address, 10---13 wizard, 9---3
Elements, program, 5---2 Logicmaster, 3---5
End coil, 5---15
Ethernet address, 9---17
M
Memory editor, 10---14
F Mnemonic view, 7---4
File extensions, 3---6 Modem, for programming link, 9---7
Module ID, 9---18
Monitor, 10---2
G Moving, rung comments, 6---9
Global options, 4---7
N
H Nicknames, 6---6, 10---13
Hardware requirements, 2---2 Node address, 9---4, 9---13
Hot keys, 5---9, 10---15, 10---17
O
I Options dialog, 4---6, 6---2
I/O Configuration, 5---2 Organization, 1---3
Importing files, 3---5 Override bits, 10---19
L PLC
family, 9---3, 9---12
Launch window, 3---3 going online, 9---2
S V
Saving files, 3---6 Version numbers, 10---20
Security Code, 2---4 Views
accessing, 7---2
Selecting rungs, 5---19 mnemonic, 7---4
Shortcuts, 5---10 stage, 7---3
usage, 7---6
Single stepping, 10---15, 10---17 XREF, 7---5
Split screen, 4---5
Stage, comments, 6---10
W
Stage view, 7---3
Winsock., 9---16
Starting DirectSOFT, 3---2
Status, 10---2
Status bar, 4---4 X
System requirements, 2---2 XREF view, 7---5