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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | asyndriver : Multiple drvAsynIPPort |
From: | Patel Jignesh <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 22 Oct 2014 15:19:38 +0000 |
Hi, For asyn based Siemens PLC driver development, currently I am using IP Port driver with below configuration and primary development is working good with block data transfer. drvAsynIPPortConfigure("PLC_SAMPLE_CPU_2000", "10.130.1.109:2000", 0, 0, 1) drvS7synConfigure("P0_cfg", "PLC_SAMPLE_CPU_2000", 128, 66, 50, "PLCSample 0") Now to handle the redundant PLC configuration, I have to connect to two PLCs, and I will process/pass the data from any one plc out of two, so I am thinking like, to open two connection using IPPort driver and use them both in my driver
like below, drvAsynIPPortConfigure("PLC_SAMPLE_CPU0_2000", "10.130.1.109:2000", 0, 0, 1) drvAsynIPPortConfigure("PLC_SAMPLE_CPU1_2000", "10.130.1.110:2000", 0, 0, 1) drvS7synConfigure("P0_cfg","PLC_SAMPLE_CPU0_2000", "PLC_SAMPLE_CPU1_2000", 128, 66, 50, "PLCSample 0") In this case I will have problem with registering the port and interfaces for my driver. So will above method will work ? or please suggest the good way to tackle this problem. Thanks and best regards, Jignesh |