EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 12:18 PM . Last Modified: 2023-05-02 11:48 PM
WE are trying to create a ddk driver for Sierra Wireless LTE Modem (rv55). I modified the code based on 'Twilio Notify' driver code.
Here are the questions:
1. How should we define the OPCProperty number? There is a code as below in Twilio notify, can we re-use them?
// Channel
// RendRecs
public const UInt32 SendRecClearChannelAlarm = OPCProperty.Base + 10;
public const UInt32 SendRecRaiseChannelAlarm = OPCProperty.Base + 11;
public const UInt32 SendRecLogChannelEventText = OPCProperty.Base + 12;
// Actions
// Scanner / FD
// RendRecs
public const UInt32 SendRecClearScannerAlarm = OPCProperty.Base + 12;
public const UInt32 SendRecRaiseScannerAlarm = OPCProperty.Base + 14;
public const UInt32 SendRecLogEventText = OPCProperty.Base + 15;
public const UInt32 SendRecAckAlarm = OPCProperty.Base + 16;
// Actions
public const UInt32 DriverActionNotifyMessage = OPCProperty.Base + 88;
public const UInt32 DriverActionTestAlarmAck = OPCProperty.Base + 89;
2. we have the following errors as below:
24-FEB-2023 21:28:22.572 44F8 [ERR] 6702 Example Projects.Twilio Test.New Notify Redirector: Exception in OnScan: "Only one usage of each socket address (protocol/network address/port) is normally permitted", returns 10048 (0x2740) Only one usage of each socket address (protocol/network address/port) is normally permitted.
I suspect it is because we create two UDPclient, one for sending and one for receiving. If we don't need receiving SMS reply, how should we implement the driver OnScan() method? can we just leave it empty?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-28 02:53 AM
From the DDK Guide: (https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Driver-Development-Kit-DDK/ba-p/279081)
"An OPC Property is a 32-bit number that is used to uniquely identify a property that can be read and/or written to. Each property must have a unique number, unless that property represents the same information as a property in another class. The database can use this information to handle conversions between classes.
You must assign a unique OPC Property to each configuration or data field defined by your class. Your driver should use a range of OPC Properties, which must not clash with those used in other drivers. For testing, you may use properties in the range 0x0450000 to 0x045FFFF, however as other drivers developed with the DDK may also use properties from this range, there is a risk of a clash.
Before deploying a driver on customer systems, you need to request a range from Schneider Electric, to be permanently allocated to your driver. No other driver will be allocated from the same range."
The Notify driver has already been allocated a range, so if you are just modifying this code then you don't need to request a new range. If you do need one, please contact the Geo SCADA Support team and request one. You just need to give your email address, name and the (new) name of your driver.
The OnScan method does not have to contain any functionality and can be left empty.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-28 02:53 AM
From the DDK Guide: (https://community.se.com/t5/Geo-SCADA-Knowledge-Base/Driver-Development-Kit-DDK/ba-p/279081)
"An OPC Property is a 32-bit number that is used to uniquely identify a property that can be read and/or written to. Each property must have a unique number, unless that property represents the same information as a property in another class. The database can use this information to handle conversions between classes.
You must assign a unique OPC Property to each configuration or data field defined by your class. Your driver should use a range of OPC Properties, which must not clash with those used in other drivers. For testing, you may use properties in the range 0x0450000 to 0x045FFFF, however as other drivers developed with the DDK may also use properties from this range, there is a risk of a clash.
Before deploying a driver on customer systems, you need to request a range from Schneider Electric, to be permanently allocated to your driver. No other driver will be allocated from the same range."
The Notify driver has already been allocated a range, so if you are just modifying this code then you don't need to request a new range. If you do need one, please contact the Geo SCADA Support team and request one. You just need to give your email address, name and the (new) name of your driver.
The OnScan method does not have to contain any functionality and can be left empty.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.