J
Just to be sure, the Big-Demo is now called "oven demo" the first partial (but operational) release is in the linuxplc cvs under /demo/oven/
Could someone help me answering the next questions:
Is it possible to fire (wait for) a synchpoint from a c function? I mean the equivalent of writing plctest -w synchpoint. I want to be able to control the program flow directly from c modules. I know there are predefined synchpoints in each module scan_beg from plc_scan_begin() function and scan_end from plc_scan_end() function. What I want is custom made synchpoints that I can use to have for example conditional execution of certain modules. Looking at the synch.h header, I found that the answer could be (Is this correct?):
plc_synch(plc_synchpt_by_name("my_synchpoint"));
// my_synchpoint has to be defined in the linuxplc.config file.
What timing functions are there available in the project?
I am studying the linuxplc petrinet to use them in the demo. From the demo-synch linuxplc.conf.complex I was able to draw flow diagram, the only thing that is not clear to me is why do you have a weight of 2 in the arc
from T_chaser_beg to P_chaser_running? What is the effect on this, changing it to 1 seems not to affect the program. From my diagram it looks like
tokens are going to be acumulating in the P_chaser_running place because it receives 2 tokens but it only gives away one when firing to T_chaser_end transition?
Regards,
Juan Carlos Orozco
ACElab Industrial Automation
[email protected]
www.ace-lab.com
_____________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc
Could someone help me answering the next questions:
Is it possible to fire (wait for) a synchpoint from a c function? I mean the equivalent of writing plctest -w synchpoint. I want to be able to control the program flow directly from c modules. I know there are predefined synchpoints in each module scan_beg from plc_scan_begin() function and scan_end from plc_scan_end() function. What I want is custom made synchpoints that I can use to have for example conditional execution of certain modules. Looking at the synch.h header, I found that the answer could be (Is this correct?):
plc_synch(plc_synchpt_by_name("my_synchpoint"));
// my_synchpoint has to be defined in the linuxplc.config file.
What timing functions are there available in the project?
I am studying the linuxplc petrinet to use them in the demo. From the demo-synch linuxplc.conf.complex I was able to draw flow diagram, the only thing that is not clear to me is why do you have a weight of 2 in the arc
from T_chaser_beg to P_chaser_running? What is the effect on this, changing it to 1 seems not to affect the program. From my diagram it looks like
tokens are going to be acumulating in the P_chaser_running place because it receives 2 tokens but it only gives away one when firing to T_chaser_end transition?
Regards,
Juan Carlos Orozco
ACElab Industrial Automation
[email protected]
www.ace-lab.com
_____________________________________________
LinuxPLC mailing list
[email protected]
http://linuxplc.org/mailman/listinfo/linuxplc