Red Lion Crimson 3, FtpPutFile

Edmhydraulics

Member
Join Date
Apr 2014
Location
Beaumont
Posts
173
Hello all, need a bit of help, I am using the FtpPutFile command in Crimson 3, its working well, but the return from this command stays on all the time.

Here is the line of code:

"File_Sent_OK = FtpPutFile(0, FileName, FileName, 0);"

File_Sent_OK stays on all the time after you send the file with the FtpPutFile command, what I want it to do is clear when another button is pressed on the screen.

I have tried using if statements: " IF (Start_Test) {
File_Sent_OK = 0;}"

But this isnt working and it still stays lit. Is there anyway I can clear this return from the command??

Thanks, Edm
 
Is the instruction continually being executed or is it tied to a PLC memory location that is READ ONLY?
 
Is the instruction continually being executed or is it tied to a PLC memory location that is READ ONLY?

I was thinking the same thing. Looks like you need a conditional or something to make sure FtpPutFile is only executed once, otherwise File_Sent_OK is going to be continuously written over.
 
Red Lion Tech Support gave me the following info;

"On the File_Sent_OK tag set up a trigger for an active on or data match (if its a numeric tag). Set the value to 1 (if its a numeric tag). The action of the trigger will be to turn its self off. You can delay that action up 60,000ms. I would try it that way and it should work. "

This worked well.
 

Similar Topics

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
Hi, I am trying to increase the size of the user login pop up using a Red Lion CR1000 7” HMI with Crimson 3.1 software. The login pop up is very...
Replies
2
Views
668
Hello, We are currently running a bunch of g310's connected to their SLC5 PLCs through ethernet. I've attempted to upgrade the program from 2.0...
Replies
1
Views
1,121
Hi I have been using Red Lion products for some time, I had a thought over the bank holiday weekend, As you do. It would be nice if whenever a...
Replies
4
Views
1,015
Well, I have yet another question for the great minds on this forum! We have a red lion HMI for one of our machines and every time I hook my...
Replies
11
Views
1,670
Back
Top Bottom