Skip to content
Snippets Groups Projects
Commit 90f33eb1 authored by ce-template.esss.lu.se's avatar ce-template.esss.lu.se
Browse files

Generated by CE template

parents
No related branches found
No related tags found
No related merge requests found
{
"st.cmd": {
"crate": "25",
"ip_address": "172.16.50.219",
"port": "502",
"system_name": "HBL-010Row",
"sub_name": "CnPw-U-002",
"fbis_system_name": "MBL-090Row",
"fbis_sub_name": "CnPw-U-004",
"mpsospwrsup_module" : "mpsospwrsup",
"mpsospwrsup_version" : "1.0.4+0",
"mps_system": [
{ "filename": "MPSoS_Mag_Vac_ID" , "sys": "Mag", "system": "$(SYSTEM)", "sub": "$(SUB)"},
{ "filename": "MPSoS_Mag_Vac_ID" , "sys": "Vac", "system": "$(SYSTEM)", "sub": "$(SUB)"},
{ "filename": "MPSoS_FBIS" , "sys": "Fbis", "system": "$(FBIS_SYSTEM)", "sub": "$(FBIS_SUB)"}
]
}
}
\ No newline at end of file
{{#st.cmd}}
require asyn
require modbus
require {{mpsospwrsup_module}},{{mpsospwrsup_version}}
require essioc
epicsEnvSet("SYSTEM", "{{system_name}}")
epicsEnvSet("SUB", "{{sub_name}}")
epicsEnvSet("FBIS_SYSTEM", "{{fbis_system_name}}")
epicsEnvSet("FBIS_SUB", "{{fbis_sub_name}}")
epicsEnvSet("CRATE", "{{crate}}")
epicsEnvSet("PLC_NAME", "{{system_name}}:{{sub_name}}")
epicsEnvSet("PLC_IP", "{{ip_address}}")
epicsEnvSet("PLC_PORT", "{{port}}")
iocshLoad("$(modbus_DIR)/modbus_s7plc.iocsh", "PLC_NAME=$(PLC_NAME) ,PLC_IP=$(PLC_IP)")
iocshLoad("$(mpsospwrsup_DIR)/MPSoS_General.iocsh", "P=$(SYSTEM), R=$(SUB)")
{{#mps_system}}
iocshLoad("$(mpsospwrsup_DIR)/{{filename}}.iocsh", "SYS= MPS{{sys}}, P={{system}}, R={{sub}}, READ_ADD=$(MODBUSADD_{{sys}}_READ_B), WRITE_ADD=$(MODBUSADD_{{sys}}_WRITE_B)")
{{/mps_system}}
asynSetOption("$(PLC_NAME)", 0, "disconnectOnReadTimeout", "Y")
iocshLoad("$(essioc_DIR)/common_config.iocsh", "ASG_FILENAME=mps_security.acf")
iocInit
{{/st.cmd}}
# e3-ioc-mpsos_pwrsup-25
This IOC is managed by the templating service. You can find the entry [here](https://ce-template.esss.lu.se/log/350).
{
"ioc_type": "nfs",
"epics_version": "7.0.8",
"require_version": "5.1.0",
"packages": [],
"realtime": false,
"address_list": []
}
st.cmd 0 → 100644
require asyn
require modbus
require mpsospwrsup,1.0.4+0
require essioc
epicsEnvSet("SYSTEM", "HBL-010Row")
epicsEnvSet("SUB", "CnPw-U-002")
epicsEnvSet("FBIS_SYSTEM", "MBL-090Row")
epicsEnvSet("FBIS_SUB", "CnPw-U-004")
epicsEnvSet("CRATE", "25")
epicsEnvSet("PLC_NAME", "HBL-010Row:CnPw-U-002")
epicsEnvSet("PLC_IP", "172.16.50.219")
epicsEnvSet("PLC_PORT", "502")
iocshLoad("$(modbus_DIR)/modbus_s7plc.iocsh", "PLC_NAME=$(PLC_NAME) ,PLC_IP=$(PLC_IP)")
iocshLoad("$(mpsospwrsup_DIR)/MPSoS_General.iocsh", "P=$(SYSTEM), R=$(SUB)")
iocshLoad("$(mpsospwrsup_DIR)/MPSoS_Mag_Vac_ID.iocsh", "SYS= MPSMag, P=$(SYSTEM), R=$(SUB), READ_ADD=$(MODBUSADD_Mag_READ_B), WRITE_ADD=$(MODBUSADD_Mag_WRITE_B)")
iocshLoad("$(mpsospwrsup_DIR)/MPSoS_Mag_Vac_ID.iocsh", "SYS= MPSVac, P=$(SYSTEM), R=$(SUB), READ_ADD=$(MODBUSADD_Vac_READ_B), WRITE_ADD=$(MODBUSADD_Vac_WRITE_B)")
iocshLoad("$(mpsospwrsup_DIR)/MPSoS_FBIS.iocsh", "SYS= MPSFbis, P=$(FBIS_SYSTEM), R=$(FBIS_SUB), READ_ADD=$(MODBUSADD_Fbis_READ_B), WRITE_ADD=$(MODBUSADD_Fbis_WRITE_B)")
asynSetOption("$(PLC_NAME)", 0, "disconnectOnReadTimeout", "Y")
iocshLoad("$(essioc_DIR)/common_config.iocsh", "ASG_FILENAME=mps_security.acf")
iocInit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment