STEP 7 set downcounter

italo2008

Member
Join Date
Feb 2009
Location
Padova
Posts
95
I need to set a Z_RUECK counter using data from HMI: in particular, the ZW input must be set by user (this data is saved in DB7). What is the data type that I must define for this data in DB7? if i set ZW input directly in ladder logic (for example with C#10) it works correctly, but if I use, for example, DB7.DBW34 it doesn't work...

were is the mistake???

thanks
 
C# is a BCD-code of 3 numbers :

[FONT=&quot]XXXX 1001 0001 0010[/FONT] = 9 1 2

Countervalue is in between 0 and 999


What you can do is:

DBW34: integer, with limits '0' and '999'.

Inside the plc-program: conversion of DBW34: Integer_to_BCD
 
Or you could make sure DB7.DBW34 is configured as WORD and on the HMI the input field connected to DB7.DBW34 should be configured as HEX.

Select the counter and press F1, configure the DBW's according to what it shows there.....
 

Similar Topics

Hi, I am programming a blow moulding machine with 2 stations. So far I have the sequence done with function STEP ( and SNXT). How can I jump...
Replies
1
Views
1,583
How could I set initial values in Step7 SIMATIC Manager which would run before OB1? I heard that could be done with OB100, so I inserted there...
Replies
5
Views
2,680
Hello I am building a machine and i would like to get some suggestions about the right plc to choose for my application. My application: I need...
Replies
13
Views
6,638
Hi experts, I'm wondering whether I can set the scan cycle time in step 7, for example, how to set it to 50ms if I want the program (OB1) is...
Replies
9
Views
6,675
Hello I usually represent all my time delay in 0.001sec inside the hmi but know i need to enter values ranging to 2o minutes meaning 1200...
Replies
4
Views
3,605
Back
Top Bottom