EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
<== Date ==> <== Thread ==>

Subject: Re: Further OMS PC78 questions
From: "Peterson, Kevin M. via Tech-talk" <[email protected]>
To: "James P. Withrow" <[email protected]>, Tech Talk EPICS <[email protected]>
Date: Fri, 5 Dec 2025 22:14:30 +0000
Jim,

I don't understand why the terminator is appearing at the start of the reply from the controller.  One thing I recommend doing is temporarily setting the input end of string back to "" and then manually sending a few other commands to the controller in addition to the WYH command.  Each read will result in a timeout, it'll show you all the characters in the controller's reply.  Do all the commands have responses that start with \n\r?

I looked at an old ebrick setup and I found that it didn't use the serial port to communicate with the controller.  The IOC had the following call before the OmsPC68Setup and OmsPC68Config calls:

drvOmsPcx8Init("P0","/dev/oms0")

drvOmsPcx8Init comes from the ebrick module (https://urldefense.us/v3/__https://gcc02.safelinks.protection.outlook.com/?url=https*3A*2F*2Fepics.anl.gov*2Fbcda*2FsynApps*2Febrick*2Febrick.html&data=05*7C02*7Ctech-talk*40aps.anl.gov*7C70db84a4755842d7eeab08de344ba99a*7C0cfca18525f749e38ae7704d5326e285*7C0*7C0*7C639005696732109925*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=zFLJHOLr5KCiwWQtuPcLQPmbTa*2BjSsa0P8Pvk0RTpVM*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!G_uCfscf7eWS!ZdTaxLOl3W7LaqbIyQ5bTyPGFBiObCyU2S32Ta7nCiyKlCfLwdRLHA3arOzv4bBeXco5pMUf43Mc-f0yM8R-Vps$ ), which is no longer supported and hasn't been built at the APS since the synApps_5_4_2, which doesn't exist on the old synApps web page (https://urldefense.us/v3/__https://gcc02.safelinks.protection.outlook.com/?url=https*3A*2F*2Fwww.aps.anl.gov*2FBCDA*2FsynApps*2FWhere-to-find-it&data=05*7C02*7Ctech-talk*40aps.anl.gov*7C70db84a4755842d7eeab08de344ba99a*7C0cfca18525f749e38ae7704d5326e285*7C0*7C0*7C639005696732127456*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=tpq7KIgRvoF7RiUJLD1rDa*2FY0Tssm4q1AcwKUquYUls*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!G_uCfscf7eWS!ZdTaxLOl3W7LaqbIyQ5bTyPGFBiObCyU2S32Ta7nCiyKlCfLwdRLHA3arOzv4bBeXco5pMUf43Mc-f0y2BMkmvg$ ) but dates back to 2009.

I don't know if we ever used the serial port to communicate with OMS PC68 controllers...

Kevin

________________________________________
From: James P. Withrow <[email protected]>
Sent: Friday, December 5, 2025 11:40 AM
To: Peterson, Kevin M.; Tech Talk EPICS
Subject: Re: Further OMS PC78 questions

Kevin - AsynOctetGetInputEos L0 initially reported "". In the IOC's st. cmd file, I added 'asynOctetSetInputEos("L0", 0, "\n\r")'. I still get the same result from the IOC initialization, but now when I caput the
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.

ZjQcmQRYFpfptBannerEnd
Kevin -

AsynOctetGetInputEos L0 initially reported "". In the IOC's st.cmd file, I added 'asynOctetSetInputEos("L0", 0, "\n\r")'. I still get the same result from the IOC initialization, but now when I caput the 'WY' command, the port only reads back the first 8 characters:

2025/12/05 11:33:58.486 /dev/ttyS0 write 2
WY
2025/12/05 11:33:58.497 /dev/ttyS0 read 8
\n\rPC78 v
Invalid entry-card #0

In the PC78 manual, it states that echo off is the default at power-up.

-Jim

Jim Withrow, Research Support Specialist - [email protected]
NE-CAT, Cornell University - https://urldefense.us/v3/__https://gcc02.safelinks.protection.outlook.com/?url=https*3A*2F*2Fnecat.chem.cornell.edu*2F&data=05*7C02*7Ctech-talk*40aps.anl.gov*7C70db84a4755842d7eeab08de344ba99a*7C0cfca18525f749e38ae7704d5326e285*7C0*7C0*7C639005696732143476*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=eLpTnNCFLTcmtp*2FsiIAgBf0wbvzD1EiL6JVOlPnEtNo*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!G_uCfscf7eWS!ZdTaxLOl3W7LaqbIyQ5bTyPGFBiObCyU2S32Ta7nCiyKlCfLwdRLHA3arOzv4bBeXco5pMUf43Mc-f0y0UlBhBY$ <https://urldefense.us/v3/__https://gcc02.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.us*2Fv3*2F__https*3A*2F*2Fnecat.chem.cornell.edu__*3B!!G_uCfscf7eWS!ZYL7M6EP1lVQH8ducuWmZgsqoRSWjcUP8afuti0wPpezotL5sJknAFnsPoXrqpxBWSJSaQVA8SlvSIj_wQW8*24&data=05*7C02*7Ctech-talk*40aps.anl.gov*7C70db84a4755842d7eeab08de344ba99a*7C0cfca18525f749e38ae7704d5326e285*7C0*7C0*7C639005696732158465*7CUnknown*7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ*3D*3D*7C0*7C*7C*7C&sdata=RUrmVmehZfJ2qv8csi9eNzBaqRoP1aVOd*2BIqy*2B6pSeQ*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSU!!G_uCfscf7eWS!ZdTaxLOl3W7LaqbIyQ5bTyPGFBiObCyU2S32Ta7nCiyKlCfLwdRLHA3arOzv4bBeXco5pMUf43Mc-f0ysHg3TBU$ >
Advanced Photon Source, Sector 24
9700 S. Cass Avenue, Building 436 E001
Lemont, IL 60439
________________________________
From: Peterson, Kevin M. <[email protected]>
Sent: Friday, December 5, 2025 9:31 AM
To: James P. Withrow <[email protected]>; Tech Talk EPICS <[email protected]>
Subject: Re: Further OMS PC78 questions

This output is interesting.  The \n\r at the start seems like an unhandled terminator from a previous command:

2025/12/05 07:58:37.732 /dev/ttyS0 write 2
WY
2025/12/05 07:58:37.744 /dev/ttyS0 read 8
\n\rPC78 v

Please run the following command on the IOC's shell:

asynOctetGetInputEos L0

Is the input end of string set to \n\r or \r?  I think either of those should work.

Kevin

References:
Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk

Navigate by Date:
Prev: Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Next: Support for Pfeiffer HiPace with TC400 control unit Heinz Junkes (FHI) via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
Navigate by Thread:
Prev: Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Next: Save the date: EPICS Collaboration Meeting , 20-24 April 2026 LOTRUS Paul via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·