{"id":20687766,"url":"https://github.com/klauer/atr142","last_synced_at":"2026-03-10T11:02:51.040Z","repository":{"id":15599768,"uuid":"18335884","full_name":"klauer/atr142","owner":"klauer","description":"Pixsys ATR142 temperature controller (EPICS device support)","archived":false,"fork":false,"pushed_at":"2015-11-04T19:12:27.000Z","size":1865,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T16:52:18.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-01T16:12:29.000Z","updated_at":"2015-10-28T23:29:39.000Z","dependencies_parsed_at":"2022-09-19T10:11:50.583Z","dependency_job_id":null,"html_url":"https://github.com/klauer/atr142","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klauer%2Fatr142","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klauer%2Fatr142/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klauer%2Fatr142/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klauer%2Fatr142/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klauer","download_url":"https://codeload.github.com/klauer/atr142/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242945840,"owners_count":20210762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T22:58:11.212Z","updated_at":"2026-03-10T11:02:50.890Z","avatar_url":"https://github.com/klauer.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"atr142 EPICS Driver\n===================\n\nModbus-based EPICS support for the Pixsys Electronics ATR142 multi-setpoint controller.\n\nRequirements\n------------\n\nThough it may work on other versions, the driver was tested on these:\n\n1. EPICS base 3.14.12.3 http://www.aps.anl.gov/epics/\n2. asyn 4-21 http://www.aps.anl.gov/epics/modules/soft/asyn/\n3. Modbus 2-4 http://cars9.uchicago.edu/software/epics/modbus.html\n\nOptional\n--------\n\n1. EDM http://ics-web.sns.ornl.gov/edm/log/getLatest.php\n   Screens are provided in $TOP/op/edl for EDM.\n\nInstallation\n------------\n\n1. Install EPICS\n    1. If using a Debian-based system (e.g., Ubuntu), use the packages here http://epics.nsls2.bnl.gov/debian/\n    2. If no packages are available for your distribution, build from source\n2. Edit configure/RELEASE\n    1. Point the directories listed in there to the appropriate places\n    2. If using the Debian packages, everything can be pointed to /usr/lib/epics\n3. Edit iocBoot/iocatr142/st.cmd\n    1. Change the shebang on the top of the script if your architecture is different than linux-x86:\n        ```\n        #!../../bin/linux-x86/atr142\n        ```\n        (check if the environment variable EPICS_HOST_ARCH is set, or perhaps `uname -a`, or ask someone if\n         you don't know)\n    2. Change the communications settings. If using RS-485 over a serial device server, set the IP address and port in the following:\n        ```\n        ## For tcp/ip:\n        epicsEnvSet(\"ATR142_HOST\", \"$(ATR142_HOST=10.0.0.10)\")\n        epicsEnvSet(\"ATR142_PORT\", \"$(ATR142_PORT=4014)\")\n        epicsEnvSet(\"ASYN_PORT\",   \"$(ASYN_PORT=ATR142)\")\n        epicsEnvSet(\"MODBUS_PORT\", \"$(MODBUS_PORT=MOD_$(ASYN_PORT))\")\n        ```\n    3. If instead using serial directly connected to the machine, uncomment and set the port and rate:\n        ```\n        ## for serial:\n        #epicsEnvSet(\"ATR142_SERIALPORT\", \"$(ATR142_SERIALPORT=/dev/ttyS1)\")\n        #epicsEnvSet(\"ATR142_BAUD\", \"$(ATR142_BAUD=19200)\")\n\n        Comment out drvAsynIPPortConfigure\n        and uncomment:\n        ##  for direct connection to the machine's serial port:\n        # drvAsynSerialPortConfigure(\"$(ASYN_PORT)\", \"$(ATR142_SERIAL_PORT)\", 0, 0, 0)\n        # asynSetOption(\"$(ASYN_PORT)\",0,\"baud\",\"$(ATR142_BAUD)\")\n        # asynSetOption(\"$(ASYN_PORT)\",0,\"parity\",\"none\")\n        # asynSetOption(\"$(ASYN_PORT)\",0,\"bits\",\"8\")\n        # asynSetOption(\"$(ASYN_PORT)\",0,\"stop\",\"1\")\n        ```\n\n    4. Set the slave address according to what was set in the front panel:\n        ```\n        # slaveAddress = 1 (device default is 254)\n        epicsEnvSet(\"SLAVE_ADDR\",  \"1\")\n        ```\n\n    5. For each atr142 configured, Set PREFIX, MODBUS_PORT, ASYN_PORT, SLAVE_ADDR and run load_atr142.cmd for each device:\n        ```\n        \u003c load_atr142.cmd\n        ```\n\n4. Go to the top directory and `make`\n5. If all goes well:\n    ```\n    $ cd iocBoot/iocatr142\n    $ chmod +x st.cmd\n    $ ./st.cmd\n    ```\n6. Run EDM:\n    ```\n    $ export EDMDATAFILES=$TOP/op/edl:$EDMDATAFILES\n    $ edm -x -m \"P=E1:ATR142:\" atr142_all\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklauer%2Fatr142","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklauer%2Fatr142","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklauer%2Fatr142/lists"}