Here a fun one for todays consideration

theColonel26

Lifetime Supporting Member
Join Date
Feb 2014
Location
West Michigan
Posts
785
I found this code today in a running machine. This routine executes but the bit to call it is only written to inside this same routine... so how does this thing get executed?

What am I missing here?


See screen shots

2021-08-25_11-18-17.png 2021-08-25 11-14-01 CL-CTRLS-VM-ROC.png
 
Last edited:
Is File #4 also being executed by the system (i.e., check MCP tab of Processor Status), or another JSR?
 
Best guess:

The HMI sets the bit. The routine executes and perhaps holds the bit true while it does what it does, which keeps the JSR live. When it's done, the OTE is de-energized, and the routine isn't called anymore.
 
Another possibility is that perhaps there is more than one JSR calling the routine. You can search for U:4 to see if there are any more.

As Mispeld mentions, you can configure the PLC-5 to have more than one Main Control Program (MCP). LAD2 is an MCP by default, but I think you can manually configure up to 16 MCPs in the Processor Status. If I recall, the tab is called MCP. But I don't have it open to be certain.

OG
 

Similar Topics

I received an email from a student with the following code attached. This is supposed to control a floodgate system, and supposed to be written...
Replies
23
Views
781
I just converted an existing application from RSView32 to FactoryTalkView SE. In RSView32, the Datalog was made in a *.DBF file. There was...
Replies
2
Views
71
I am latching and unlatching "result_Data_latch" bit within same rung. Will This copy/move instruction execute correctly??
Replies
4
Views
193
Hi , Where i can find Mitsubishi PLC Card end of line & replacement model details. i am looking for Q02CPU replacement model. Please advice. thanks
Replies
2
Views
126
I have been requested to test this proportioning valve for PLC control of flow/pressure. Dwyer Series SVP Proportioning Solenoid Valve The flow...
Replies
10
Views
421
Back
Top Bottom