Vous êtes sur la page 1sur 173

Programming Software

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.

Copyright 2002, Automationdirect.com Incorporated


All Rights Reserved

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.

Title: DirectSOFT32 Programming Software User Manual


Manual Number: PC--DSOFT32--M

Issue Date Description of Changes


1st Edition 8/99 New Edition for
32--bit application
1st Edition 5/00 Added new features to PID chapter
Rev A
2nd Edition 7/02 New Edition for Version 4
Table of Contents
1 i
Chapter 1: Introduction
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--2
The Purpose of This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--2
What’s New? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--2
Supplemental Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--2
Who Should Read this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--2
Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--2
Conventions Used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--3
Menu Selections and Keystrokes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--3
Key Topics for Each Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1--3

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

Chapter 3: Managing Projects


Starting DirectSOFT32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--2
Startup Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--2
The Desktop and Launch Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--2
Understanding the Launch Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--3
Creating a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--4
New Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--4
Enter the Name, Select the Family and CPU Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--4
Importing Files from Other Software Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--5
Importing Projects from TISOFTt or Logicmastert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--5
Program Documentation Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--5
Copying or Saving Existing DirectSOFT32 Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3--6

Chapter 4: Programming Environment


Offline Toolbar Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Toolbar buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
ii
Table of Contents

Read From Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2


Write to Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Create a New Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
File Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Backup to File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Cut . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Paste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--2
Edit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Compile Edits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Find Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Find Next Search Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Element Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Display Options Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--3
Status Bar Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--4
PLC Memory Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--4
PLC Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--4
Program Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--4
Using the Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--5
Split Screen Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--5
Global and Ladder Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--6
The Options Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--6
Ladder Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--6
Selecting How the Rungs are Numbered . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--6
Selecting Documentation Options to be Displayed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--6
Apply Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--7
Enabling or Disabling 3-D Token . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--7
Global Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--7
Selecting the Global Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--7
Color Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--8
Some Colors Convey Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--8
Selecting New Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--9
The Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--9
The Tool Palette Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--10
The Edit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--10
The Tool Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4--10

Chapter 5: Entering a Program


I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--2
Referencing Program Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--3
Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--3
Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--4
Entering Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--5
Single Parameter Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--6
Multiple Parameter Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--6
Using the Ladder Palette . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--7
Opening the Instruction Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--7
Entering Instructions with Hot Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--8
Entering Instructions from the Menu Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--8
Shortcuts for Entering Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--9
Entering NO and NC Contacts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--9
Entering Instructions in Parallel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--10
Entering Power Flow Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--11
Entering Special Case Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--13
Non--UseablePreset Field for DL330/DL340 Counters/Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--13
TI330S/TI325S and DL330P Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--14
END coils . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--14
Setting and Resetting a Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--15
Using Floating Point Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--15
Drawing/Deleting Connecting Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--16
Use the CTRL Key and the Arrow Keys to Draw the Connecting Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5--16
iii
Table of Contents

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 7: Other Views


Accessing Other Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--2
Ladder, Stage, Mnemonic and XRef Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--2
Usage View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--2
Stage (RLLplus) View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--3
Making Troubleshooting an Easier Chore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--3
Comments Window for Stage View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--3
Stage Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--3
Mnemonic View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--4
Great for Helping with Handheld Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--4
XRef View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--5
Normal View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--5
Rung View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--5
Usage View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--6
Usage View Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7--7

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

Chapter 9: Creating & Managing Communication Links


Establishing PLC Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--2
Create a Standard Serial Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--3
Link Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--6
Creating a Modem Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--7
Modem Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--7
Configuring the Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--11
Creating an Ethernet Link . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--15
Module List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--17
Address Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--17
Deleting Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--20
Going Online . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--20
Automatic Program Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--21
The Online Tool Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
Read from PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
Write to PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
New Data View Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
Change Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
PLC Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
System Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
Syntax Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9--22
v
Table of Contents

Chapter 10: Debugging and Monitoring


Using Status to Monitor Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--2
Selecting Status for Each View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--3
Selecting Status for All Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--3
Monitoring Status with Data View Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--4
Opening a Data View Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--4
Anatomy of the Data View Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--5
Selecting the Options for Your Data View Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--5
Three Types of Bit Editing Available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--6
Documentation Options for Data View Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--7
Data View Mode Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--7
Making Entries in the Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--8
Using the Tile Feature for Better Viewing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--8
Selecting the Data Format and Size of Data Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--9
Auto-Increment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--9
Saving or Naming a Data View Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--10
Writing Your Edits to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--10
Deleting Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--11
Copying, Cutting, and Pasting Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--11
Working with a Range of Entries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--11
Changing I/O Points and Data Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--12
Changing Values from Data View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--12
Using the Change Value Window Instead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--12
Specify the Element Address or Nickname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--13
Enter the New Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--13
Changing Data Values with the Memory Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Use the Tools Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Select the Locations for Viewing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Select the Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Select the Number of Bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Enter the Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Write the Changes to the PLC or Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--14
Troubleshooting with Test Mode Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--15
Selecting Test Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--15
The Two Types of Test Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--15
The Purpose of the Test Program Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--15
The Test Program Mode Button Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--16
Using Hot Keys for Single Stepping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--16
Using Pause Bits to Maintain Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--17
Using Override Bits to Control I/O DL05/06/240/250--1/260/350/450 Only . . . . . . . . . . . . . . . . . . . . . . . . . 10--18
Trap Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--19
Accessing the Trap Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--19
Combined with Data View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--19
Stack Monitor (DL440 Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--19
Accessing the Stack Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--19
Checking the DirectSOFT32 File Revision Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10--20

Chapter 11: DV-1000 Setup


Configuring the DV-1000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--2
The Setup Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--2
The Setup Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--3
The Presets Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--3
The Messages Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--4
Entering Text Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--5
Entering Numerical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--5
Writing to Disk and PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--5
An Example: Creating a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--6
Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--6
Configure the Message Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--6
Entering Display Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--7
The Ladder Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--8
vi
Table of Contents

Download Your Program to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--9


Hook--Up to DV-1000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11--9

Chapter 12: PID Loop Setup and Tuning


PID Loop Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--2
How to Begin Setting Up Control Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--2
Testing Your Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--2
Opening the PID Setup Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--2
PID Parameter Setup Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--3
PID Documentation Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--3
PID Configure Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--4
PID SP/PV Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--5
PID Output Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--5
PID Tuning Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--6
PID Alarms Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--6
PID R/S Dialog Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--7
Adding More Loops or Changing the Start Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--7
Saving Your Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--7
Loop Tuning and Trending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--8
Using the PID View for Tuning and Trending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12--8

Appendix A: Protocols and Cable Diagrams


Protocols and Programming Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A--2
Programming Cable Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A--4

Appendix B: Communications Troubleshooting


DS400.ini File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--2
Example PC Configuration: Using an Ethernet card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--3
Example PC Configuration: Using a Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--3
Startup Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--4
USB--to--Serial Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--4
Microsoft ActiveSync . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--4
Adding AutoSense=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--4
Adding Dump=1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B--5
11
Introduction

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


1--3
Introduction

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


12
Installation

In This Chapter. . . .
— Preparing for Installation
— PLC Compatibility
— Installing the Software
2--2
Installation

Preparing for Installation


Getting to Know DirectSOFT32 Programming Software runs under 32--bit Windows operating
Windows systems (98/NT/2000/XP). Please take a moment to study your PC’s reference
manual on the operation of Windows 98/NT/2000/XP.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--3
Installation

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)

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--4
Installation

Installation of DirectSOFT32 Software


Step 1: Insert the DirectSOFT32 CD into the CD drive.
Load the CD
Step 2: The CD will begin its auto-install feature.
Review your This CD also contains demo versions of
options other software products. You will see a
screen that provides you with different
options. You can browse the CD or install
a program. When you are ready to install
the program, click on that selection.
Installation

Step 3: The product key code is located on a


Enter the Security removable label attached to the outside
Code of the DirectSOFT32 box. Remove the
label and place it on the CD jewel case or
a safe place of your choosing. Enter the
product key code in the window and click
the OK button.
Note: You must enter the key code
exactly as it appears (dashes, spaces,
capital letters, etc).

If you have entered the number


incorrectly, the OK button will not be
accessible..

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--5
Installation

Step 5: The installation issues a reminder to


End Other exit all other Windows applications. If
Windows Tasks you are unsure of the programs that
may be running, press
Ctrl--Alt--Delete to select the Task
Manager. If everything is closed, click
Next to continue.

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 7: The next required information to


Enter Your Name enter is your name and the name of
and Company your company. This will register this
copy to you.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--6
Installation

Step 8: The Destination Location dialog lets


Select Installation you choose the folder (directory) in
Directory which the DirectSOFT32 files will be
loaded.
Installation

Step 9: You now have an option of what type


Select Installation of install that you want. The Typical
Type install loads everything
DirectSOFT32 has to offer (Program
Files, Example Files, Help Files,
Files). The Custom option lets you
choose which features to install. The
Compact option installs the Program
FIles only.
Generally you will choose the Typical
installation.

Step 10: If you choose the Custom installation


Custom you will be prompted to select what
Installation features to install.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--7
Installation

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--8
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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


2--9
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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


13
Managing Projects

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


3--3
Managing Projects

Understanding the Launch Window

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.

Windows- type Menu


Tree

Utilities, such as the


DSData Server

Documents - Projects
most recently used listed
first Installed Support

Managing Projects
Communication Links
to PLCs

D Applications — These are the applications currently installed in


DirectSOFT32. They are visible in the Menu Tree under the Applications
folder/icon and are linked to applications that have been designed for
launch from DirectSOFT32. For example, to create a new program
double-click the DirectSOFT32 Programming name.
D Utilities — There are several utilities available under the Utilities
folder/icon. Some of the utilities can be purchased from
AutomationDirect, such as, DSData Server. Other utilities will come with
certain modules which may be purchased. These utilities are ERM
Workbench, CTRIO Workbench and NetEdit.
D Projects — These are created in DirectSOFT32. A project (also called a
document) is the collective name for your program and all its
documentation. When you create a new project, or work on an existing
project, you will see it listed in the Menu Tree under the Projects folder/icon
by name. Documents are listed in the “most recently used” order.
D Comm Links — The “links” are for communication links between your
personal computer and one or more PLCs. The links are not only for the
control programs. Instead they are communication links (i.e., the link
between the computer and printer). Any application can use the link. When
you create links, they will appear in the menu tree under the Comm Links
folder/icon.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


3--4
Managing Projects

Creating a New Project


Managing Projects

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


3--5
Managing Projects

Importing Files from Other Software Packages

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

Logicmaster Source Documentation DirectSOFT Documentation


Nicknames Nicknames
Names Description
Comments Comments
Coil Labels No match

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


3--6
Managing Projects

Copying or Saving Existing DirectSOFT32 Files


Managing Projects

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.

File Contents Necessary for


Extension Recreation?
filename.prj Contains the ladder program Yes
filename.lda Connects rung comments to correct rung number. Yes
filename.tls Contains the PLC parameters. I/O configuration, Yes
pause bit settings, etc.
filename.vd V-memory data Yes
filename.vf V-memory editor viewing format for each location No
(BCD, hex, etc.)
filename.esd Element documentation Yes*
(nickname, wiring information, description)
filename.esx Index file for the element documentation No
filename.lcd Ladder rung comments Yes*
filename.lcx Index file for the ladder rung comments No
filename.scd Stage comments Yes*
filename.scx Index file for stage comments No
filename.wsp Position of the Program Windows, colors, etc. No
* -- if you want to include documentation

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Programming
4
Environment

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

Offline Toolbar Components


Once inside a Program Window, you have menu options and toolbar buttons
(remember, some of the button functions are also available from the menus). When
working offline, there is one toolbar (the offline toolbar) present beneath the menu.
All of the toolbars in DirectSOFT32 are movable or floating. By selecting the toolbar
and dragging it with your mouse, you can locate the toolbars wherever you like on
your desktop.
Toolbar buttons

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.

Backup to Click on this button to save the current program to a file.


Programming
Environment

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--3
Programming Environment

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--4
Programming Environment

Status Bar Components


The status areas show the PLC mode of operation, current status, etc.

Program Memory Usage Program Location


PLC Type

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--5
Programming Environment

Using the Split Screen


Split Screen Bar There are many times when you need to view multiple parts of the same program.
DirectSOFT32 has a split screen feature that enables you to split the program
window into two panes. This is accessed by a small split screen bar in the upper right
corner of the window.
To split the screen, position the cursor over the Split Screen bar. Then, press and
hold the left mouse button. Now move the mouse up and down to change the size of
the split screen. The following screen shows an example of a Ladder view that has
been split to show two separate ranges.

Split Screen bar


Move cursor here. Hold
left mouse button down
to position screen.

Programming
Environment

View different programs


simultaneously - even online!

Split Screen allows you


to view different parts
of the same program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--6
Programming Environment

Global and Ladder Options


The Options Dialog An important dialog box of DirectSOFT32 is the Options Dialog. It is six dialogs
built into one interface--each dialog having its own tab. The six tabs are labeled:
D Data View--options used for monitoring and debugging of programs
D Global--options affecting all views ( display of aliases or nicknames )
D Ladder--options for ladder view
D Stage--options used for the stage view
D XRef--options for cross reference view (display mode, documentation,
etc.)
D XRef DB--definitions for cross reference database queries

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--7
Programming Environment

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--8
Programming Environment

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.

Color coded bars

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).

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--9
Programming Environment

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

Letters match documentation Vertical color bars match


selections highlighting for rungs selected,
uncompiled, etc.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--10
Programming Environment

The Tool Palette Components


The Edit Mode Another important part of your programming environment is the tool palette. It is
visible by default any time you are in the Edit Mode. There are several ways to enter
the Edit Mode. You can simultaneously hold down the Control Key and the letter E
Key (abbreviate this as CTRL + E). Or alternately, you can click on Edit and select
Edit Mode. You can tell when you have entered the Edit Mode, because the cursor
will become solid.

Edit Mode button


is ON.

The cursor becomes


solid when you are
in the Edit Mode.

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

Normally Closed Contact

Normally Open Immediate Normally Closed


Contact Immediate Contact

Equal-To Contact
Not-Equal-To Contact

Greater-Than or
Equal-To Contact Less Than Contact

Display Contact Setup Display Coil Setup


(Instruction Browser) (Instruction Browser)

Display Box Setup


(Instruction Browser) Element Browser

Wire Connection to Wire Connection to


Output Stage

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


4--11
Programming Environment

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).

Normally Closed Immediate Contact — Click on this button to enter a normally


closed Immediate contact.

Equal To Contact — Click on this button to enter a comparative boolean contact for
equal.

Not Equal To Contact — Click on this button to enter a comparative boolean


contact for not equal.

Equal To or Greater Than Contact — Click on this button to enter a comparative


boolean contact for equal to or greater than.

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.

Wire to Stage — Click on this button to draw a powerflow transition between a


contact and a Stage box instruction.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Entering a Program
5

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

Read from PLC


Select manual
configuration Save to PLC
Entering a Program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--3
Entering a Program

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.

Referencing Program Elements


Data Types Next, you will need to understand the various ways to refer to the different types of
elements in the PLC. If you have used the DirectLOGIC compatible products, such
as the TI305t, TI405t, or SIMATICR TI versions, you are probably familiar with the
way elements are represented. The following table provides a complete list of the
various data types and their meanings. You will probably notice some unusual data
types that you have never seen before.

Type of Data DL305C DL05/DL06/


(DL330/DL340 CPU) DL105/DL205/DL350/
DL405
Input Points IO X
Output Points IO Y
Control Relays C C
Stages S S
Timers T T
Timer current TCA TA
Counters CT CT
Counter current TCA CTA
Remote I/O Points IO GX/GY
Data Registers R V
Pointers (to another V location) N/A P
Special Relays uses special SP
C locations
Input points as registers RIO VX
Output points as registers RIO VY
Control Relays as Registers RC VC
Timer Status Bits as Registers N/A VT
Counter Status Bits as Registers N/A VCT
Remote I/O as registers RIO VGX/VGY
Special Relays as registers RC VSP
Entering a Program

Timer current values as pointers N/A PTA


(to another V location)
Counter current values as pointers N/A PCTA
(to another V location)
Constants K K

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--4
Entering a Program

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.

Timer/Counter Current Values Use Timer Accumulator


The DL05, DL06, DL105, DL205, DL350 and Reference
DL405 CPUs use designated V-memory TA0 K100
locations to hold timer and counter current
values. The current value for Timer T0 is stored in OR
V0. This is not always easy to remember, so
DirectSOFT32 allows you to refer to these as Use V-memory Location
either V0 or TA0 (timer accumulated value for V0 K100
Timer 0). For example, the Accumulator for
Counter 3 is in CTA3 which is easier to remember
than V1003.

Accessing I/O Points as Memory Locations. Use VX reference to I/O


Aliases allow you to access I/O points as V
memory (or registers in a DL305C). For example, LD
input points X0 -- X17 in a DL405 are stored in VX20
V40400, X20 -- X37 are in V40401, etc. You can
use VX0 to refer to V40400. This means you want OR
the V-memory location that holds X0. These are
on 16-point boundaries, so the next location is Use V-memory Location
VX20, VX40, VX60, etc. For the DL305C, you
could represent I/O points such as IO10--IO17 LD
with register location RI010. V40401

For example, you may want to read in a range of


discrete input points to get a binary pattern into
the CPU accumulator. The diagram shows two
ways to reference the location. (Check the
appropriate User manual for a description of the
accumulator and instructions required for this
type of task).
Entering a Program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--5
Entering a Program

Entering Instructions

The Instruction Editor is a Dialog Click here to close and


used to enter element data for accept your input
each type of Instruction. Click here to close
without accepting
The check mark (3) is for
Click here to see
accepting an entry. The (7) is for element browser
closing without accepting an entry.
And the magnifying glass will bring
up the Element Browser, which
will show you the valid ranges for
this field.

The small color-coded indicators


in each field of the input box tell
you whether or not your entry for
that field is valid or not. Green is
valid and red is non-valid or in-
complete. Entering a Program

The larger indicator at the top of


the box indicates the validity of all Valid input indicator
fields. For example, before the for the immediate field.
large indicator would glow green,
the above box would have to
have valid entries for the name of Master valid input indicator
the counter and the specification for all fields
for its preset.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--6
Entering a Program

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

Multiple Parameter Some instructions, such as timers,


Instructions counters, and comparative boolean 1st Operand 2nd Operand
contacts require more than one element
CTA0 K5
parameter. For example, for a timer,
=
enter the timer number and a preset
value. For a comparative boolean
contact, enter the memory location and
the value to be compared.
When the Instruction Editor dialog box
appears for these instructions, the cursor
appears in the first operand field. Do not
press ENTER when you complete this
entry. Press TAB (or click on the second
field with your mouse) to reach the next
operand. For example, if entering a
Entering a Program

comparative contact, enter the first value


and then press TAB to enter the next
value or press SHIFT + TAB to return to
the first operand.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--7
Entering a Program

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--8
Entering a Program

Entering When you move your cursor to a


Instructions with selection on the Ladder Palette you
Hot Keys should notice a pop--up caption (Tool
Tip). These Tool Tips provide a brief
description of the button and the
associated Hot Key for that button.
You can enter an instruction by pressing
the Hot Key that corresponds to the type
of instruction you want to use. For
example, to enter a normally opened
input, press F2. When you press the Hot
Key, the Instruction Editor dialog box will
appear. For output coil or box instruction
buttons, an intermediate menu appears
that lets you select the exact type of
instruction.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--9
Entering a Program

Shortcuts for Entering Instructions

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

Position the cursor and type the mnemonic


syntax. The dialog appears.

When you click on the check mark, a


second dialog may appear, depending
on the type of element entered.

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.

After positioning the cursor on the


rung, type the address of the contact.
Entering a Program

Next, press the forward slash ( / ) key.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--10
Entering a Program

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.

Create a new line


with Enter Key

Create new instructions


Entering a Program

Use CTRL and up arrow


to draw vertical line.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--11
Entering a Program

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.

Start by entering the first part of


the loop- - the FOR instruction. Use
the special relay SP1 (_On) to acti-
vate the loop. Enter the parameter
K8 to run the loop 8 times.

Press the F8 key to


compile the rung.
Notice the first part
of the indentation
now takes place.

Entering a Program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--12
Entering a Program

Next, enter the inside of the loop.

Then, close the loop by


entering the rung of logic with
the NEXT instruction.

When compiling again with


F8, the indentation is returned
to the outer power rail.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--13
Entering a Program

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.

Do not type a preset in this field (leave it blank).


DL330/DL340 Counters/Timers CT674- CT677

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--14
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.

The TI330S/TI325S/DL330P counters/timers do not have a preset field.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--15
Entering a Program

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.

Enter the letter ’b’


followed by the memory
address of the word
containing the bit you
want turned ON. Use a
decimal point plus a
value between 0 and 15 to
designate which bit you
wish to turn ON. i.e.
V1400.3 is the fourth bit
of V1400. Ignore the
second field.

Then to reset the bit...

Use the same decimal point


convention with the RST
command.
The same convention is
also used for OUT and
STR (not shown).

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--16
Entering a Program

Drawing/Deleting Connecting Lines

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.

No additional contacts are permitted


after the branches
Entering a Program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--17
Entering a Program

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--18
Entering a Program

Selecting Rungs for Deleting, Cutting or Copying


As you program, it is possible to make mistakes or need to make revisions. And in
some cases, you will want to delete rungs. Other times, you may wish to remove
them from one area and paste them in another area (cut and paste). Or, you may
copy certain rungs and repeat them in another area of your program (copy and
paste). These next few pages illustrate how to do these editing tasks.
The first step in cutting, copying, or deleting rungs is to select them with the SHIFT +
Arrow keys. Notice the selected rungs are highlighted. The following screen shows
an example where two rungs are selected for subsequent deletion, cutting or
copying.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--19
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.

Select the rungs with SHIFT + arrow keys

Then, press Delete, and the rungs are removed.

Entering a Program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--20
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.

Use the Menu or button

You must select the rung or


rungs that you wish to copy.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--21
Entering a Program

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--22
Entering a Program

Cutting (Moving) Rungs


You can move selected rungs to another location (or another program) by using the
Cut button or the Edit > Cut selection. The original rungs are removed and held in a
temporary storage location called the Clipboard.

Use the Menu or the


Scissors button.

You must select the rung or


rungs that you wish to cut.

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

Clipboard contents are


pasted to the new position.
The numbering of the
rungs changes accordingly.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--23
Entering a Program

Merging (Joining) Rungs


There may be times when you want to join one or more rungs into a single rung. You
can do this with the Edit > Merge feature. You can join the current rung with the
previous or following rung. For example, the following screen shows how to join rung
3 with the following rung, which is rung 4.

Notice that in this example


Rung 3 is merging with
Rung 4.

This next screen shows how the display would appear after these rungs were joined.
Notice the rung numbering has changed.

Notice the merge has taken


place. The former Rung 4
is now a part of Rung 3,
and the other rungs were
renumbered accordingly.

Entering a Program

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--24
Entering a Program

Inserting Columns, Rows, and Rungs


DirectSOFT32 makes it easy to add new instructions and logic rungs. Access both
of these features with the Edit > Insert feature or the Hot Key, Insert. When you
insert instructions or rungs, the addresses and rung numbering will change.
Insert a Column to The term columns may be new to you, but a column is simply a new place for
Add an Instruction instructions on a rung. For example, you may want to insert an additional input
contact between two existing contacts. You can use the Edit > Insert menu option or
the Hot Key Insert to insert a column. You can select the number of columns and
where you want to insert them, either before or after the current cursor position. The
following example shows the selections required to insert a column before the
current input contact.

Current position. Insert


new column before
Entering a Program

New column inserted,


ready for new instruction

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--25
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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--26
Entering a Program

Using Search and Replace


DirectSOFT32 offers a powerful search and replace feature. With it, you can search
and replace single items, ranges of items, etc. To access this feature, use the
Search > Replace menu option or the Hot Key, CTRL + R. The following dialog box
that appears will allow you to define the search and replace operation.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--27
Entering a Program

Swap or Replace? There are two choices of actions. Replace


SReplace — the search string is X20 X21 X22 X23 X24 X25
replaced with the elements
specified in the replacement fields. X40 X41 X42 X43 X44 X45
SSwap — the elements are swapped. Swap
They trade places in the program. X20 X21 X22 X23 X24 X25
This is helpful when you discover
modules were not installed as X40 X41 X42 X43 X44 X45
shown in the panel wiring diagram.
You cannot cross-replace elements. You X20 X21 X22 X23 X24 X25
cannot replace X20 -- X25 with X45--X40.
X40 X41 X42 X43 X44 X45

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.

Move, Copy, or DirectSOFT32 also allows you to move Original Documentation


Leave the the documentation (nickname, wiring Description 1 Description 2
Documentation? information, and description) during the Wire Info. 1 Wire Info. 2
search and replace operation. There are Nickname 1 Nickname 2
X20 X40
three options available.
SMove — the documentation is moved search for replace with
with the point. If replacing a point, the
documentation is moved from the Move
point you are searching for to the Description 1
Wire Info. 1
replacement point. Now the original Nickname 1
point does not have any X20 X40
documentation because you moved it
to another point. If swapping the
points, the documentation is also
swapped.
SCopy — copies the documentation from Copy
the point you are searching for to the
Description 1 Description 1
replacement point. Now both points Wire Info.1 Wire Info. 1
will have the same documentation. Nickname 1 (blank)
The nickname is not copied. This is X20 X40
because you cannot use the same
nickname for two different I/O points.
Also, you cannot use the Copy option
if you are swapping the points.
Leave
Entering a Program
SLeave — the documentation is left with
the points. If you are replacing the Description 1 Description 2
Wire Info. 1 Wire Info. 2
points the documentation is Nickname 1 Nickname 2
unaffected. The new point will show X20 X40
up on the screen with its
documentation. If swapping the
points, they swap places on the
screen. They both keep their
documentation with them.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--28
Entering a Program

Accepting (Compiling) Your Entries

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--29
Entering a Program

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.

DirectSOFT32 will take you back to the rung


where the error was made.
°

Entering a Program

Cursor automatically moves to


rung with error.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


5--30
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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Documentation
6

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

How to Turn Documentation ON or OFF


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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--3
Documentation

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--4
Documentation

Using the Documentation Editor


Documentation

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.

" — Moves one element at a time.

"" — Moves to the next full screen of data.

"R — Moves to the beginning of the next data type (X, Y, C, etc.)

"| — Moves to the end of the complete list of data types.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--5
Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--6
Documentation

Documenting and Assigning Nicknames


Documentation

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.

An unassigned Red indicator


nickname is stays on.
entered.

Nickname is accepted without


being linked to an Element.

Dialog Box appears


when you type in a
nickname without having Click on OK.
linked it to an Element.

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.

Open the Element Browser by pressing


F9 from a view.

Fill- in the Dialog.

Click on the Assign Nicknames button.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--7
Documentation

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).

Type in the Element

Click on Assign

Confirmation Dialog

Now the Nickname


and the Element
appear together.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--8
Documentation

Entering Rung Comments


Documentation

Each rung in a DirectSOFT32 program may have associated comments. Unlike


some previous programming packages from other vendors, the comments are not
tied to the outputs. Instead, if you enter comments for Rung #2, they stay with Rung
#2. To enter rung comments, use the Tools > Comment Editor menu selection or the
Hot Key, CTRL + K. After entering the comments, you can also open the Comment
Editor by double-clicking on the comment.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--9
Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--10
Documentation

Entering Stage Comments


Documentation

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--11
Documentation

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 Programming Software Manual, 2nd Edition, 7/02


6--12
Documentation

Importing and Exporting


Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--13
Documentation

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.

Click the OK button to save the program to a text file.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--14
Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--15
Documentation

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)

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--16
Documentation

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.

This is an example of an exported comment text file opened with Microsoft


Notepad.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--17
Documentation

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--18
Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--19
Documentation

If the DirectSOFT32 programming window has been opened to edit a program,


exported programs, element documentation and rung comments can be imported.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--20
Documentation

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

documentation is to import a .csv file which has been previously exported. It is


possible to generate element documentation using Microsoft Excel, but it is
important to follow the correct import format. The standard format is in spread sheet
form such as the below example. The correct format is: the element (address) in
column A, the nickname in column B, wiring info in column C and element comments
in column D. The example is a previously exported file which has had wiring
numbers added.

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)

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--21
Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--22
Documentation

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--23
Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--24
Documentation

The DirectSOFT32 programming window now displays the inserted instructions


Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--25
Documentation

Preventing Loss of Documentation

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


6--26
Documentation

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.

Date and time stamp

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Other Views
7

In This Chapter. . . .
— Accessing Other Views
— Stage View
— Mnemonic View
— XRef View
— Usage View
7--2
Other Views

Accessing Other Views


Up to this point, creating ladder logic programs using the Ladder View has been
covered. There are other views that are output only. These help you organize as well
as better visualize the program. These additional views are Mnemonic, Stage
(RLL plus), Cross Reference (XRef), and Usage 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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


7--3
Other Views

Stage (RLL plus) View


Several DirectLOGIC CPUs support the use of RLL plus instructions. These
instructions (Stage, Jump, etc.) allow you to create a structured program that can be
viewed as a flowchart when you have the Stage View enabled. A program flowchart
can be much easier to follow than a comparable ladder program.
Making The old saying, “can’t see the forest, because of all the trees” often holds true in
Troubleshooting ladder logic programming. Sometimes there can be many interlocks and complex
an Easier Chore rungs in a program, that it is very hard to see clearly the flow of activity and the
relationships between various parts of your program. This is where Stage
Programming is very useful. As you create your ladder program with stages,
DirectSOFT32 will translate the RLL into the equivalent Stage View using much

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


7--4
Other Views

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


7--5
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.

Notice the rung by rung


advancement icons are disabled
during the Normal View.

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.

Clicking on this icon will


toggle you between the
Normal View and the Rung
View.

Notice that when you are in


the Rung View, the rung by
rung advancement icons
are now enabled.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


7--6
Other Views

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

Click on Usage View icon

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


7--7
Other Views

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.

Width of View: 8, 10 or 16 Elements

XRef View Usage View

This is the Manual-Rebuild button. When


Toggle button for either
you click on this button, it will update
reading elements Right to
your free database for elements as you
Left, or reading them Left
later add or delete them in your pro-
to Right
gram. In most cases, this button will be
inactive.

Limit the Elements and Ranges


shown to the CPU being used.
OUT shows all possible values.
IN shows only valid ranges for
CPU.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Printing
8

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

Printing the Current View and Documentation


If you are interested in printing the current view, use the Print dialog to set the
printing options. Select File > Print to print all or a portion of your program in the
current view. Observe the two different dialogs shown below for the Print setup. The
first one is displayed when you have the Ladder View active; and the second one is
when you have the Mnemonic View active. The dialogs are self-explanatory and
easy to configure. Notice the setup screens are “context sensitive”. The dialog is
different for each View. The setup screen for only two of the Views is shown below.
The other Views will have different screens.

Print Setup for


Ladder View

Select here if you want to


print the entire program.

Select each of the


types of documentation
you want printed.
Printing

Print Setup for


Mnemonic View

Select the Starting


Address of the Mnemonic
Instructions

Select the Ending


Address of the
Mnemonic Instructions

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


8--3
Printing

Printing Multiple Views and Documentation


Use File > Print All to print cross reference information, memory values,
documentation tables, or your program logic in any of the available views. Unlike the
Print dialog, it is not context sensitive. This saves you from having to separately
make each View active and use the Print dialog over and over for each View.
Instead, the Print All dialog is a way to take care of all Views in one dialog.
Print All Dialog

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.

Click here to see more options.

If you want to print only


the documentation and not
the different Views, then
leave an X only on the
DOCS category. Remove
the other X’s.

Printing
Remove X’s from data
types that you do not
want printed.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


8--4
Printing

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 to AdobeR AcrobatR


Printing

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 Programming Software Manual, 2nd Edition, 7/02


8--5
Printing

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

Optional Cover Text

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


8--6
Printing

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.

Takes you back to


the Print Preview
dialog

Use the Page Up and


Page Down keys to
scroll through the
pages of your Print
Preview
Printing

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


8--7
Printing

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


8--8
Printing

Sample Printing Setups


Printing Ladder The most common printing need is to print the Ladder View of your program with all
View with All the of its documentation. To do this, select File > Print from the menu bar. Then check
Documentation the boxes for the desired documentation types (i.e. elements, nicknames, etc.).

Select only the Documentation


types you want printed.

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.

Remove All of the X’s ex-


Printing

cept for the Docs category.

Remove X’s for all unassigned


and unused 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.

Remove all of the X’s except XRef

Remove the Usage View X

Remove all of the X’s for unused


or unassigned data types

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Creating & Managing
9
Communication Links

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

Establishing PLC Links


There are a wide variety of communication settings that can be used with
DirectLOGIC devices. These settings can vary from PLC to PLC, and they can also
vary between the same type of PLC on different machines. For example, you may
have a DL440 with an operator interface connected to the bottom port on one
machine, therefore you will have to use the top port for the personal computer
connection. On another machine in a different area of the plant, you may have
another DL440 with a handheld programmer permanently attached to the top port. In
this case, you have to use the bottom port for the personal computer connection.
DirectSOFT32 will use links to easily build and store the communication settings for
one or more PC-to-PLC connections. This will also remove the guess work from
communication settings. There are several things the link tool provides.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--3
Creating and Managing Communication 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.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--4
Creating and Managing Communication Links

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.

4. Select either DirectNET or K-sequence protocol. If during the previous


step you selected one of the the families listed, the highlight bar will be on a
valid protocol for that family. The choice of protocol to use will depend on
two factors:
DWhether or not the PLC supports the protocol on the port where you are
connecting. See Appendix A for a list of protocols available for ports
on DirectLogic and compatible CPUs.
D If you need to perform write operations to individual discrete I/O points
or control relays. In this case you must select the K-sequence
protocol if supported by the CPU you are using. DirectNET protocol
cannot write to individual bit locations.
Creating and Managing
Communications Links

5. If the PLC has been configured to a node Address other than 1, enter that
address now. Click Next when finished.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--5
Creating and Managing Communication Links

6. DirectSOFT32 will attempt to establish a communication link with the PLC


using the node address and protocol you have selected. It will try the
combination of 9600 Baud, and Odd Parity. If this combination is
unsuccessful, an ’auto--baud’ sequence will be used to try and determine
the correct baud rate and parity combination. If these attempts are
unsuccessful, the following dialog is displayed. You can click the Link
Editor button, and manually attempt to adjust the port configuration, or you
can consult the Troubleshooting Guide in Appendix B.

7. If DirectSOFT32 is successful in communicating with the PLC, you will be


prompted to enter a unique name and description for the link. Each link
must have a unique name. The name can be up to 16 characters and can
contain space characters. The description field allows 32 characters. Enter
the name for the link and description then click Finish to return to the

Creating and Managing


Communication Links
DSLaunch window.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--6
Creating and Managing Communication Links

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--7
Creating and Managing Communication Links

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.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--8
Creating and Managing Communication Links

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.

5. Choose 9600 as the Maximum Port Speed.


Creating and Managing
Communications Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--9
Creating and Managing Communication Links

6. Select the Advanced tab and click on Change Default Preferences.

7. Make Port speed 9600, and choose None for Flow control.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--10
Creating and Managing Communication Links

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--11
Creating and Managing Communication 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

2. Select Modem as the device and click the Next button.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--12
Creating and Managing Communication Links

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--13
Creating and Managing Communication Links

5. Click the Protocol tab to display the communication protocol dialog box.
This dialog allows you to further define the communication parameters.

DSelect the communication protocol to use. Refer to the chart in Appendix


A for a breakdown of the various CPUs, and which protocols are
supported on which ports.
DIf the PLC has been given a node Address other than 1, enter the new
address now.
DYou can adjust the time--outs and retries on this dialog, however the
default values should work for you.
6. Click the Accept button to save this link configuration. You will be
presented with the following dialog. If you click Yes, DirectSOFT32 will dial
the modem and attempt to verify that it can indeed communicate with the
PLC connected to the other modem using the parameters defined in the

Creating and Managing


link. DirectSOFT32 will hang--up once the connection is made. If you click

Communication Links
No, the link configuration will simply be saved to disk.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--14
Creating and Managing Communication Links

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--15
Creating and Managing Communication 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

2. Select Ethernet as the Port, then click the Next button.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--16
Creating and Managing Communication Links

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

detail before continuing):

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--17
Creating and Managing Communication 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.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--18
Creating and Managing Communication Links

If you click the Setup button, the following dialog box is displayed.

Selecting a module in the Devices section will display the current


configuration for that module in the Configuration section. Before you
change any of the values, look at each of the options in more detail.
DThe Module ID is a unique numerical identifier given to each module on
the network. This number can be either the module’s dipswitch setting,
or a user configured address (if the dipswitches are set to address 0).
Refer to the Ethernet module’s user manual, part number
H24--ECOM--M, for detailed information on assigning an address.
DThe Name field can contain a 32 character alphanumeric string. The
value assigned at the factory is “Name”. If you intend to use the Name
field as the identification method, you must change the default value
Creating and Managing
Communications Links

from “Name” in order to make it unique on the network.


DThe Description field can contain a 32 character alphanumeric string.
DThe IP Address field must contain a valid IP address that is unique on your
network. You must be careful not to duplicate IP addresses on a
network (you will not be able to complete the link configuration if the IP
address is not unique). Your Network Administrator should be able to
tell you what addresses are available to use. If you intend to use an IP
address, you must change the value from its default value.

NOTE: You must be careful not to duplicate information in these user--configurable


fields in any module on the network. You will not be able to complete the link creation
process if you choose an identifier that has been duplicated on another module.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--19
Creating and Managing Communication Links

5. DirectSOFT32 will attempt to communicate with the Ethernet module


using the parameters you have specified. If successful, you will be
prompted for a Link Name (up to 16 characters) and an optional Link
Description (up to 32 characters). Each link must have a unique name.
Click Finish to save the link configuration to disk.

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.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--20
Creating and Managing Communication Links

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--21
Creating and Managing Communication Links

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.

Creating and Managing


Communication Links

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


9--22
Creating and Managing Communication Links

The Online Tool Bar


When DirectSOFT32 is online, a second tool bar appears below the offline tool bar.
This toolbar is floating, which means that you can move it to other locations in your
programming window by dragging it with your mouse. This tool bar contains buttons
that are directly related to the online functions.

Read from Hotkey: CTRL+F9


PLC Reads program memory from the PLC into the internal computer buffer to be
viewed/edited.
Write to Hotkey: SHIFT+F9
PLC Write program memory from the internal computer buffer to the PLC.

Status Hotkey: CTRL+SHIFT+S


The PLC Status menu item is used to turn status on or off for the CURRENT view. If
status is not currently on in the current view, this item will turn the status on for that
view. If status is already on for the current view, this item will turn the status off for
that view.
New Data Hotkey: CTRL+SHIFT+F3
View To create a new data view, choose the Debug\Data View\New option from the menu.
Window A new data window will appear.
Change Hotkey: CTRL+SHIFT+F2
Value The change value dialog is used to change the value of various types of memory in
the PLC. Type in the element to change in the element field, or select the browser
button to pull up the element browser dialog. Select the format to view the element
from the choices in the format section, and select the size from the size section. After
Creating and Managing
Communications Links

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


Debugging and
10
Monitoring

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

Using Status to Monitor Operations


DirectSOFT32 does not automatically display the status of the various program
elements when you connect to the PLC. You can choose this option by using the
Debug > Status menu options, click on Status, or use the Hot Key
CTRL+SHIFT+S.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--3
Debugging and Monitoring

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

Status OFF for the


ladder portion

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--4
Debugging and Monitoring

Monitoring Status with Data View Windows


With DirectSOFT32 you can build a chart of various program elements and memory
locations for monitoring purposes. These charts are called Data View windows
(versions prior to 2.0 referred to these as Watch Windows). The Data View windows
are free-form, therefore you can place the items in the window in any order you
choose.
Data View windows have a definite advantage over many other types of monitoring.
D Multiple Data Views can be open at the same time.
D Since these function like conventional windows, they can be moved
around on the screen as necessary .
D You can still monitor your program in other views (ladder, stage,
mnemonic) on the same screen.
D You can save the Data View windows by name.
D Data View windows are independent of the projects. That is, you can
use the same Data View windows for multiple programs.
Opening a You can open a Data View window by using the Debug > Data View menu option or
Data View Window by using the Hot Key, CTRL+SHIFT+F3.
When you open a new Data View, DirectSOFT32 automatically provides a title for
the window. These Data View windows are by default assigned the names Data1,
Data2, etc. in order. You can change these names in the Options dialog of View
from the main menu bar.
The following is an example of a Data View window for a simple program. The next
page will take a closer look at the components of a Data View window.
and Monitoring
Debugging

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--5
Debugging and Monitoring

Anatomy of the The example shown below illustrates the basic components of the Data View
Data View Window window:

Data Format Status Column


Clear Edits Buffer
Word Size

Read Only button


Edits Column
Read/Write button

Element Column

Write All the Edits to PLC


Write the Selected Edit to PLC

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:

Enable this if you


want to show the
data format in the
first column beside
the Element. This
will only be visible
when the status is
turned OFF.

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

which ones you need.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--6
Debugging and Monitoring

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.

Select the Buttons


or Indicators of
Your Choice.
and Monitoring
Debugging

Click on new views if you want


all Data Views that follow to use
the same setup.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--7
Debugging and Monitoring

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.

The Title field determines what


descriptive header appears at
the top of your Data View. It can
contain up to 32 characters,
counting spaces.

Enabling documentation boxes


determines what documentation
is visible in your Data View.

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.

Mode choices determine


whether you can Read and
Write from the Data View or
Read without Writing.

If you do not want to


accidentally write something to
the PLC from Data View, you
can enable this feature.
and Monitoring
Debugging

If you enable the Confirm Writes, a


dialog box will pop up every time
you attempt a Write to PLC from the
Data View.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--8
Debugging and Monitoring

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--9
Debugging and Monitoring

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.

Click on entry and


then start pressing
CTRL+ENTER
to create sequential
entries easily.

and Monitoring
Debugging

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--10
Debugging and Monitoring

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.

To Save the Data View,


select Debug- Data View.

The Save As dialog box


will appear, prompting
you to select the
filename and location to
save.

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.

Write an Individual Edit


to the PLC.

Write All the Edits in


the Buffer to the PLC
and Monitoring
Debugging

Clear Edits Buffer

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--11
Debugging and Monitoring

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

DEL from the Menu or keyboard.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--12
Debugging and Monitoring

Changing I/O Points and Data Values

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

element to display the Change Value dialog box.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--13
Debugging and Monitoring

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

Select new Read from


value. Field and Write
changes to PLC
depending buttons.
on how you
are viewing
the data.
and Monitoring
Debugging

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--14
Debugging and Monitoring

Changing Data Values with the Memory Editor

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--15
Debugging and Monitoring

Troubleshooting with Test Mode Operations


Selecting Test Some PLCs support a special Test Mode operation. To enter Test Mode, use the
Mode PLC > Modes menu option, the PLC Mode button (which looks like a traffic light), or
the Hot Key CTRL + SHIFT + R . The selection window shown below appears when
you use any of these methods. When you select Test, one of two types of test modes
will be entered, depending on which mode the PLC is in when you make the
selection.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--16
Debugging and Monitoring

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:

Position the Dialog Box


outside the logic window
when single stepping.

Be sure to click on the logic


window to give it ”focus”
before using the Hot Keys.
and Monitoring
Debugging

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--17
Debugging and Monitoring

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.

Make sure to enable


the Read/Write button
in order to make the
Edits column visible.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--18
Debugging and Monitoring

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.

Make sure to enable


the Read/Write
button in order to
make the Edits
column visible.

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.

NOTE: Override bits clear out on a PGM to RUN transition.


and Monitoring
Debugging

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--19
Debugging and Monitoring

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.

Clicking here to access a dialog


in which you can choose to
show the values in Hex, Decimal
or Octal formats.

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.

Stack Monitor (DL440 Only)


Accessing the The DL440 gives you a Stack Monitor that allows you to observe the values as they
Stack Monitor are placed in the Accumulator and the various levels of the Stack. The Stack Monitor
is accessed by selecting Debug then Stack Monitor... from the main menu bar. This
feature is used most frequently with segments of programming that require
debugging of math operations.

and Monitoring
Debugging

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


10--20
Debugging and Monitoring

Checking the DirectSOFT32 File Revision Numbers


You may never have to use this feature, but DirectSOFT32 provides a quick and
easy method of looking at the various versions of the files that comprise the
software. However, this may be useful in the future as additional features are added
in upgrade packages, new products, etc.
Examine the Desktop Launch Window for an icon in the Utilities portion of the
screen. If you double-click on this icon, a window appears that lists the
DirectSOFT32 files and their version numbers. The following is an example of the
screen.

Double-click here
and Monitoring
Debugging

TIP: An easy way to determine the DirectSOFT32 version number is to open a


document and select Help/About.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


DV-1000 Setup
11

In This Chapter. . . .
— Configuring the DV-1000
— Creating a Program
11--2
DV--1000 Setup

Configuring the DV-1000


DV--1000 Setup

DirectSOFT32 programming software features a utility that configures the


DV-1000. The DV-1000 has no memory of its own, therefore, the configuration
created with DirectSOFT32 is loaded into the memory of the PLC linked to the
DV-1000. This configuration can be part of your ladder logic program or stored
directly in the PLCs V-Memory. Please note the following when deciding whether to
use the DV-1000 setup tool or to perform the entire setup as part of your ladder logic
program:
D While this tool can completely setup the Change Preset and Bit Control
modes, it still needs additional ladder logic to setup multiple Message
mode applications or messages with embedded data variables.
D V-Memory is volatile and its contents could be lost. Consider purchasing
a battery for your CPU it it supports this feature.
D If you are short on V-Memory, you should consider using the ladder logic
approach which stores the configuration in your program memory.
D If you are considering using the EEPROM sections of the DL105 &
DL205 CPUs for Message screens that are continually updating with
PLC data, be aware that continuously writing the same location in an
EEPROM will shorten its useful life.

Before attempting to configure a DV-1000 with this utility, it is imperative you


understand the V-Memory relationship between the DV-1000 and the PLC to which it
is attached. Please refer to the DV-1000 Instruction Manual for this background
information. Without it, you will not understand the implications of selecting the
starting addresses for the tables you may need to define.

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--3
DV--1000 Setup

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.

Double click here to see


valid ranges for the Bit
Control Address.

Click here to Save to PLC

Click here to Save to Disk

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--4
DV--1000 Setup

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.

No Numeric Layer for Each Number Layer for Each


Active Text 32 words of Text 32 words of Text
16 words of Numeric 16 words of Numeric
Secondary #1 32 words of Text 32 words of Text
16 words of Numeric
Secondary #2 32 words of Text 32 words of Text
16 words of Numeric

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--5
DV--1000 Setup

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--6
DV--1000 Setup

An Example: Creating a Program


DV--1000 Setup

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.

Check Message Tab

Enter Active Text Location

Enter Number of Secondary Screens

Leave this blank

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--7
DV--1000 Setup

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

...Continue this process for each Secondary Screen. In this example,


there are only two Secondary Screens.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--8
DV--1000 Setup

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

DirectSOFT32 for entering the program. Below is a sample program.

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

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


11--9
DV--1000 Setup

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.

DirectSOFT32 Programming Software Manual, 2nd Edition, 7/02


1A
Protocols and Cable
Diagrams
A--2
Protocols and Cable Diagrams
Protocols/Cable Diagrams

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)

DirectLOGICt DL05 (all versions) Port 1 D2--DSCBL S S S


DL05 Port 2 D2--DSCBL S S S
DirectLOGICt DL06 (all versions) Port 1 D2--DSCBL S S S
DL06 Port 2 D2--DSCBL--1 S S S
DirectLOGICt DL105 (all versions) Only one D2--DSCBL S
DL105
DirectLOGICt DL230 Only one D2--DSCBL ·
DL205 DL240 Top port D2--DSCBL S
Bottom port D2--DSCBL S S
DL250--1 Top port D2--DSCBL S S S
Bottom port D2--DSCBL--1 S S S
DL260 Top port D2--DSCBL S S S
Bottom port D2--DSCBL--1 S S S
D2--DCM (module) Only one D3--DSCBL--2 S S S
H2--ECOM (module) Only one S S S
DirectLOGICt DL330/DL330P Requires DCU* D3--DSCBL--2 S
DL305 DL340 Top port D3--DSCBL--1 S
Bottom port D3--DSCBL--1 S S
D3--DCM (module) Only one D3--DSCBL--2 S S S
DirectLOGICt DL430, DL440 Top port (15-pin) D4--DSCBL S
DL405 Bottom port (25-pin) D3--DSCBL--2 S S
DL450 Phone Jack D2--DSCBL S S
Top port (15-pin) D4--DSCBL S
Bottom port RS232 D3--DSCBL--2 S S S
Bottom port RS422 S S S
D4--DCM (module) Only one D3--DSCBL--2 S S S
H4--ECOM (module) Only one S S S
Slice I/O Modules Only one D4--DSCBL S

* — requires RS232 Data Communications Unit (D3--232--DCU)


A--3
Protocols and Cable Diagrams

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)

GER Series 1 IC610CPU105/106 Requires DCU* D3--DSCBL--2 S


TI305t / 325--07, PPX:325--07 Requires DCU* D3--DSCBL--2 S
SIMATIC? 330--37, PPX:330--37 Requires DCU* D3--DSCBL--2 S
TI305t
325S--07 (or 325 Requires DCU* D3--DSCBL--2 S
w/ Stage Kt)
330S--37, PPX:330S--37 Requires DCU* D3--DSCBL--2 S

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

* — requires RS232 Data Communications Unit (D3--232--DCU)


A--4
Protocols and Cable Diagrams
Protocols/Cable Diagrams

Programming Cable Diagrams


Pin labeling conforms to IBM DTE and DCE standards
DL06,
DL250--1
Appendix A

D2--DSCBL DL05, DL06, DL105 D2--DSCBL--1


DL230, DL240, DL250-- 1, DL260 DL260
Personal Computer DL350, DL450 Personal Computer (Port 2)
CPU Ports RS232C
RS232C
2 RXD 4 TXD 2 RXD 2 TXD
3 TXD 3 RXD 3 TXD 3 RXD
5 GND 1 GND 5 GND 7 GND
1 DCD 1 DCD 4 RTS
4 DTR 4 DTR 5 CTS
6 DSR 6 DSR
7 RTS 1 2 3 4 5 6 7 RTS
8 CTS 8 CTS
6-pin Phone Plug
(6P6C)
9-pin D-- Connector (female) 9-pin D-- Connector (female) 15-pin HD-- connector (male)

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

9-pin D-- Connector (female) 15-pin D-- Connector (male)

Straight--through Cable

TD+ 1 OR/WHT OR/WHT 1 TD+


OR OR
TD-- 2 2 TD--
GRN/WHT GRN/WHT
RD+ 3 3 RD+
4 BLU BLU 4
BLU/WHT BLU/WHT
5 5
RD-- 6 GRN GRN 6 RD--
BRN/WHT BRN/WHT
7 7 1 2 34 5 67 8
8 BRN BRN 8
8-pin RJ45 Connector
RJ45 RJ45 (8P8C)
Crossover Cable
All Ethernet and Ecom patch cables should be Category 5,
OR/WHT GRN/WHT
TD+ 1 UTP Cable. The diagram illustrates the appropriate wire
OR GRN TD+ 1 position in the RJ45 connector.
TD-- 2 OR/WHT TD-- 2
GRN/WHT
RD+ 3 RD+ 3
4 BLU BLU 4
5 BLU/WHT BLU/WHT 5
GRN OR
RD-- 6 BRN/WHT RD-- 6
BRN/WHT
7 BRN 7
8 BRN 8
RJ45 RJ45
1B
Communications
Troubleshooting
B--2
Communications Troubleshooting

It is useful to have an understanding of what DirectSOFT32 does with the


communication resources on your PC to be able to communicate with a PLC. The
following information is provided to help resolve PC to PLC communication
problems.

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

Setting a particular entry to a value of 0 excludes that resource from


DirectSOFT32’s use. A value of 1 enables it for DirectSOFT32’s use. You should
set the values for these entries so they match the resources that are physically
present on the PC and are available for DirectSOFT32 to use.
B--3
Communications Troubleshooting

Example PC Let’s consider a common PC configuration with:


Configuration: S one serial port (COM1)
Using an S a built--in modem using COM2 that DirectSOFT32 will not use
Ethernet card
S an Ethernet card that DirectSOFT32 will use to communicate via an
ECOM module
Your DS400.ini can be configured to look like this:
[devasync.dll]
COM1Enable=1
COM2Enable=0

Comm. Troubleshooting
COM3Enable=0
COM4Enable=0

Appendix B
ModemEnable=0
COM5Enable=0
COM6Enable=0
COM7Enable=0
COM8Enable=0

[devether.dll]
EthernetEnable=1

Example PC Let’s consider a laptop PC with:


Configuration: S no serial ports
Using a Modem S USB--to--serial adapter configured as COM5 that DirectSOFT32 will not use
S a built--in modem using COM2 that DirectSOFT32 will use
S an Ethernet card that DirectSOFT32 will not use
Your DS400.ini can be configured to look like this:
[devasync.dll]
COM1Enable=0
COM2Enable=0
COM3Enable=0
COM4Enable=0
ModemEnable=1
COM5Enable=0
COM6Enable=0
COM7Enable=0
COM8Enable=0

[devether.dll]
EthernetEnable=0

NOTE: If you make changes to DS400.ini, you must restart DirectSOFT32 to


make the changes active.
B--4
Communications Troubleshooting

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

Inserting columns, rows, rungs, 5---25


Installation, starting the software, 3---2 P
Instructions Password, installation, 2---4
browser, 5---6, 5---8
entering, 5---4 Pause bits, 10---18
multiple parameters, 5---7 PID loop
single parameter, 5---7 alarms dialog, 12---7
IP address, 9---16, 9---18 configuration, 12---4
documentation, 12---3
number of loops, 12---8
K output, 12---5
R/S dialog, 12---7
setup, 12---2
K---sequence, 9---4
SP/PV dialog, 12---5
tuning dialog, 12---5

L PLC
family, 9---3, 9---12
Launch window, 3---3 going online, 9---2

Link Pointers, 5---3, 5---5


editor, 9---5 Power flow, 5---12
Printing, 8---2
preview, 8---5, 8---7
T
setup, 8---4 Technical Support, 1---2
troubleshooting, 8---6, 8---8
Test mode, 10---16
Program elements, 5---2
Tile feature, 10---8
copy documentation between, 6---5
Timer current values, 5---3, 5---5
Protocals and Programming Cables, A---2, A---3
TISOFT, 3---5
Programming cable diagrams, A---4
Tokens, 3---D, 4---7
Project, creating, 3---4
Tool Bar
icons, 4---2
online, 9---22
R Tool palette, 4---10, 5---6, 5---8
icons, 4---11
Registration, software, 2---4
Troubleshooting
Revision numbers, 10---20
communications, B---2, B---4
Rung numbering, 4---6 programs, 10---16
Rungs
copying, 5---21
cutting (moving), 5---23 U
deleting, 5---20
UDP/IP, 9---16
entering comments for, 6---8
inserting, 5---25 Usage view, 7---6
merging (joining), 5---24 Utilities, 3---3

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

Vous aimerez peut-être aussi