SOEEventAdd for SP change in Citect 2018 faceplate

Hi,

I am trying to get any change in setpoint value from within an equipment faceplate in Citect 2018 SA environment to show a message like "Inlet conductivity High SP Changed to 5.0mV"

I have the following SOEEventAdd script put in the Input keyboard command.

SOEEventAdd(TimestampCurrent(), EquipGetParameter(%Equipment%,"Name",0) + "SP Changed to "+ %Equipment%.%WriteItem%:####.##EU)

In the alarm history (Sequence of events, I only get "SP Changed to 5.0mV"

I have tried numerous different commands in place of the "EquipGetParameter" to get the correct output but I always get the same result.

Has anyone got this to work and what command should be used. 

  • EquipGetParameter() is used for reading equipment run-time parameters, and its syntax is EquipGetParameter(sClusterName, sEquipmentName, sParameterName) according to the Web Help. So your syntax is not right and should be something like:
    EquipGetParameter("%Cluster%", "%Equipment%", "Name")
    Also, remember to include the double quotes around your genie substitutions (like "%Equipment%")

    However, when looking at your example, I get the impression that you are looking for a way to get the equipment comment, instead of a runtime parameter called Name.
    If so, please try using something like EquipGetProperty("%Equipment%", "Name", 0)
    Again, note the double quotes around the first two arguments in the function.

    If this does not work, it may be because mode 0 is a blocking mode. In this case you could use mode 2 or another mode if you like.
  • Patrick,

    I tried the suggested code with all different modes and I still get the same result.

    Does anyone know if there are any limitations on how deep a genie can go before getting lost
  • Did you use EquipGetProperty() instead of EquipGetParameter() ? It's a different function.

    What do you mean by "getting lost"?