Learning Step 7

I did not ignore it, it just made no sense to me
Lets break it down

S5T#4S
Bold part is your problem.
To understand this, you need to know how the S5 time is built.

S5 time is only 1 word, 2 byte, 16 bits.
Of those 16 bits, the 2 MSB's are not used. This being bit 14 and 15.
Bit 12 and 13 together form a binary number which makes the time base.
00 = time base is 10ms
01 = time base is 100ms
10 = time base is 1s
11 = time base is 10s
The following 12 bits is expected as a BCD number.

It looks something like:

NNTT XXXX XXXX XXXX

N = not used
T = time base
XXXX = BCD number (0-9 in hex)

The BCD x Time base = S5 time.
This setup limits the timer to 9990s. (BCD 999 and time base of 10s)

As uptown said, this effectively limits the timer to 2h46m.

As some other will no doubt mention: Seeing that you're just starting with Siemens, make it a habit to use IEC timers now.


To understand this, you need to know how the S5 time is built.
S5 time is only 1 word, 2 byte, 16 bits.
Of those 16 bits, the 2 MSB's are not used. This being bit 14 and 15.
Bit 12 and 13 together form a binary number which makes the time base.
00 = time base is 10ms
01 = time base is 100ms
10 = time base is 1s
11 = time base is 10s
The following 12 bits is expected as a BCD number.
It looks something like:
NNTT XXXX XXXX XXXX

Why is NN even there if it is not used, makes no sence to me

N = not used
T = time base
If T is time base should it not be a number?

XXXX = BCD number (0-9 in hex)

The BCD x Time base = S5 time.

Based on this info I would expect the string to look like
S5 23 00 00 01
so u see it makes no sence

again S5 = indicates a timer
T = ?? a number as indicated above ?
# = who knows ?
4 = some number for something ?
S = seconds ?

To me it indicates
S5 = indicates a timer
T = 10 so i second
# = I see no reason for this
4 = 4
S = seconds

so it is a timer with a 4 second preset
 
Last edited:
So the S5T is a fixed prefix required by the software
indicating a type of timer
# is a fixed delimiter always required by the software
Data is a string indicating the time base and time preset multiplied
by the time base
I think I have it now
Thanks all
 

Similar Topics

Hi all Ive now got close to 4 years experience programming PLCs, mainly using Codesys V3 and also Red Lion Crimson software. The company I work...
Replies
7
Views
3,558
I am somewhat confused on the concept of a network Can you only have one coil or output per network ? Do you think of net works as mini routines...
Replies
5
Views
2,090
Dear all, I am new in the field of the Siemens programming buddies ..but i have to take care of programming of STEP 7 300 (specially Ver5.3) for...
Replies
4
Views
13,223
I've gotten to the learning curve where I can program a call for pump to come on at set point but I'm not sure how to turn the same pump off when...
Replies
1
Views
139
I want to pick up an Allen Bradley PLC so I can practice writing programs. I have 10 years as a maintenance tech and a good understanding of...
Replies
8
Views
236
Back
Top Bottom