How to create a simple program in Crimson

31 Mar 2026

 

This article discusses how to setup a simple program in Crimson as a user defined action. 

 

APPLICABLE PRODUCTS 

  • DA30
  • DA50 or DA70 Flexedge
  • DSP series 
  • CR series 
  • Graphite series 
  • Graphite modular control series

 

PRE-REQUISITES 

  • One of the above Red Lion product models 
  • Copy of Crimson 3.x  

 

IN THIS ARTICLE 

This article covers step by step instructions for creating and translating a simple program as a user defined action in Crimson 3.x 

 

First, select programs, click new program.  You will see the program code window as below.  In this example I'm using the pushbutton primitive to reset the counter display to zero when pressed. To do that I use the script cnt_reset=0;

 

DA50_3.png

 

 

Program 2 in this example is to delete a data log file manually from the file viewer primitive. This script is found under the system> system functions> file options in the right-side resource pane. 

 

DA50_5.png

 

 

Please note once you have your Program code script typed out.  You will need to translate the program.  If you do not you will see a yellow diamond instead of green in the program list view, left side. 

 

DA50_6.png

 

 

You can see program 3 above is yellow.  To translate the program script with your cursor anywhere in the program code window.  Click on the program name and then select translate.  If the compiler accepts the script. The diamond will turn green.  If it finds a syntax error, it will give you an error description in the program code window. 

 

Last, you have to assign the program script to the action button.  In this example I'm using a pushbutton primitive as a user defined action, on press.  Select the display page with the primitive you are working with. Click on it, then select properties. 

 

DA50_2.png

 

Under the action tab set your action mode as user defined. Then select you program from the program list in the right-side resource pane and drag over to the action, on press editor. 

 

Once you are done editing your database. Click file> save as and save to a location of your choice. Click link>options and verify your comm port settings. Last, click link> send to download the database. 

 

HMS Support 

If you need further assistance, you can contact us here. 

Create a support ticket here   

 

ADDITIONAL INFO 

Link to Crimson download page    Crimson 3.x download link 

Link to Crimson 3.x manual  Crimson 3.x reference manual 

 

© HMS Networks AB 2026