Actions

Difference between revisions of "SYSPARAM"

From Zenitel Wiki

(Created page with "{| border="1" |- !style="background:#ffdead;" width="90pt" colspan="2"|SYSPARAM (read and write system parameters) !style="background:#ffdead;" width="100pt"|0x00B5 !style="ba...")
 
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{AI}}
 
{| border="1"
 
{| border="1"
 
|-
 
|-
Line 4: Line 5:
 
!style="background:#ffdead;" width="100pt"|0x00B5
 
!style="background:#ffdead;" width="100pt"|0x00B5
 
!style="background:#ffdead;" width="30pt"|181
 
!style="background:#ffdead;" width="30pt"|181
!style="background:#ffdead;" |AMC 11.03
+
!style="background:#ffdead;" |AMC 11.5.3.4
 
|-
 
|-
|colspan="3"|'''$SYSPARAM 'block_reset' 1 ''' <br> '''$SYSPARAM 'block_reset'''' || colspan="2"|Set block_reset parameter to 1 <br\> Read state of block_reset parameter.
+
|colspan="3"|'''$SYSPARAM 'block_reset' 1 ''' <br> '''$SYSPARAM 'block_reset' 0''' || colspan="2"|Set block_reset parameter to 1 <br> Reset state of block_reset parameter.
 
|-
 
|-
|colspan="5"|SYSPARAM read and set system parameters, the parameters are used both in AMC and from other process on the AMC boards.
+
|colspan="5"|SYSPARAM read and set system parameters, the parameters can be used from AMCd and from other process on the AMC boards (HAIPD). <br> (EventHandler [[%syspar]]).  
 
|-
 
|-
 
|align=center|1||[[TEXT16]] ||colspan="3"| Name of parameter   
 
|align=center|1||[[TEXT16]] ||colspan="3"| Name of parameter   
  
 
|-
 
|-
|align=center|2||[[UINT1]] ||colspan="3"| Value of parameter (0/1)
+
|align=center|2||[[UINT1]] ||colspan="3"| 1 - block the use of data protocol commands [[RESET DEVICE|$RESET]], [[SMALL RESET|$SMALL_RESET]] and [[CHILLY RESET|$RESET_CHILLY]] <br> 0 - allows the use of above mentioned commands
 
|-
 
|-
 
|colspan="2"|Response||colspan="3"| $SYSPARAM
 
|colspan="2"|Response||colspan="3"| $SYSPARAM
Line 20: Line 21:
 
<br/>
 
<br/>
 
<br/>
 
<br/>
 +
[[AlphaNet_Data_Protocol#AlphaNet|Back to AlphaNet message list]]
  
 
+
[[Category: ACDP messages]]
The '''%syspar''' macro is used in the [[Event Handler]] to read and write the state of a global system parameter (currently only flags true/false 0/1)<br>
 
 
 
 
 
===Syntax Read===
 
'''%syspar(parameter)'''
 
::parameter is the name of the parameter
 
 
 
Return 1/0 dependent of the current state
 
 
 
 
 
===Examples===
 
IF %syspar(block_reset)
 
  LOG "Node is in blocked reset state"
 
ENDIF
 
 
 
 
 
 
 
 
 
Back to [[Event_Handler#List_of_context_parameters]].
 
 
 
[[Category:Event Handler macros]]
 
[[Category:Event Handler]]
 

Latest revision as of 16:03, 11 August 2023

AI.png
SYSPARAM (read and write system parameters) 0x00B5 181 AMC 11.5.3.4
$SYSPARAM 'block_reset' 1
$SYSPARAM 'block_reset' 0
Set block_reset parameter to 1
Reset state of block_reset parameter.
SYSPARAM read and set system parameters, the parameters can be used from AMCd and from other process on the AMC boards (HAIPD).
(EventHandler %syspar).
1 TEXT16 Name of parameter
2 UINT1 1 - block the use of data protocol commands $RESET, $SMALL_RESET and $RESET_CHILLY
0 - allows the use of above mentioned commands
Response $SYSPARAM



Back to AlphaNet message list