Basic Programming Steps; Writing The Presets; Setting Run Mode; Table 4-2 Word Outputs For Preset Values - Siemens SIMATIC TI505 User Manual

High speed counter encoder module
Hide thumbs Also See for SIMATIC TI505:
Table of Contents

Advertisement

4.3

Basic Programming Steps

Writing the Presets

Programming
the Module

Setting RUN Mode

High Speed Counter Encoder Module User Manual
To program the High Speed Counter Encoder module and place it in Run
Mode, perform the following steps:
In your RLL program, write the preset values to the words that correspond
to the counters you are setting up. A preset value of all zeros is valid. As
described in Chapter 3, preset values for each counter are stored in the WY
words listed in Table 4-2.
Until the module is programmed, the PLC sees the module as
unprogrammed and the green

Table 4-2 Word Outputs for Preset Values

Word
WY21
PRESET 1, high word
WY22
PRESET 1, low word
WY23
PRESET 2, high word
WY24
PRESET 2, low word
WY25
PRESET 3, word
WY26
PRESET 4, word
WY27
PRESET 5, high word
WY28
PRESET 5, low word
WY29
PRESET 6, high word
WY30
PRESET 6, low word
WY31
PRESET 7, word
WY32
PRESET 8, word
Set bit WY20.01, shown shaded in Table 4-3. All other bit values in the
module Setup Words WY19 and WY20 can be left at zero.

Table 4-3 Setting Bit 1 to Program the Module

Word
WY19
1
2
3
WY20
1
2
3
When the module detects that WY20.01 is set, it configures the module by
reading the programming bits and preset words in locations WY19 through
WY32. The green
RUN
Clear bit WY20.01. If no module fault or programming error is detected, the
Run flag, WX18.01 becomes set and the module transitions to Run Mode.
The green
LED comes on steadily.
RUN
LED blinks fast.
RUN
Description
MSByte
4
5
6
7
8
4
5
6
7
8
LED goes off.
Using the Default Configurations
Counter
Counter 1
Counter 2
Counter 3
Counter 4
Counter 5
Counter 6
LSByte
9
10
11
12 13 14 15 16
9
10
11
12 13 14 15 16
4-5

Advertisement

Table of Contents
loading

Table of Contents