Applies To:
  • CitectSCADA 7.0

Summary:

The DspSymAnm() function is used to animate a series symbols. The online help states "This function is only used for V3.xx and V4.xx animations, and has been superseded". However, this function was working in V6.10 but in V7, the project produces the following compiler error messages.

Operand expected
Line[500]:_DspSymAnm(211,}"pumps.opump_1_e_r","pumps.opump_1_e_g",0,0,0,0,0,0,-1,0)
Line[500]:_DspSymAnm(211,"pumps.opump_1_e_r"{,}"pumps.opump_1_e_g",0,0,0,0,0,0,-1,0)
Line[500]:_DspSymAnm(211,"pumps.opump_1_e_r","pumps.opump_1_e_g"{,}0,0,0,0,0,0,-1,0)
Line[500]:_DspSymAnm(211,"pumps.opump_1_e_r","pumps.opump_1_e_g",0{,}0,0,0,0,0,-1,0)
Etc.

 

Solution:

In the Include project directory, open the labels.dbf in Excel and in column A, find the line for DspSymAnmEx(), change column B to remove the leading underscore (DspSymAnm(hAn,s1,s2,s3,s4,s5,s6,s7,s8,mode,s9))

Save the labels.dbf using the Save_DBF Citect macro

 

Keywords:
 

Attachments