Difference between revisions of "EPICS Cheat Sheet"

From Beam Line Controls
Jump to navigation Jump to search
Line 1: Line 1:
== Channel Access (CA) command-lines ==
== Channel Access (CA) command-lines ==


* <code>'''caget'''</code> - get the value of one of more PVs
:<code>'''caget'''</code> - get the value of one of more PVs
* <code>'''caput'''</code> - change the value of a PV
:<code>'''caput'''</code> - change the value of a PV
* <code>'''camonitor'''</code> - monitor the value of one or more PVs
:<code>'''camonitor'''</code> - monitor the value of one or more PVs
* <code>'''cainfo'''</code> - print info about a PV, including which host is running the IOC
:<code>'''cainfo'''</code> - print info about a PV, including which host is running the IOC


Example:
Example:

Revision as of 19:55, 15 March 2023

Channel Access (CA) command-lines

caget - get the value of one of more PVs
caput - change the value of a PV
camonitor - monitor the value of one or more PVs
cainfo - print info about a PV, including which host is running the IOC

Example:

$ caget kmp3:m1.{DESC,RTYP,DTYP,VAL}
kmp3:m1.DESC           theta motor
kmp3:m1.RTYP           motor
kmp3:m1.DTYP           asynMotor
kmp3:m1.VAL            60


IOC shell commands

To connect to (disconnect from) the IOC shell, see here:

help [command] - shows available commands or syntax of specified command
dbpr record_name [0-9] - displays fields and values for a given record
dbl - lists all records in an IOC
dbl record_type - lists all records of a specific type in an IOC
dbl record_type "field_list" - lists specified fields (space-separated list) of records of a specific type in an IOC
dbpf pv_name value - change a PV’s value – analogous to caput
dbgf pv_name - read a PV’s value – analogous to caget
epicsEnvShow - prints environment variables
seqShow - shows running sequence programs
seqStop - stops a running sequence program