Crimson 3 Programming

fannar

Member
Join Date
Oct 2017
Location
iceland
Posts
13
Good day

I'm looking for a way to let crimson 3 monitor 3 temperatures from modbus then i want crimson to "GotoPage" when these 3 temps have reach their goal temp.

i have tried to pgrogramm a button to run this short program
if(real_temp >= 50 && real_temp2 >= 60 && real_temp3 >= 70){
GotoPage(page2);
}

and as u might guess i doesn't work

Is there a way to monitor these 3 temps and go to page2 when all of them are equal or higher then setpoints ?

Is the only way to run a program when executed by user ?
Or can they be executed at all times ?

Regards
Fannar
 
Good day

I'm looking for a way to let crimson 3 monitor 3 temperatures from modbus then i want crimson to "GotoPage" when these 3 temps have reach their goal temp.

i have tried to pgrogramm a button to run this short program
if(real_temp >= 50 && real_temp2 >= 60 && real_temp3 >= 70){
GotoPage(page2);
}

and as u might guess i doesn't work

Is there a way to monitor these 3 temps and go to page2 when all of them are equal or higher then setpoints ?

Is the only way to run a program when executed by user ?
Or can they be executed at all times ?

Regards
Fannar

There are ways to set a program to run without operator intervention, but the issue sometimes is that the tag isn't read unless it is currently visible on the screen.

On the Properties Tab of the Program, try setting the Execution Task to one of the Background ones and then set External Data to Read Always.

Then set up the Program to be called from the system On Tick event. It is found on the Global Tab of the Pages Root. On
Tick means that it is called every second - that's probably the easiest way to run the program.
 
Another way that wouldn't require user intervention would be to create an additional flag tag, call it 'AtGoalTemp' or something. Put in your conditional statement "real_temp >= 50 && real_temp2 >= 60 && real_temp3 >= 70" as the tag data. This formula tag will now become true when all three temps go above their setpoints. Now create an 'Active On' Trigger for the AtGoalTemp tag, with the action "GotoPage(page2)". Tag triggers work on rising edge signals, so the GotoPage action will only be executed once each time AtGoalTemp goes from false to true.
 
Thanks to all of you guys!

Solved this like this

All of the rising temp tags has a trigger that triggers the same program

In the program i check all 3 temperatures if they are within setpoint +/- 1°C

Works like a charm

Regards
Fannar
 

Similar Topics

Hey everyone! Need a little help with some scripting in Crimson 3.0. With this first script I am just trying set a local variable string based...
Replies
8
Views
2,352
I am stuck, pretty new at c "like" programming. Trying to have a program run some comparisons to setpoints and variable data that comes in from a...
Replies
27
Views
5,513
Hi, I have a Red Lion E3 io counting output from weld cells, connected to a PTV station for the visuals. Our number of weld cells is set to...
Replies
2
Views
1,554
Hello all, First time here, So I want to take an analog input and total it over time. For example, the input would be in ml/s and I would like...
Replies
1
Views
1,483
I am trying to program a G3 through Crimson 3 if (Part_1_Online) GotoPage(MAIN_369); else if (Part_2_Online) GotoPage(MAIN_369CR); else if...
Replies
11
Views
2,565
Back
Top Bottom