i want counter by STL

Join Date
Mar 2017
Location
Libya
Posts
4
Hello friends,
I have encoder connected with motor and i have did a counter in this encoder but i want your help to make a counter with one dp (max counter) and and second dp ( actual counter )
i want count from 1 to 6

Thanks in advance
 
Do you program it on the motor? Or maybe your encoder is also connected to something else?
 
i have two chain
first chain give the bricks to second chain and i connected encoder in movement in second chain because i have roller under second chain well bee rise after encoder take last number to go roller position to rise up and go foreword

if you want i well give wrong program with me but wrong steps counting the movement as 1.3.5.2.4
and can not take the max 6
if i put the max 6 it well be take only 2
 
network counter stop
A "pulse (+) counter 3/Êáäå" //PULSE COUNT STOPS 3/CHAIN 2-C/D
JCN c002
L DBW 322 // CNTR STOP 3/HCAIN 2-C/D
L 1
+I
T DBW 322 // CNTR STOP 3/HCAIN 2-C/D
//--------------------------
c002: L DBW 322 // CNTR STOP 3/HCAIN 2-C/D
L 1
<I
JCN L1
T DBW 322 // CNTR STOP 3/HCAIN 2-C/D
//--------------------------
L1: L DBW 322 // CNTR STOP 3/HCAIN 2-C/D
L DBW 324 //LAST STOP 3/HCAIN 2-C/D
>I
JCN L2
L 1
T DBW 322 // CNTR STOP 3/HCAIN 2-C/D
A "AUTO GROUP1"
S "LastGroup_3'Chain"
L2: NOP 0


second network groups count
A "pulse (+) counter 3/Êáäå" // ÐÁËÌÏÓ ÌÅÔÑÇÓÇÓ ÓÔÁÓÅÙÍ 3/ÊÁÄÅÍÁ 2-Á/Ê
JCN C002
L DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
L 1
+I
T DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
C002: L DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
L 1
<I
JCN C003
T DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
C003: L DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
L DBW 324 //Maximum ïìÜäåò 3ç êáäÝíá
>I
JCN C004
L 1
T DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
A "AUTO GROUP1"
S "3'ÊáäÝíá ÃåìÜôç"

C004: NOP 0
//--------------------------
L DBW 322 // ÌåôñçôÞò ïìÜäùí 3çò êáäÝíáò
L DBW 324 //Maximum ïìÜäåò 3ç êáäÝíá
>=I
= "LastGroup_3'Chain"
//--------------------------
L DBW 322 // // CNTR ÓÔÁÓÅÙÍ 3/ÊÁÄÅÍÁ 2-Á/Ê
L 2
<I
= "ÁíáìïíÞ_3'ÊáäÝíá"
 
i don't understand your question and not familiar with STL, is't possible for you to post any layout or picture or application probably we can give some idea.
 

Similar Topics

Hi, am not an expert on Siemens STL, but I have and object to do on Siemens S7 400 using STL, kindly advice. Objective: - Cumulatively Count...
Replies
8
Views
5,009
Hello, I came across this block to convert a counter into a char. I have tried to use it, but I am getting some errors, I am sure it is probably...
Replies
2
Views
1,525
I am just learning S7 and STL. So please forgive me if this sounds basic. I am using a CPU 416F-2 PLC. I have a counter and it increments once...
Replies
0
Views
2,010
I am just learning S7 and STL. So please forgive me if this sounds basic. I am using a CPU 416F-2 PLC. I have a counter and it increments once...
Replies
0
Views
2,532
I am just learning S7 and STL. So please forgive me if this sounds basic. I am using a CPU 416F-2 PLC. I have a counter and it increments once...
Replies
3
Views
2,680
Back
Top Bottom