GE VersaMax IC200PWR001 User Manual page 464

Table of Contents

Advertisement

13
IC200MDD841
Mixed Module, 24 V DC Positive Logic Input 20 Points / Output 12 Point /
(4) High-speed Counter, PWM, or Pulse Train Configurable Points
Data Command Definitions
Data Commands can be used to temporarily change the counter parameters
listed below. These changes are lost when the module is powered down and
when a new configuration is stored from the programmer. The bytes in the
command word are treated as independent bytes: a counter ID byte and a
command code byte. Command words can be entered in hexadecimal or
decimal format. In the table, for Type A, n = Counter #1–4. For Type B, n =
Counter #2 (only counter 2 is B-type).
Command
Command
Word (hex)
0n01
Load
Accumulator
0n02
Load High
Limit
0n03
Load Low
Limit
0n04
Load
Accumulator
Increment
0n05
Set Counter
Direction
0n06
Load
Timebase
13-24
VersaMax Modules, Power Supplies and Carriers User's Manual
Loads any value within a counter's limits directly into the Accumulator. If a count is
received at the same time, the count is lost.
Example: To set Counter 1 to 1234H, load COMREQ command registers with:
Command word: 0101
LS data word: 1234
Sets the High and Low limit to any value in the counter range. Move the Low Limit
first when shifting down or the High Limit first when shifting up. Loading limits in
the wrong order can cause an error. The command is successful if all parameters
are within the new range.
Example: To change the upper limit of counter 1 to 10000 (2710H), load registers
with:
Command word: 0102
LS data word: 2710
Offsets a counter Accumulator by up to +127 or –128 counts. Only the LSB data is
used with this command. This can be done at any time, even while the counter is
counting at maximum rate. However, if a count is received at the same time the
CPU updates the Accumulator value, the count is lost. If the offset causes the
counter to exceed its limits, this parameter is rejected.
Example: To offset counter 1 by –7 counts, load:
Command word: 0104
LS data word: 00F9
(Type A only) Changes the count direction of a type A counter. Only the LSB of the
first data word is used for this command (00 = up, 01 = down).
Example: To set the direction of counter 4 to down, load:
Command word: 0405
LS data word: 0001
Changes the time interval used for the counts/timebase word data.
The range is 10 to 1000mS in 10mS intervals.
Example: To change the timebase for counter 1 to 600 ms (258H), load:
Command word: 0106
LS data word: 0258
Description
GFK-1504N

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents