I cant find information about how to initialize the first sequence in a ladder program (in SFC we have the Init). In some Mitsubishi controllers a sequence is initialized with the memory address M8002. What is the corresponding address using Codesys and Codesys control win v3?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm...
Here is an image of a sequential ladder program. There are some steps and some transitions. When the program is started there must be a special memory that is TRUE (denoted ???) so that the sequence can can make the first transition from step0 to step1. After this first transition, the special memory address is FALSE and next time the program is back at step0 it will make the transition depending on what is happpening in the process.
So, I wonder what the address is of this special memory address to be used in the initialization of the sequence. Or is made in a different manner with win v3?
t.lundahl hat geschrieben:
Hi,
Declare variable 'FirstScan : BOOL := TRUE;'
Or better for you maybe to make: -|/|--|/|--|/|-(Step0)
(= Step0 := NOT Step1 AND NOT Step2 AND NOT Step3)
Or use SFC then you will get Init step initilized by default.
/Torbjörn
Great! Tack!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
alexjaw69 hat geschrieben:
Great! Tack!
(The nice thing with Mitsubishi address M8002 is that its only true once, just as Init in SFC. I tried once to implement a simple process using SFC but nothing happened when I started it. Have to look further at some examples to see how it should be done. Do you possibly have a good link on the subject?)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I cant find information about how to initialize the first sequence in a ladder program (in SFC we have the Init). In some Mitsubishi controllers a sequence is initialized with the memory address M8002. What is the corresponding address using Codesys and Codesys control win v3?
A ladder program will run when the POU it is in a task that is running and will generally run with a cyclic interval time.
Other than that, you can create initialization steps that are conditioned from within the program itself by latching bits, etc.
Hmm...
Here is an image of a sequential ladder program. There are some steps and some transitions. When the program is started there must be a special memory that is TRUE (denoted ???) so that the sequence can can make the first transition from step0 to step1. After this first transition, the special memory address is FALSE and next time the program is back at step0 it will make the transition depending on what is happpening in the process.
So, I wonder what the address is of this special memory address to be used in the initialization of the sequence. Or is made in a different manner with win v3?
https://drive.google.com/file/d/0B8t76HfcMd38NUpZR3prMENhbzA/view?usp=sharing
Hi,
Declare variable 'FirstScan : BOOL := TRUE;'
Or better for you maybe to make: -|/|--|/|--|/|-(Step0)
(= Step0 := NOT Step1 AND NOT Step2 AND NOT Step3)
Or use SFC then you will get Init step initilized by default.
/Torbjörn
Great! Tack!