Old & bad C7-626DP Universal counter usage?

TurpoUrpo

Lifetime Supporting Member
Join Date
May 2008
Location
Switzerland
Posts
1,571
Hello

We are upgrading our old little system that has 626DP cpu. Program has universal inputs used as counters (first two). But initialization and usage is somewhat in conflict with manual (page 89 onwards).

This is the code executed at restart/start of cpu in one FB.

Code:
Counter enable and Benchmark set at 3000
 
O "Man_Neustart"
O "Aut_Neustart"
JCN INE         // initialize?
 
L 0             // reset the counters C1, C2, C3
[COLOR=#000]T PQB 287[/COLOR]
 
CALL "WAIT"     // Wait (10ms), so STOP is effective
WT: = 10000
 
L 10000         // comparison value is needed in the program!!
T pqw 280       // compare value C1
L 30000         // comparison value is needed in the program!!
T pqw 282       // compare value C2
 
LW # 16 # F     // Counter 1 +2 enabled set, new
T PQB 287
 
L 0             // initialize variables
T # Index
T # Stat_Trommeldrehzahl
T # Stat_Frequenz
 
SET
R # Erste_Runde_vorbei
 
INE: NOP 0
************************************************** ************************************************** ****
 
//Read pulses per second
 
A "Imp_1_Hz"
JCN ENDA
 
TAR2                // offset of the instance DBs
AD DW # 16 # FFFFFF // mask
LP # # Imp_Ticks    // offset of the variable
+ D
LAR1                // AR1 store
Mark T # LAR1_Basis // start address
L # index
LL # 64             // current pointer
* D                 // in the above STRUCT -> 64 bits offset
+ AR1
//*******************************
 
CALL "TIME_TCK"     // call the SFC 64
RET_VAL: = # Akt_Zeitwert_Tick
 
L # Akt_Zeitwert_Tick
T D [AR1, P # 4.0]  // save tick
 
L PIW 280
T W [AR1, P # 0.0]  // counter drum pulses
T # Temp_Imp_Trommel
 
L PIW 282
T W [AR1, P # 2.0]  // count motor pulses
T # Temp_Imp_Motor

The start part is what is strange looking, manual show's different method for starting the counters. Machine is in constant production duty so have little possibility to just fo and test:( Any ideas on this? I have not even spitted on its way before ;)
 

Similar Topics

I have been looking at a couple of power tools that have a 220v 3 phase motor. I was wanting to avoid having to install a rotary converter. But I...
Replies
7
Views
2,216
This is admittedly a pretty obscure problem, but maybe someone else has run into it, or at least something similar. For reasons I won't get into...
Replies
3
Views
133
Does Rockwell still offer reset codes for old school Master Disk floppy's? In a bind and need to reset the activation disk soon and to be pointed...
Replies
9
Views
230
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
91
Hey all, I am currently working on a depalletizer for a customer and we are doing a hoist upgrade. This is a SLC500 processor and the drives are...
Replies
6
Views
297
Back
Top Bottom