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,836
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,681
is there any free trial version available for step7 professional and wincc comfort v17. i searched and downloaded TRIAL Download STEP 7...
Replies
1
Views
61
Hello. I need your help. I work at STEP7. There are two CPU 317-2 PN/DP controllers (317-2EK14-0AB0), working on PROFIBUS, as Master (CPU_1) and...
Replies
6
Views
171
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
179
Back
Top Bottom