Logix - Structured Text - Need a hand

dalporto

Lifetime Supporting Member
Join Date
Jun 2021
Location
Montreal, QC
Posts
258
Good evening.

I display the step number of a SFC on a display.

Sometimes, on a trip, it goes quickly through many steps and I need to prove to the customer that it really went through the path I said, or I need to figure out what just happened.

I usually do something like that with Schneider (this is Logix):

1712966330732.png
...

1712966346134.png

Steps is a REAL array of [50], Current_Step is a REAL. Last change should show in Steps[49], then move to [48] on the following change.

I seem to be missing something, looks like maybe the change is not detected. Numbers don't show in the array. It's working using NEG and MOV in LD. It's in an AOI.

I know seasoned ST programmers will find it funny, but it's mostly a troubleshooting tool. If you have a "cleaner" way to do it I'm open to suggestion, that was the quickest way with using concatenate in an Excel sheet.

Thanks.
 

Similar Topics

I am trying to learn structured text on the controllogix platform and have managed to fault the processor by creating an infinite loop. My problem...
Replies
21
Views
3,755
Hello, I please need your help why I cannot get the return parameter from the RET instruction to go into the return parameter in the JSR return...
Replies
6
Views
2,826
I am troubleshooting an issue on a controller with logic, function block and structured text. I am lost on how to read the structured text as...
Replies
8
Views
2,653
Hey! I'm looking for a way to reset a tag when the routine that sets the tag is disabled. For example: Routine 1 has the following If Tag1...
Replies
6
Views
1,820
Hi I'm working on a project in structured text in RSLogix 5k. When I verify my program it shows the errors and warnings in the buttom of my...
Replies
12
Views
5,430
Back
Top Bottom