Generic parser
The generic parser is a simple parser:
- Getting or settings a properties value of a controller
- Starting controllers
This parser execute actions sequentially.
Print
The print commands print the property value of a controller. The property name could be the real property name or the alias name.
pri(nt)controllername.propertyname<controllername.propertyname....>
Example:
> print a1.position
position = -140.34
> print a1.actual_position
actual_position = -140.34
> print a1.min_position
min_position = -4.34
Set
The set commands set the property value of a controller. The property name could be the real property name or the alias name.
setcontrollername.propertynamevalue<controllername.propertyname value....>
Example:
> set a1.position 10
> set a1.wanted_position 20
> set a1.wanted_position 20 a2.position 30
Start
This command call the start command on specified controllers.
sta(rt)controllername <controllername ...>
Example:
> start a1
A1 --> 20 deg
A1 20.01 deg
> start a1 a2
A1 --> 30 deg
A2 --> 30 deg
A1 30.01 deg
A2 30 deg
Commands list
It possible to put many commands in the same line. The command are separated using ";" character. All commands are executing in a sequential way.
Example:
> set a1.position 10 ; start a1
A1 --> 10 deg
A1 10.01 deg