This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'documentation' into develop
- Loading branch information
Showing
3 changed files
with
177 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,81 @@ | ||
|
||
Fandango shell examples | ||
======================= | ||
Using Fandango from the Linux Shell | ||
=================================== | ||
|
||
Most fandango methods can be launched from Unix shell:: | ||
The tango_servers script allows to start/stop/check devices:: | ||
|
||
# fandango.sh get_tango_host | ||
> tango_servers stop "PyPLC/plctest*" | ||
> tango_servers start "PyPLC/plctest*" | ||
> tango_servers status "*/*otr*" | ||
Loading */*otr* devices | ||
|
||
ds_imggrabber/bo01_fsotr01: ON | ||
bo01/di/fsotr-01-ccd: OPEN | ||
bo01/di/fsotr-01-iba: RUNNING | ||
dserver/ds_imggrabber/bo01_fsotr01: ON | ||
|
||
ds_imggrabber/bo02_fsotr01: ON | ||
bo02/di/fsotr-01-ccd: OPEN | ||
bo02/di/fsotr-01-iba: RUNNING | ||
dserver/ds_imggrabber/bo02_fsotr01: ON | ||
|
||
ds_imggrabber/bo03_fsotr01: ON | ||
bo03/di/fsotr-01-ccd: OPEN | ||
bo03/di/fsotr-01-iba: RUNNING | ||
dserver/ds_imggrabber/bo03_fsotr01: ON | ||
You can also start devices on an specific host:: | ||
|
||
> tango_servers stop PyPLC/plctest12 | ||
> tango_servers ctlabserver start PyPLC/plctest12 | ||
|
||
Most fandango methods can be launched from Unix shell (the launcher was called fandango.sh in previous versions):: | ||
|
||
> fandango --help # will return the list of commands available | ||
> fandango --help [command] # will return the command help | ||
|
||
> fandango get_tango_host | ||
localhost:10000 | ||
# fandango.sh findModule fandango | ||
> fandango findModule fandango | ||
/usr/lib/python2.7/site-packages/fandango | ||
# fandango.sh get_matching_attributes "mach/ct/composer/*" | ||
> fandango get_matching_attributes "mach/ct/composer/*" | ||
mach/ct/composer/averagepressure | ||
mach/ct/composer/averagecurrent | ||
# fandango.sh read_attribute mach/ct/composer/averagecurrent | ||
> fandango read_attribute mach/ct/composer/averagecurrent | ||
119.1 | ||
> fandango get_matching_device_properties sr04/vc/eps-plc-01 "*" | ||
|
||
DynamicQualities,(*)_VAL=ATTR_ALARM if ATTR('$_ALRM') else ATTR_VALID | ||
(*)_CONFIG_Status=ATTR_ALARM if ATTR('$_CONFIG_ALRM') else ATTR_VALID | ||
DynamicStates, | ||
KeepAttributes,CPUStatus | ||
TestMode | ||
* | ||
KeepTime,1500 | ||
Mapping,DigitalsREAD=0,+240 | ||
AnalogIntsREAD=835,+280 | ||
AnalogRealsREAD=2135,+350 | ||
AnalogIntsWRITE=1155,+280 | ||
AnalogRealsWRITE=2455,+350 | ||
AnalogIntsDeltaREAD=5000,+252 | ||
AnalogIntsDeltaWRITE=6000,+42 | ||
MappingUnused,DigitalsWRITE=390,+240 | ||
ModbusCacheConfig,0 | ||
ModbusTimeWait,200 | ||
Modbus_name,SR04/VC/EPS-PLC-01-MBUS | ||
|