# Question / problem with TIMER\_1

**URL:** <https://oscat.discourse.group/t/question-problem-with-timer-1/1098>\
**Category:** oscat.lib fuer TwinCAT/CoDeSys\
**Created:** [18. Mai 2011 um 08:43 UTC](https://oscat.discourse.group/t/question-problem-with-timer-1/1098 "2011-05-18T08:43:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [18. Mai 2011 um 08:43 UTC](https://oscat.discourse.group/t/question-problem-with-timer-1/1098/1 "2011-05-18T08:43:40Z")

</div>

Hello !

Sorry for writing in English but i hope someone can help me with a problem with TIMER\_1.

At the input “Day” there should be “BYTE”. What should i enter for the following days ?

Monday =  
Tuesday =  
Wednesday =  
Thursday =  
Friday =  
Saturday =  
Sunday =

Thanks alot in advance for any help !

Regards.  
Christoffer / Sweden

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [18. Mai 2011 um 10:07 UTC](https://oscat.discourse.group/t/question-problem-with-timer-1/1098/2 "2011-05-18T10:07:40Z")

</div>

Hi!

1 Byte has 8 Bits.

Bit 0 = Sunday  
Bit 1 = Monday  
Bit 2 = Tuesday  
Bit 3 = Wednesday  
Bit 4 = Thursday  
Bit 5 = Friday  
Bit 6 = Saturday  
Bit 7 = not used

To set the Timer at Sunday, Wednesday, Friday, Saturday you have to set the Byte to 0110 1001

Regards.  
Stefan Hantschel

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [18. Mai 2011 um 10:48 UTC](https://oscat.discourse.group/t/question-problem-with-timer-1/1098/3 "2011-05-18T10:48:04Z")

</div>

Thanks alot for your reply !

In language CFC i had at the input write it like the following 2#0111\_1111

But i really dont know what the 2# really does ? Could you explain ?

Regards,  
Christoffer

> [@Fussel0804 post:2](#):
>
> Hi!
> 
> 1 Byte has 8 Bits.
> 
> Bit 0 = Sunday  
> Bit 1 = Monday  
> Bit 2 = Tuesday  
> Bit 3 = Wednesday  
> Bit 4 = Thursday  
> Bit 5 = Friday  
> Bit 6 = Saturday  
> Bit 7 = not used
> 
> To set the Timer at Sunday, Wednesday, Friday, Saturday you have to set the Byte to 0110 1001
> 
> Regards.  
> Stefan Hantschel

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [18. Mai 2011 um 10:57 UTC](https://oscat.discourse.group/t/question-problem-with-timer-1/1098/4 "2011-05-18T10:57:08Z")

</div>

2# Binary Format (0 or 1)  
16# Hex format (00 … FF)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [18. Mai 2011 um 11:30 UTC](https://oscat.discourse.group/t/question-problem-with-timer-1/1098/5 "2011-05-18T11:30:04Z")

</div>

And that also explains the \_ in the numbers ?

> [@Fussel0804 post:4](#):
>
> 2# Binary Format (0 or 1)  
> 16# Hex format (00 … FF)
