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...")
 
Line 20: Line 20:
 
<br/>
 
<br/>
 
<br/>
 
<br/>
 
 
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]]
 

Revision as of 12:43, 15 August 2016

SYSPARAM (read and write system parameters) 0x00B5 181 AMC 11.03
$SYSPARAM 'block_reset' 1
$SYSPARAM 'block_reset'
Set block_reset parameter to 1 <br\> Read state of block_reset parameter.
SYSPARAM read and set system parameters, the parameters are used both in AMC and from other process on the AMC boards.
1 TEXT16 Name of parameter
2 UINT1 Value of parameter (0/1)
Response $SYSPARAM