DL205 User Manual, 4th Edition, Rev. B
5–333
Chapter 5: Intelligent Box (IBox) Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
CTRADPT Example
Rung 1: This sets up the CTRIO module in slot 2 of the local base. Each CTRIO module in
the system will need a separate CTRIO Config IBox before any CTRxxxx IBoxes can be used.
The CTRIO has been configured to use V2000 through V2025 for its input data, and V2030
through V2061 for its output data.
NOTE
: The CTRIO Configuration IBox instruction does not require a permissive contact. The top line will be
identified in
BOLD italics
, and the instruction name and ID will be in
BOLD characters.
Rung 2: This rung is a sample method for enabling the CTRADPT command. A C-bit is
used to allow the programmer to control the command from Data View for testing purposes.
Turning on C0 will cause the CTRADPT instruction to add a new preset to the preset table
for output #0 on the CTRIO in slot 2. The new preset will be a command to RESET (entry
type K1=reset), pulse time is left at zero as the reset type does not use this, and the count at
which it will reset will be 20.
Operating procedure for this example code is to load the CTRADPT_ex1.cwb file to your
CTRIO, then enter the code shown here, change to RUN mode, enable output #0 by turning
on C2 in Data View, turn encoder on CTRIO to value above 10 and output #0 light will
come on and stay on for all counts past 10. Now reset the counter with C1, enable C0 to
execute CTRADPT command to add a reset for output #0 at a count of 20, turn on C2 to
enable output #0, then turn encoder to value of 10+ (output #0 should turn on) and then
continue on to count of 20+ (output #0 should turn off ).
(example continued on next page)