Positive edge in SCL all byte

Lukasz_Poland

Member
Join Date
Aug 2019
Location
Poland
Posts
28
Hello


I have got a problem with positive edge from "system clock memory byte" in Tia Portal. I would like to change byte"system clock memory" to another byte but it should be "positive edge byte"
I saw that function with XOW and AW but it was in STL language and I dont know how to write it in SCL.



Sorry for my poor English.
 
Could you post the STL version, I can convert to SCL for you.

I think I understand what you need, but an example would clarify it.
 
Code in STL:
L MB 0
L MB 100
XOW
AW
T MB 1
L MB 0
T MB 100
In MB 100 I have all positive edges from system clock.
That code I was trying convert to SCL.
 
Yes, exactly.
I want achieve positive edges in byte MB100. I dont know how convert my attached STL code to SCL. I tried bud it didnt work.
 
Yes, exactly.
I want achieve positive edges in byte MB100. I dont know how convert my attached STL code to SCL. I tried bud it didnt work.


Show your code (screen shot via [Prnt/Sys Req], past into [Paint], save as PNG, attach via
attach.gif
button in [Go Advanced] posting tool in this thread; also show your [System Clock and Memory] window that @Rob... mentioned.
 
Dear Colleagues


Everything works fine.Sorry for the confusion and thank you again for your quick reply and written code.I have a lot of work and study ahead of me.


Thank you again.
 
Actually, that code does not work: see the red-circles in the image below.

That said, it is close to working and the fix is trivial.
Untitled.png
 

Similar Topics

Dear all, What is the name of the function used for positive edge detection in Step7 SCL ?? Thank you
Replies
8
Views
13,030
Does edge detection instruction exist in SCL or I have to write it myself? Can it be done like this? if x and not x_old then //code end_if...
Replies
17
Views
28,334
Can anyone see why i am not getting an output on this? it is detecting a rising edge and saying that it is true but going any further to the...
Replies
5
Views
2,395
I am using Portal for the first time and I am simply trying to do a one shot. My code wasn't working so I made a new network with all new tags so...
Replies
7
Views
2,491
Hello, I wish everyone the best for the new year. I am working with FATEK and winproladder. I want to build a project that has 8 DI and 1 DO. At...
Replies
2
Views
2,816
Back
Top Bottom