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
Jignesh PATEL
Control Systems Integration Technician
CODAC Section
ITER Organization, Building 72/286, CHD, Control System Division
Route de Vinon-sur-Verdon - CS 90 046 - 13067 St Paul Lez Durance Cedex – France
Phone: +33 4 42 17 84 72
Get the latest ITER news on
http://www.iter.org/whatsnew