User Tools

Site Tools


mycnc:mycnc_screen_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mycnc:mycnc_screen_configuration [2020/03/10 09:09] ivanmycnc:mycnc_screen_configuration [2020/04/02 15:36] ivan
Line 531: Line 531:
       * "outputs" - the light is "attached" to an output pin       * "outputs" - the light is "attached" to an output pin
       * "number" - defines the pin number than the light is attached to. A number can be assigned directly, for example \\ number="0" for pin #0 \\ number="15" for ipn #15 \\ or through pin definition file used in Hardware PLC - "pins.h". In this case sign "#" and the pin name defined in "pins.h" should be instead of pin number. For example \\ **number="#OUTPUT_SPINDLE"** \\ and "pins.h should contain this name definition, for example <code C>#define OUTPUT_SPINDLE 7</code>       * "number" - defines the pin number than the light is attached to. A number can be assigned directly, for example \\ number="0" for pin #0 \\ number="15" for ipn #15 \\ or through pin definition file used in Hardware PLC - "pins.h". In this case sign "#" and the pin name defined in "pins.h" should be instead of pin number. For example \\ **number="#OUTPUT_SPINDLE"** \\ and "pins.h should contain this name definition, for example <code C>#define OUTPUT_SPINDLE 7</code>
 +
 +Another example of an xbutton realized with a **ref** value for reference to switch (toggle) a variable between two states:
 +
 +<code><gitem where="x-reserv" position="85;5" width="80" height="80" 
 + image="rect/normal" 
 + image-hovered="rect/hovered"
 + action="cnc-gvariable-switch-5701"  
 + xattr="0;0;80;80;led;red;round" name="display-cnc-gvariable-5701" data="---;1;16" ref="16" tooltip="Sheet/tube cutting" images="mode-sheet;mode-tube"
 + type="xbutton"/></code>
 +
 +  * **data** specifies which values the switch is occuring (the cnc-gvariable-switch-5701 action in this case)
 +  * **ref** specifies the reference value to monitor for
 ++++ ++++
  
Line 721: Line 733:
   * **action** specifies that pressing this button will toggle the x-rotate window visibility   * **action** specifies that pressing this button will toggle the x-rotate window visibility
   * **type** is set to "button"   * **type** is set to "button"
-++++ 
  
 Sample code for the rotation2view element: Sample code for the rotation2view element:
Line 735: Line 746:
   * **table-rotation** sets the orientation of the table. //-90// and //90// are the typical values to rotate the orientation   * **table-rotation** sets the orientation of the table. //-90// and //90// are the typical values to rotate the orientation
   * **type** is set to //rotation2view//   * **type** is set to //rotation2view//
 +++++
  
 ==== MyCNC Actions ==== ==== MyCNC Actions ====
mycnc/mycnc_screen_configuration.txt · Last modified: 2023/07/25 11:26 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki