...
- For new users, please reference the following page: LinuxRT Quick Start-up For New Users
- Highly recommend viewing this diagram: LinuxRT_Diagram
Verification checks on linuxRT machines:
- Please see $IOC/cpu-<bld>-<name>/README on instructions on how to power cycle machines remotely through the use of ipmi commands
- Once you set-up your linuxRT machine and boot up, log in as laci to your linuxRT system. ( ssh laci@cpu-<bld>-<name>)
- Test if your machine is running real-time linux using uname -a
...
# =================================================================== # Now we start the ethercat scanner process under the linux screen program: # This will allow us to attach/detach to our Ethercat scanner process # ============================================== cd $EPICS_IOCS/cpu-b084-hp03 su laci -c $EPICS_IOCS/vioc-b084-tmp1/scannerStartup.sh # =================================================
|
---|
Verification checks on linuxRT machines:
- Test if your machine has the Etherlab EtherCAT driver module loaded.
...
# ================================================================================================== # Load Additional databases: # ================================================================================================== # Load the database templates for the EtherCAT components # dbLoadRecords("db/<template_name_for slave_module>, <pass_in_macros>) dbLoadRecords("db/EK1101.template", "DEVICE=TEMP:BCM_EK1101,PORT=COUPLER0,SCAN=1 second") dbLoadRecords("db/EL3202-0010.template", "DEVICE=TEMP:BCM_EL3202,PORT=ANALOGINPUT,SCAN=1 second") |
---|
Verification checks on development machine (preferably lcls-dev3):
Check that your python version is correct (the scripts used to generate the chain.xml are python-based):
- Python version: Python 2.7.9
- export the correct version to the path
$ python --version Python 2.7.4 $ export PATH=/afs/slac/g/lcls/package/python/python2.7.9/linux-x86_64/bin/:$PATH $ python --version Python 2.7.9 |
---|
Debugging Tips
- Check that the ethercat kernel module is installed: ls /dev/EtherCAT0
Manually start scanner process on EtherCAT Master (linuxRT machine)
On a linuxRT machine: <path_to_scanner_binary> -f <rate_in_hz> <path_to_scanner_xml> <path_to_unix_socket_created_by_scanner> <max_message_size> Example (from directory containing scanner binary): ./scanner -f 100 ../../etc/scanner.xml /tmp/sock1 100 |
---|