Difference between revisions of "Logic Program"

From Wiki
m (Changed software updates link to non-redirected link; added iRC)
Line 1: Line 1:
 
[[File:180318_CPRog_SetLogicProg.jpg|400px|thumb|Menu for selecting the logic program file]]
 
[[File:180318_CPRog_SetLogicProg.jpg|400px|thumb|Menu for selecting the logic program file]]
  
In CPRog the main motion program is a single thread, it is not possible to define e.g. interrupts. To realize parallel running logic functionality a logic file can be loaded. This file is then interpolated in parallel to the main program.
+
In CPRog/iRC the main motion program is a single thread, it is not possible to define e.g. interrupts. To realize parallel running logic functionality a logic file can be loaded. This file is then interpolated in parallel to the main program.
  
 
----
 
----
 
Requirements:
 
Requirements:
* [[CPRog Updates | CPRog Version V902-10-017 from March 2018 or later]]
+
* [[Software Updates|CPRog/iRC Version V902-10-017 from March 2018 or later]]
  
  

Revision as of 14:26, 3 February 2021

Menu for selecting the logic program file

In CPRog/iRC the main motion program is a single thread, it is not possible to define e.g. interrupts. To realize parallel running logic functionality a logic file can be loaded. This file is then interpolated in parallel to the main program.


Requirements:



Possibilities and Limitations

  • The logic program is defined in the same syntax as the main motion program
  • It should consist only of logic coammnds. Motion commands are computed, but not put into action
  • The changes to digital outputs and global signals are put into action
  • The changes override the settings of the motion program
  • The logic program is running in repeat mode whenever the motion program is running.

Set Up

  • Use the Menu entry "Configuration/Set Logic Program/Set Logic Program" to load a program
  • Now you can test the logic program
  • To permanently save the logic file to the project use the menu entry "Save Project"
  • Select the menu entry "Remove Logic Program" to remove the logic program, use "Save Project"



Test

  • The file logic_blinkTest.xml switches the digital output DOut21 on and off



Side Effects

  • As mentioned above the digital output settings of the motion program are overridden.

XXX this page is a stub