6 comment important information into the program, Comment important information into the program – High Country Tek emc-3L User Manual

Page 7

Advertising
background image

all 128 EEmem variables. Variables that aren’t used could be name EEmem_spare_89, or such. An exception
would be a variable that is declared private; this would have to be declared in the bubble used. Declaring all the
variables in one location could make it easier to add another variable at a later time, and provides for a cleaner,
more structured program.

4.6

Comment important information into the program

Information such as Programmer’s name, date of program creation, revision history, and any description of
something that is difficult to understand is appreciated by anyone offering assistance in troubleshooting the
program. Explaining a complex math equation can be beneficial at a later date to refresh the programmer’s
memory of why a function was built the way it was and to assist in troubleshooting. Comment as much or little
as necessary. Comments do not contribute to the compiled program (.pgm) file size. Remember to add a colon
(‘) before starting comments. The Intella software interprets the (‘) that the information to the right is not to be
compiled.


‘Programmer’s Name: Paul Programmer

‘Program creation date: 5/28/2007

‘Revision history: 5/28/07 – initial release

‘Program description: This program will…

‘ The math function for the tank level takes into consideration the ….

The "Programming Tool" is used to create your application for the DVC5/7/10. The "Program Loader Monitor" is
used to load the user application into the DVC5/7/10 module and monitor the inputs and outputs in real-time
mode as your application executes. Both programs are located in the Windows Start Menu under the
c:\Program Files\HCT Products. In order to create a user application, the following steps generally should be
followed:

a) Architect your system. In the design process compile a total list of digital inputs, pulse inputs, PWM outputs

etc. A total I/O count is needed to assure the correct amount of DVC inputs / outputs are specified in
external modules, if needed. Also, remember to allow room for expansion with spare I/O.

b) Define your system components and their interactions. HCT does have experience with a wide variety of

sensor manufactures. Request a sensor recommendation sheet of sensors known to work with the HCT
system.

c) Start the Intella Programming Tool. Create a new project by saving the file, i.e. hydraulic log splitter. Select

your Project type to be a DVC5, DVC5/J1939, DVC7 or DVC10 project.

d) Configure the DVC5/7/10 and DVC expansion module’s inputs and outputs that drive or sense your

components. With the mouse on the screen, right click to choose the expansion module. Insert the
expansion module, set the modules unique name and Mac ID#. Assign names to the real world I/O, refer to
section 1.16 for further guidance on I/O names.

e) Create a flow diagram of machine function (aka Sequence of Operations) refer to chapter 4.1 and chapter 5

for additional information. Once the Sequence of Operations (SoO) is complete, this needs to be converted
into a program. The ‘always’ code as well as bubble logic sequences will be used during this step. Refer to
‘DVC Family System and Programming User Guide’ section 5 for programming examples. Refer to
Appendix A for compiler keywords. Program the control logic as to how the outputs respond to the inputs.

f) Compile the program. Refer ‘DVC Family System and Programming User Guide’ to section 3.1.
g) Load the compiled program files into the DVC5/7/10. Refer to ‘DVC Family System and Programming User

Guide’ section 3.5.

h) Run your system and debug your application.

Graphical windows allow you to specify the system components you will need and the electrical characteristics
of your inputs and outputs. Text screens are provided to enter the program control logic (using a subset of the
Basic language) for both your time critical and normal operations.

PN 021-00154-QSG, Rev A.2

Quick Start Guide

Page | 7

Advertising
This manual is related to the following products: