Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Uživatelský manuál Strana 53

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 312
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 52
Chapter
4
4-1
Using the Programming Environment
This chapter provides an example of creating and compiling a C program
using the PCBridge software and the DOS editor; it then shows you how to
transfer the program to the control coprocessor. The chapter also provides
an example of a BASIC program.
For information on: See page:
$&! &%& #$"$ +
" #! &%& #$"$ +
!! !$*  &" &
"!&$" "#$"%%"$
+
'!!! #$"$ "!
& "!&$" "#$"%%"$
+
"!$ !  #%% &"
& "!&$" "#$"%%"$
+
$&!  &%&
#$"$
+
%%!  % +
Create a test C program using the text editor. The default text editor is
DTE, a public domain text editor provided for your convenience. Use it to
edit small files and PCBridge configuration information. For more
information on DTE, view the files DTE.MAN, DTE.DOC, and DTE.HLP
in the \PCBRIDGE\EDITOR subdirectory.
Important: You need the 1771-PCB software—installed in Chapter 3—to
create C and assembler programs for the control coprocessor.
1. If you do not want to use DTE, select
E) Editor Name on the
PCBridge Configuration Options menu and change the text editor.
Important: The text editor you select must run in 250 Kbytes or
less of memory, depending on your system configuration.
2. Select
E) Edit on the PCBridge main menu to get the text editor.
3. Using your text editor, create the following C test program.
See Figure 4.1.
Chapter Objectives
CreateaCTestProgram
!&$"'&"!
!%&! & "!&$"
"#$"%%"$
&&! &$& )& &
"!&$" "#$"%%"$
%! & $"$ !
!($"! !&
("#! $"$ %
!&$#$&! '&
"% ! %#*%
%! & &$!&
!&$
%! & $ "$&%
Zobrazit stránku 52
1 2 ... 48 49 50 51 52 53 54 55 56 57 58 ... 311 312

Komentáře k této Příručce

Žádné komentáře