61
Advanced Features Usage Examples
19.
Select
PlcRescalerBackupSwitchoverDelay
and enter
4095.
20.
In the
PlcRescalerBackupInputSignal
list, select
Timer1Out
.
21.
In the
ControlBits
section of the
Plc
category, select one of the inputs from the
PlcCtrlSelector
list,
for example,
PlcCtrl0
.
22.
In the
PlcCtrlValue
list, click
True
to set the signal state to high, or
False
to set the signal state to
low.
When
PlcCtrl0
is
True
, the timer outputs a 4 Hz signal. When
PlcCtrl0
is
False
, the timer outputs
a 1.1 Hz signal.
PlcRescalerBackupSwitchoverDelay
configures how long the rescaler waits before switching to the
backup signal. Configure this setting carefully. If this value is set too low
(a value of 10 or lower),
the rescaler switches immediately to the backup signal because the wait is shorter than the input
frequency. A value of 100 causes the rescaler to switch back and forth.
Using the Counter Feature
The following procedure demonstrates how you can configure the counter feature to keep counts of
various PLC activities. In this example, the remote control bits are used to clear, decrement, or increment
the count. When the count is greater than 4, the signal output is
True
or (high).
To configure the counter
1.
Follow steps 1-5 in the procedure,
2.
In the
Counter
section, select
Counter0
from the
CounterSelector
list.
3.
In the
CounterResetActivation
list, select
RisingEdge
.
4.
Select
CounterDuration
and enter
4
.
5.
In the
CounterIncrementEventActivation
list, select
RisingEdge
.
6.
In the
CounterDecrementEventActivation
list, elect
RisingEdge
.
7.
In the
SignalRouting
section, select one of the available equations, for example,
PlcEquation0
, and
enter the following Boolean equation:
Counter0Reset = PlcCtrl0.
8.
Select another of the available equations, for example,
PlcEquation1
, and enter the following
Boolean equation:
Counter0Dec = PlcCtrl1.
9.
Select another of the available equations, for example,
PlcEquation2
, and enter the following
Boolean equation:
Counter0Inc = PlcCtrl2.
10.
Select another of the available equations, for example,
PlcEquation3
, and enter the following
Boolean equation:
GpioOut0 = Counter0Gt.
11.
Click
PlcEquationApply
to apply the equations.
12.
In the
ControlBits
section of the
Plc
category, select three of the inputs from the
PlcCtrlSelector
list, for example,
PlcCtrl0, PlcCtrl1,
and
PlcCtrl2
.
13.
In the
PlcCtrlValue
list, click
True
to set the signal state to high, or
False
to set the signal state to
low.
By changing
PlcCtrlValue
from
False
to
True
,
PlcCtrl0
clears the count value (sets it to zero);
Plc_Ctrl1
decrements the count value; and
PlcCtrl2
increments the count value. If the count is
decremented below
0
, the value wraps around to
4294967295
.
Summary of Contents for iPORT CL-Ten
Page 8: ...4 iPORT Advanced Features User Guide...
Page 12: ...8 iPORT Advanced Features User Guide...
Page 38: ...34 iPORT Advanced Features User Guide...
Page 52: ...48 iPORT Advanced Features User Guide 6 In the ChunkSelector list select PixelBusMetadata...
Page 55: ...51 Extended Chunk Mode Support 3 In the ChunkEnable list click True...
Page 56: ...52 iPORT Advanced Features User Guide...
Page 72: ......