simplelogix
Member
Hello Enlightened Engineers,
I am using PL7 PRO V4.5 (made by Schneider Electric) on a Premium PLC.
I have to debug existing code in Grafcet and the mission is quite unpalatable. The code has no comments and the states of the state machine(s) do not have any labels attached to them. Also the step numbers are all over the place eg. step 5 follows step 18 which then jumps to step 33 etc.
My immediate task is to get the state number of the state machine. i.e. I am looking for the equivalent of
current_state := X1.state
where "X1.state" is the current active state (X1 being the state machine).
I looked through all the grafcet help files and couldn't find a way to get this. Please dont tell me to write 100 rungs of code in ladder for 100 states!
Thanks for your help.
I am using PL7 PRO V4.5 (made by Schneider Electric) on a Premium PLC.
I have to debug existing code in Grafcet and the mission is quite unpalatable. The code has no comments and the states of the state machine(s) do not have any labels attached to them. Also the step numbers are all over the place eg. step 5 follows step 18 which then jumps to step 33 etc.
My immediate task is to get the state number of the state machine. i.e. I am looking for the equivalent of
current_state := X1.state
where "X1.state" is the current active state (X1 being the state machine).
I looked through all the grafcet help files and couldn't find a way to get this. Please dont tell me to write 100 rungs of code in ladder for 100 states!
Thanks for your help.