Download Chapter 6 - AutomationDirect

Transcript
Chapter 6: Program Control
Do-more and Program Control
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
6–2
Much of Chapter 6 of this manual does not apply to applications using Do-more as the
controller. The section, Pulse Output Profiles (functional descriptions of the various pulse
profiles), should be useful to Do-more users as these profiles are available on Do-more as
well. However, Do-more users using a CTRIO2 also have Axis Mode profiles available. Each
is controlled by a dedicated ladder instruction. Please see Do-more Designer help file for
more information on Axis Mode instructions for the CTRIO2.
One of the goals of the development of Do-more was to simplify use of modules such as the
CTRIO(2). When used with Do-more, Program Control is handled natively using memory
structures and dedicated ladder instructions. There is no CTRIO Memory Map to configure.
With Do-more, different CTRIO(2) registers are accessed through data structures, or using
the ladder instructions: CTRIO Read Register (CTREGRD) and CTRIO Write Register
(CTREGWR).
The data structures and other registers are automatically created when the module is added
and relevant features are selected in the CTRIO(2)’s configuration. The data structures have
names such as $CTRIO_000_C1F1.AtResetValue. The structure name is broken down as
follows:
$CTRIO_000_C1F1.AtResetValue
$ - corresponds to a system address
CTRIO - signifies that this structure pertains to a CTRIO module
000 - is the default designator for a CTRIO module in slot 0
Module Level
C1F1 - corresponds to input Channel 1, Function 1 (Out0 would
Structures
refer to Output 0)
.AtResetValue - is the structure member chosen, in this
particular case the value will go HIGH when the CTRIO
count has been reset to the configured reset value.
Using the DataView tool of Do-more Designer, a list of
possible structure members for a configured CTRIO module is
shown below.
Function Level
Structures
Output Level
Structures
A list of CTRIO data structures and their definitions can be
found in Do-more Designer help file topics for the CTRIO
instructions.
Counter I/O User Manual, 2nd Ed., Rev. D