Can anybody tell me why this isn't working?

Join Date
Apr 2002
Location
No income tax, no capital gains tax. Freedom!
Posts
8,391
I have a Mitsubishi Q03UDECPU. I am trying to learn how function blocks work on this PLC. I have written a FB that simply sets a bit when ever the input changes. This bit should then increment a counter. The first instance of the FB works but the second doesn't.

I am manually changing GblNewInt. I should see ChangeCount change, it does, and ChangeCount2 change, it doesn't, each time I change GlbNewInt.
I can see that ChangedBit2 is on at rung 39 but ChangeCount should have incremented once.

In the second instances of the FB I can see the Changed bit set but the MOV doesn't seem to be active.

main.jpg Capture.jpg
 
Last edited:

Similar Topics

I am trying to connect with a Schneider plc which has a firmware version only available in Somachine v4.2. In Machine expert After taking upload...
Replies
0
Views
127
Hi All, At work we primarily use Rockwell products and they are pretty good to work with and rock solid for industrial environments. A little...
Replies
3
Views
1,079
11 months ago I ordered a 10" Redlion HMI. I was given an April delivery date. April came and went. I waited, and in June I asked our vendor...
Replies
7
Views
2,382
Back
Top Bottom