Applies To:
  • CitectSCADA 5.xx
  • CitectHMI 5.xx

Summary:
The sample moscad.cfg file detailed in the Moscad driver specification shows that whitespace characters can be used to improve readability when filling out the entries for the Moscad.cfg configuration file. However, putting trailing whitespace characters in the "wrong" fields will result in driver error "0x1082 Application Error" being generated during Citect "Channel initialisation" stage. Leading whitespace characters are removed correctly by the driver code when it parses the configuration file.

This affects all versions of the Moscad driver upto and including V30200002.

For example:

1. you have the following entry.

#<label> : <id> : < para 1> ; < para 2> ; < para 3> ; < para 3> : <Text Command>
#-----------------------------------------------------------------------------------------------------------------------------------------
RTU001 : 1 : Polled ; Period 8 ; noncritical ; Tables Table1 : c:\temp\RTU1.dat

If you have used trailing whitespace characters such as "Polled " then the driver will fail during the channel initialisation stage.

2. Another example

#<label> : <id> : < para 1> ; < para 1> ; < para 1> : <Text Command>
#-----------------------------------------------------------------------------------
Table1 : 1 : Polled ; Rows 6 ; Columns 1 : analog

Again, if you have trailing whitespace characters in your definition such as "Table1 :" or "Rows 6 " then the driver will not go online and will fail during the channel initialisation stage.

 

Solution:
The solution is to make sure that there are no trailing whitespace characters after each field definition. Leading whitespace characters are parsed correctly and removed by the Moscad driver.

Thus:

#Working Moscad Configuration File - Note there are no spaces after each field definition
#<label> : <id> : < para 1> ; < para 1> ; < para 1> : <Text Command>
#-------------------------------------------------------------------------------------
Table1: 1 : Polled; Rows 6; Columns 1 : analog
#<label> : <id> : < para 1> ; < para 2> ; < para 3> ; < para 3> : <Text Command>
#-----------------------------------------------------------------------------------------------------------------------------------------
RTU001: 1 : Polled; Period 8; noncritical; Tables Table1 : c:\temp\RTU1.dat

 

Keywords:
 

Attachments