Step7 bcd

ArXi

Member
Join Date
May 2011
Location
Vilnius
Posts
4
hello guys,
here's my problem... i cant find anywhere how to set counter for giving me BCD code in outputs... maybe someone can tell how to do it or give me some tips or show me the way?
i have wrote programme for counting up things... now i want to connect 7-segment display to see how number is increasing...
 
the advice i have had in the past is simply to add 1 to a register for a counter
as far as BCD is concerned i think i remember a standard library conversion function - dont have the software here sorry
 
am I doint right ? how to assign bits to outputs ?
unled11s.jpg
 
M5.0 Q0.1
-I I-------( )
:
M5.3 Q0.4
-I I-------( )

The MW4 consists of MB4+MB5. M 5.0 is LSB. That means when you start to count, the first bits affected are in MB5.

====
Try this in monitor/modify: (presuming these bytes (or bits) aren't used in the program).
Input MB104 HEX
to MB107 HEX
and MW104 HEX
and MD104 HEX
Now, if you write DW#16#12345678 in MD104 you'll see how the bytes are arranged.

Kalle
 

Similar Topics

Hi all, BCD to Integer instruction in STEP7 reads the contents specified in the input parameter as a three digit number in binary coded decimal...
Replies
2
Views
7,824
New to Siemens, I need help programming a few basic functions to most of you I'm sure: I am very familar with Allen Bradley PLCs but not Siemens...
Replies
0
Views
4,677
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
142
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
142
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
128
Back
Top Bottom