Quick start
PCD2.H31x
Page 6-2
SAIA-Burgess Electronics Ltd.
(2H3-06-E.DOC)
26/762 E2
6.1 Entry with programming in IL
The basic program shown below is proposed as the simplest way of com-
missioning a regulated position controller:
A properly written user program should not contain any
wait loops. Despite this, our first example has been de-
signed with wait loops to demonstrate the main instruc-
tions for driving a PCD2.H31x. In practice a GRAFTEC or
(in future) a FUPLA structure should always be chosen for
this type of program. (See second example and chapter
10).
Task:
After switching on the PCD’s 'Start' input, the carriage is to
travel first in one direction and then, after a pause, back
again to the starting position. It is assumed that, at the start,
the carriage will be located roughly in the middle of the axis.
The purpose of this example is to demonstrate the principle
and possible user program structures. Above all note the be-
ginning of the program with its assembler directives
'$include ' and '$group'.
The meaning and definition of individual parameters require
some knowledge of control technique and are explained in
chapter 9: 'Installation and commissioning'.
This first example (with wait loops) is entitled
'Intro-1.src'. The same example shown subsequently in
GRAFTEC is called 'Intro-2.sfc'
The FBs (IL for PG4 from version V2.0.70) are on the PCD9.H31E diskette.
To install the FBs on the PC, follow the instructions in chapter 7 below and
the README.TXT file. This file can also be found on the diskette.
The number of modules (1) and the address of the PCD2.H311 module (ad-
dress 80) must be entered in the file D2H310_B.MBA:
NbrModules EQU
1
; No. of H31x modules used (0...16)
BA_1
EQU
80
; Base address of module 1
This file (D2H310_B.MBA) must be located in the project directory for the
example, i.e. the file should be copied manually from the diskette into the
current project directory.
Содержание PCD2.H310
Страница 8: ...Contents PCD2 H31x Page 4 SAIA Burgess Electronics Ltd 2H3 00 E DOC 26 762 E2 Notes...
Страница 18: ...Introduction PCD2 H31x Page 1 8 SAIA Burgess Electronics Ltd 2H3 01 E DOC 26 762 E2 Notes...
Страница 28: ...Terminals PCD2 H31x Page 4 4 SAIA Burgess Electronics Ltd 2H3 04 E DOC 26 762 E2 Notes...
Страница 52: ...Quick start PCD2 H31x Page 6 14 SAIA Burgess Electronics Ltd 2H3 06 E DOC 26 762 E2 Notes...
Страница 66: ...Error handling and diagnosis PCD2 H31x Page 8 4 SAIA Burgess Electronics Ltd 2H3 08 E DOC 26 762 E2 Notes...
Страница 92: ...Commissioning tool PCD2 H31x Page 10 10 SAIA Burgess Electronics Ltd 2H3 10 E DOC 26 762 E2 Notes...
Страница 110: ...Application examples PCD2 H31x Page 12 16 SAIA Burgess Electronics Ltd 2H3 12 E DOC 26 762 E2 Notes...
Страница 152: ...Summary of all FBoxes PCD2 H31x Page B 2 SAIA Burgess Electronics Ltd 2H3 AB E DOC 26 762 E2 Notes...
Страница 154: ...SAIA Burgess Electronics Ltd Your suggestions...