en:lib:mdl:mdl-s-ipvarsis-010

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:lib:mdl:mdl-s-ipvarsis-010 [2015/10/20 10:53] – [System Variables] qem207en:lib:mdl:mdl-s-ipvarsis-010 [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +
 +====System Variables====
 +The development environment provides a series of ready-made variables that can be used by putting the word "QMOVE." before the name. For example "QMOVE.is_suspend", "QMOVE.sys001", etc. 
 +This paragraph is designed to illustrate the 16 system variables called sys001-sys016, whose meaning depends on the firmware that is being used. 
  
 +== sys001 ==
 +This is a read only variable that indicates the status of the FUNC (bit 0) and BOOT (bit 1) buttons. The following settings are possible:\\
 +0 = no button pressed.\\
 +1 = FUNC button pressed.\\
 +2 = BOOT button pressed.\\
 +3 = FUNC and BOOT buttons pressed.
 +
 +== sys002 ==
 +This variabile allows to read a dump of the SW1 dip-switches. The dump is acquired only after the controller is powered. The Bit 0 corresponds to dip 1 and so on.
 +
 +NOTE: Some dips are not connected to the microprocessor and is therefore always read at logic level 0. 
 +
 +== sys003 ==
 +This variable allows the command of led's L1-L2-L3-L4. The bit 0 corresponds to L1, the bit1 to L2 and so on.
 +
 +==sys004==
 +This variable allows toxet the anti-glitch filter on the phase signals in the two-way counters. The setting is expressed in KHz and refers to the signal frequency of one phase. The setting range is 30-220. 
 +The default setting is 220KHz. The variable can also be reread. The filter can be modified at any time. 
 +
 +==sys005-16==
 +Not used.