Compact Logix - Launch SFC Routine in Power-Up Handler?

AlmostDone

Member
Join Date
Jul 2018
Location
SoCal
Posts
2
Hello, I'm new here and new to AB programming. I come from the land of DeltaV :)

I have a CompactLogix 1769-L1, and found out how to programatically reset fault code 01, and type 01 after a power failure by reading the AB manual. I did this with a ladder routine and GSV/SSV instructions like they show in the manual. I added another routine to the Power-Up Handler that is an SFC, and have the ladder JSR to the SFC after the power-up fault is reset. My problem is the SFC starts and the first step completes, but it won't transition to the next step (even if I try and force the transition.) Do you know if the routines in the Power-Up Handler only execute for a single scan, or something like that? When do Power-Up Handler routines stop executing? It looks like both the ladder and SFC are active when I go online because they have green borders around them.
 
Welcome to the PLCTalk forum community !

The power-up handler does execute just once. LD and ST routines are the most appropriate for execution in that task.

I'm not sure if you could execute an SFC with a FOR instruction instead of a JSR and get the behavior you expect, or not. In general, SFC transitions are based on changes and time, and a routine that executes just once isn't an ideal place for that.

In general SFC actions are ST anyhow, so I would simply call those ST routines one after another with JSR's from a main ladder (or another ST) routine.

The "green borders" just mean the controller is in RUN mode; they don't indicate that the routine is actually executing.
 
Thanks Ken! I thought that's what was happening (executing once then stopping). I was able to use just LD to get it working. I hadn't thought of using ST, but I'll keep that in mind next time. Also, thanks for explaining what the green border indicates. Much appreciated! (y)
 

Similar Topics

gents, I am trying to configure communication with EMERSON PK300 controller through port A1 using generic ethernet communication module . I could...
Replies
0
Views
93
I've blown the Output Transistor on the Output Card of a Compact Logix 1769-L24ER-QBFC1B It says J378. Does anyone know the replacement part...
Replies
3
Views
197
I am having trouble with getting no control of my analog output signal. I am using the SCL function block to control my analog output. The logic...
Replies
11
Views
240
I was wanting to see if anyone had any information on setting up a cub5 meter and getting the data to a Allen bradley PLC. I think i have the set...
Replies
0
Views
126
I had a comms fault between my VFD and Controller (5069-L320ERS2) that started about a month ago and happened maybe once a day to now where it...
Replies
1
Views
284
Back
Top Bottom