![Moeller XIOC Hardware And Engineering Download Page 35](http://html1.mh-extra.com/html/moeller/xioc/xioc_hardware-and-engineering_1819287035.webp)
04/03 AWB2725-1452GB
Processing of commands
31
Processing of commands
The following table describes the commands and illustrates the
sequence in which they are processed after the controller is
switched on. You should also keep to this sequence during
programming. Some of the commands may not be necessary,
depending on the application. Where commands only apply to the
linear counter of the ring counter, this is also mentioned. The
counting range for the linear counter lies between the start value
0 and the end value “FFFFFFFF
hex
”.
h
The input values to the function blocks “CounterControl”,
“WriteCounter” and “CounterFlags” are accepted when
a positive edge appears at the “Strobe” input.
h
A detailed description of the function blocks
“CounterControl”, “ReadCounter”, “WriteCounter” and
“CounterFlags” with all their inputs/ outputs and
commands can be found in the manual “Function blocks
for XSoft”. This manual is also available as a PDF file
(h1456g.pdf).
The latest edition of the manual can be found at
http://www.moeller.net/support
Search text: “AWB2725-1456GB”.
Set start value
Only for ring counter:
X
Enter the command WRITEPRESETVALUE at the “Command” input of the block “WriteCounter” and
the start value at the “Data” input.
Take care that the condition “Start value < End value” is fulfilled.
Set end value
Only for ring counter:
X
Enter the command WRITESETTINGVALUE at the “Command” input of the block “WriteCounter” and
the end value at the “Data” input.
Set comparison value
X
Enter the command WRITESETTINGVALUE1 (for linear counter) or WRITESETTINGVALUE2 (for ring
counter) at the “Command” input of the block “WriteCounter” and the comparison value at the
“Data” input.
You can access the channels individually or together.
You can set the comparison value either at the start or during operation. This does not depend on the
counter being enabled at the “Counter
n
Enable” input of the function block “CounterControl”.
When the actual value matches the comparison value, the module outputs will be set. The Equal flag
associated with the output is also set at the same time.You can interrogate the flag by using the command
READFLAGS for the “CounterFlags” block.
The Equal flag retains its state if the state of the CPU changes from RUN
l
STOP or STOP
l
RUN.
Assign module outputs to
the comparison value
1 or 2
Comparison value 1 (linear counter) or comparison value 2 (ring counter) can be assigned to several
module outputs (Y
n
, n = 1, 2, 3, 4) and the conditions “=” and/or “>” for setting the outputs (only the
“=” condition can be used with a ring counter).
X
To achieve this, set up a bit combination (16 bits), e.g. 0021
hex
, that is applied to the
“OutputSpecification” input of the “CounterFlags” block (further information can be found in the
description of the function block “CounterFlags” in the manual “Function blocks for XSoft”,
AWB2786-1456GB).
X
Apply the SPECIFYOUTPUT command to the “Command” input and a “1” signal to the “Strobe” input.
The “CounterEnable” input (flag) must not be set. When the condition “Actual value = preset value” is
met, the (Latch) output Y0 is set to “1” by the bit combination “0021”. It will remain set until you reset
it by using the “ClearEqual
n
” input of the “CounterControl” block.
Only for linear counters:
The (Level) output Y1 will be set to “1” if the condition “Actual value > Preset value” is fulfilled. If the
actual value falls below the comparison value 2, then the output is automatically reset to “0”.
For Immediate Delivery call KMParts.com at (866) 595-9616
Summary of Contents for XIOC
Page 4: ...II For Immediate Delivery call KMParts com at 866 595 9616...
Page 8: ...04 03 AWB2725 1452GB 4 For Immediate Delivery call KMParts com at 866 595 9616...
Page 24: ...04 03 AWB2725 1452GB 20 For Immediate Delivery call KMParts com at 866 595 9616...
Page 52: ...04 03 AWB2725 1452GB 48 For Immediate Delivery call KMParts com at 866 595 9616...