SCADA Basic instructions - Arguments for comm objects

5 Posts
4 Users
0 Likes
37 Views
b.lepeuple
(@b-lepeuplearcinfo-com)
Posts: 149
Estimable Member
Topic starter
 

Hi,
Jacques and I need your insight on what is the easiest when you need to manipulate comm object names in SCADA Basic.
We are talking about instructions such as CIMWAY OPC LONWORKS (the 3 older ones), M104, M61850, BACNET... (the more recent ones)

Most modes of these instructions require to pass the name of a communication object as argument.
The comm object can be a network name, an OPC server alias or an OPC server group name, a device name...

For the older instructions, there is usually a single argument used to pass the full object name. The example of OPC is that you pass either the ServerAlias or the ServerAlias and the Group name in one argument. For CimWay, you pass the Net name or Net.Node or Net.Node.Frame in one argument.
For the more recent instructions, there are usually separate arguments for the different parts of the full object name. For example with BACnet, you will pass the net name, device name and notification class object name in 3 separated arguments.

Now the question:
What is the easiest to deal with in SCADA Basic and why:

  • A single argument that is the full name, with a separator if need be ?
  • Separated arguments for the different parts of the object full name ?

Thank you for your insight.

 
Posted : 23/04/2020 2:48 pm
f.cubattoli
(@f-cubattoliarcinfo-com)
Posts: 167
Reputable Member
 

Ciao Benoit!

I vote for "Separated arguments for the different parts of the object full name".
Reason 1: it's rare to have them ready in the exact format that the instruction expect in one string.
Reason 2: some operations can be performed ciclically in several sub-node of the same comm. object and this avoid the needs to repeat an ADDSTRING( at each cycle.

🙂

 
Posted : 23/04/2020 8:02 pm
e.mahaut
(@e-mahautarcinfo-com)
Posts: 270
Member Moderator
 

Hi,

I also vote for separated arguments for the different parts of the object full name.
At the same time, no need to decide, in case of a single argument, if the separator should be '.' or '/' (OPC and LNS verbs)

 
Posted : 23/04/2020 10:43 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

I vote: Separated arguments

Nico

 
Posted : 27/04/2020 8:52 am
b.lepeuple
(@b-lepeuplearcinfo-com)
Posts: 149
Estimable Member
Topic starter
 

Thank you for your feedback.
Looks like separated arguments is the way to go.

Regards

 
Posted : 30/04/2020 2:26 pm