Crimson RedLion On Tick

CurtisPratt

Member
Join Date
Dec 2011
Location
Saskatoon
Posts
23
Can On Tick run more than one program?

Trying to call 2 different programs and it will not work.

When I try to put my 2nd program into my 1st program and just call the one program it does not work either. Individually on their own they get work but when I try to call both or combine both programs, cannot get it to run.
 
Can On Tick run more than one program?

Trying to call 2 different programs and it will not work.

When I try to put my 2nd program into my 1st program and just call the one program it does not work either. Individually on their own they get work but when I try to call both or combine both programs, cannot get it to run.

There are other ways, but I just testing creating two programs and calling them on "OnTick" like this:

Program1(),Program2()

Notice the comma between them.
 
It depends whether the program(s) are blocking and whether they try to talk to IO. You can possibly get around your problem by modifying the program properties: a background task will not be blocking. And the 'Run Anyway' can help here too. If talking to IO (a PLC), it can appear to be hung but is actually just waiting for communication to the PLC.
 
It depends whether the program(s) are blocking and whether they try to talk to IO. You can possibly get around your problem by modifying the program properties: a background task will not be blocking. And the 'Run Anyway' can help here too. If talking to IO (a PLC), it can appear to be hung but is actually just waiting for communication to the PLC.

All of what you say is true, but since the OP just said, "it doesn't work" I decided to answer with "yes it will"

If he wants a better answer, he should ask a better question.
 

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
125
Hi, I have a complex database in Crimson 3.0 and in one of the display pages I am trying to get a tag to show the sum of several other tags. The...
Replies
3
Views
173
It states WinPcap must be installed for the Emulator to function. WinPcap.org states that the technology is mature with no updates planned. Am I...
Replies
3
Views
864
Following on from another thread, I just downloaded Crimson 3.2 and it now supports CR and Graphite HMIs. Time for a 'play' :-) It seems to have...
Replies
14
Views
2,030
Action On Release command Set(ConveyorPopup,ConveyorPop_1) rejected w/ string tags. SetStringTag(index, data) wants an index. How does one pass...
Replies
8
Views
966
Back
Top Bottom