Applies To:
  • CitectSCADA 3.00

Summary:
Question: In the Citect Help the values that the Pen argument of TrnGetEvent and TrnSetEvent functions accept are different to those of periodic trend functions. What are the actual values of this argument?  

Solution:
Generally speaking, the TrnGetXXXX functions will accept 0,1 to 8 and TrnSetXXXX functions -1,0,1 to 8. The TrnGetEvent and TrnSetEvent functions obey this rule, that is
 
TrnGetEvent function Pen 0 Pen in focus
1 to 8 Pen number
TrnSetEvent function Pen -1 All pens
0 Pen in focus
1 to 8 Pen number
 

Keywords:
 

Attachments