forked from EuropeanSpallationSource/m-epics-ethercatmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files aroud EL6688-PTP-twincat-ads
Add more files to run crate 035 with epipcs-twincat-ads. Either standalone or in parallel with ethercatmc. For this situation differen PV names are needed. Create st.mcu035-twincat-ads.iocsh and add the new PVs to the OPI. Changes to be committed: modified: ethercatmcExApp/op/Boy/IOC.opi new file: ethercatmcExApp/op/Boy/tools/IOC-MCU1035-twincat-ads.mid new file: iocsh/ethercatmcEL6688-PTP-twincat-ads.iocsh modified: test/startup/st.mcu035-PTP-B02.iocsh new file: test/startup/st.mcu035-twincat-ads.iocsh
- Loading branch information
Showing
5 changed files
with
151 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<widget typeId="org.csstudio.opibuilder.widgets.ActionButton" version="2.0.0"> | ||
<actions hook="false" hook_all="false"> | ||
<action type="OPEN_DISPLAY"> | ||
<path>motor-0-ptp.opi</path> | ||
<macros> | ||
<include_parent_macros>true</include_parent_macros> | ||
<PREFIX>LabS-MCAG:MC-MCU-1035:</PREFIX> | ||
<P>LabS-MCAG:MC-MCU-1035:</P> | ||
</macros> | ||
<mode>1</mode> | ||
<description></description> | ||
</action> | ||
</actions> | ||
<alarm_pulsing>false</alarm_pulsing> | ||
<backcolor_alarm_sensitive>false</backcolor_alarm_sensitive> | ||
<background_color> | ||
<color red="240" green="240" blue="240" /> | ||
</background_color> | ||
<border_alarm_sensitive>false</border_alarm_sensitive> | ||
<border_color> | ||
<color red="0" green="128" blue="255" /> | ||
</border_color> | ||
<border_style>0</border_style> | ||
<border_width>1</border_width> | ||
<enabled>true</enabled> | ||
<font> | ||
<opifont.name fontName=".SF NS Text" height="11" style="0" pixels="false">Default</opifont.name> | ||
</font> | ||
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive> | ||
<foreground_color> | ||
<color red="0" green="0" blue="0" /> | ||
</foreground_color> | ||
<height>31</height> | ||
<image></image> | ||
<name>Action Button_7</name> | ||
<push_action_index>0</push_action_index> | ||
<pv_name></pv_name> | ||
<pv_value /> | ||
<rules /> | ||
<scale_options> | ||
<width_scalable>true</width_scalable> | ||
<height_scalable>true</height_scalable> | ||
<keep_wh_ratio>false</keep_wh_ratio> | ||
</scale_options> | ||
<scripts /> | ||
<style>0</style> | ||
<text>MC-MCU-1035-twincat-ads</text> | ||
<toggle_button>false</toggle_button> | ||
<tooltip>$(pv_name) | ||
$(pv_value)</tooltip> | ||
<visible>true</visible> | ||
<widget_type>Action Button</widget_type> | ||
<width>180</width> | ||
<wuid>1d681a25:1522fd92503:-61af</wuid> | ||
<x>0</x> | ||
<y>0</y> | ||
</widget> |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dbLoadRecords("ethercatmcEL6688-PTP-twincat-ads.template", "PREFIX=$(PREFIX), MOTOR_PORT=$(MOTOR_PORT), ASYN_PORT=$(ASYN_PORT)") | ||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
epicsEnvSet("MOTOR_PORT", "$(SM_MOTOR_PORT=MCU1)") | ||
epicsEnvSet("IPADDR", "$(SM_IPADDR=172.30.38.73)") | ||
epicsEnvSet("IPPORT", "$(SM_IPPORT=48898)") | ||
epicsEnvSet("AMSNETIDIOC", "$(SM_AMSNETID=172.30.38.12.1.1)") | ||
epicsEnvSet("REMOTEAMSNETID", "5.36.136.2.1.1") | ||
epicsEnvSet("ASYN_PORT", "$(SM_ASYN_PORT=MC_CPU1)") | ||
epicsEnvSet("PREFIX", "$(SM_PREFIX=LabS-MCAG:MC-MCU-1035:)") | ||
epicsEnvSet("P", "$(SM_PREFIX=LabS-MCAG:MC-MCU-1035:)") | ||
epicsEnvSet("PREC", "$(SM_PREC=3)") | ||
epicsEnvSet("SM_NOAXES", "1") | ||
epicsEnvSet("ECM_OPTIONS", "adsPort=852;amsNetIdRemote=$(REMOTEAMSNETID);amsNetIdLocal=$(AMSNETIDIOC)" | ||
|
||
< ethercatmcController.iocsh | ||
|
||
< ethercatmcEL6688-PTP-twincat-ads.iocsh | ||
|
||
|
||
##################################################### | ||
# EL1252, first channel TS_NS | ||
epicsEnvSet("R", "TS_NS") | ||
epicsEnvSet("DESC", "1Hz-TimeStamp ns") | ||
epicsEnvSet("EGU", "ns") | ||
epicsEnvSet("ASYNADDR", "ADSPORT=852/GVL_APP.nTS_NS?") | ||
|
||
< ethercatmcInt64in.iocsh | ||
|