Crimson 3 Scheduling Tags.

jrrivera

Member
Join Date
Feb 2010
Location
Tamaulipas
Posts
10
I know that in the Red Lion HMI We can scheduling differents jobs.

for example each monday I want to take a measurement of sensor and place it in a tag or show in the HMI. But How I can use It (getday, gethour, etc).

I won´t use a PLC only the datastation plus for Red Lion and wireless sensors of Banner.
 
If I'm understanding what you are wanting. You will have 3 tags. One assigned to the device you are reading. Two internal. For simplicity, if your move will always be hourly, set up a tag to gethour(getnow)). Set up a trigger on change of 1. Set the trigger action to complex, and write your script ie...

if (gethour(getnow()==9) & (getday(getnow)==1) {tagHistory = tagNow;}

I haven't really used gethour or getday, but I think this should get you close. You may need to make sure the hour is in 24hr time and not 12hr.

I've done a fair amount with the G3 scripts, even doing a full demo, without a PLC. As long as this is for noncritical info only, I think you should be fine.
 
Last edited:
Thank you for you help.

But when I want to take a instruction of getday or getmonth, etc,in the program it send me an error "too few arguments for function"

For example for it code:

tag1 = getday();

What need for that tag can use the value of the day or hour, etc.
 
Thank you for you help.

But when I want to take a instruction of getday or getmonth, etc,in the program it send me an error "too few arguments for function"

For example for it code:

tag1 = getday();

What need for that tag can use the value of the day or hour, etc.


GetDay(GetNow()) will return the current day of week (zero based)
 
Thank you for you help.

But when I want to take a instruction of getday or getmonth, etc,in the program it send me an error "too few arguments for function"

For example for it code:

tag1 = getday();

What need for that tag can use the value of the day or hour, etc.

You need a time value in the function argument. The function getnow() will return the current time and date. So getday(getnow()) will return the day value from the current date and time.

Also I noticed my parenthesis where wrong in the condition statement I gave before. It should be

if (gethour(getnow())==9 & getday(getnow())==1) {tagHistory = tagNow;}
 

Similar Topics

Hey guys, hoping someone here could give me a little advice. I'm working with a CR1000-04000 in Crimson 3.1 and I was interested in adding the...
Replies
4
Views
124
Hi, I'm having an issue in crimson 3.0 when I create a programme using a case statement referencing a fault word that each bit needs to change the...
Replies
5
Views
218
How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
107
Has anyone found a way to convert/replace/update the firmware on old Parker TS80xx series HMIs (i.e. TS8010, TS8006, etc) to accept Crimson...
Replies
0
Views
91
Has anyone setup communications with Red Lion 3.0 MODBUS to Baker Hughes Centrilift GCS VFD? Thanks
Replies
0
Views
89
Back
Top Bottom