JUMP and LABEL - Panasonic FP0 PLC

MrNobody

Member
Join Date
Feb 2009
Location
Malaysia
Posts
22
Hi guys, I'm trying to implement state machine in PLC. Need some advice on it
Attached is some code on my State Transition section.

Assuming that the instruction "JP 31" has been called, the code will now jump to "LBL 31" which is the beginning of my state transition code.
"JP 32" to "JP 37" are used to jump to my states (State 32 to 37) when certain conditions are met.
"DT 99" is the data register (Program Counter) where I store my current completed state number. Lets say i'm now at state 33 ("LBL 33" and "DT 99" = 32) and i've done what I needed to do there and am ready to transit to next state, what I'll do is in "LBL 33", i'll increase my Program Counter "DT 99" to 33 and after that jump back to "LBL 31". It will then 'hang' at rung 180 until T1 is HIGH. After that, it will jump/transit to state 34.

This is the concept that I have. However, my PLC will only arrive next week so I am not able to test whether it work or not.
Can somebody advice whether the code will work or not.. Will the instruction at rung 229 be executed since at rung 226, i've commanded it to jump back to "LBL 31".

Pls advice ya.. Thanks.
 

Similar Topics

I have some code like this: Network 1: A M0.0 JC M001 some other stuff... Network 2: M001: A M0.1 do more stuff... When I compile this block...
Replies
1
Views
1,678
I am creating an STL function in a PB. I need to jump a block of code: C db 208 L dw 16 T dw 18 I need to do a jump and with the bit d14.0...
Replies
7
Views
3,979
I've tried JL instead of a lot of JCN instructions. JCN to labels is a dangerous way of stepping. So I tried JL, and it works, but, the only...
Replies
1
Views
4,193
Hi all! I have a client requesting quotation for us to install a jump box for remote updating of 3 Siemens S7-300 PLC's using Simatic Manager...
Replies
10
Views
2,564
Good Evening , I have a Powerflex drive that has been running steady at about 39 Hz for years , but is beginning to swing 39.6 Hz , 40.5...
Replies
7
Views
2,864
Back
Top Bottom