AlarmGenerate (method)

About this task

Important: The following use of AlarmGenerate requires extra configuration for projects created before CIMPLICITY version 6.1.
  • An alarm is triggered from a BCE script using AlarmGenerate.
  • The alarm is a $CIMBASIC type.
  • The alarm message contains 80 characters.
Example
Sub Main()
    AlarmGenerate "TEST_AMV","TEST_AMV_ALARM_SCRIPT","$SYSTEM","123456789012345678
90123456789012345678901234567890123456789012345678901234567890"
End Sub
For projects created before CIMPLICITY version 6.1ProblemIf BASIC generates an alarm that is greater than 72 characters to a project that does not have the following solution:
  • The project will log an error indicating there were too many fields.
  • The alarm will be displayed with 72 characters.
Solution

Procedure

  1. Allow 80 characters in a BASIC alarm message.
  2. Idtpop the alarm_field record.
  3. Edit the alarm_field.idt file.
  4. Change the field_len to 80 in the $CIMBASIC record.
    For projects created in CIMPLICITY version 6.1 and later80 characters are supported automatically.