DaveBarnett Posted March 1 Share Posted March 1 (edited) My issue is as follows: I have written a background C application...tested it with an SSH terminal session (so I can easily view printf output) 'Works fine... I build and download the entire project and add a watch window with some variables that the C prog has access to, so I can see the application is running. I can now start the application from the task manager...and see the variables update, so I know the program has started. I can also stop via the task manager...and the program stops. But, I cannot seem to start the program from a plc or online command. I've tried the example from the manual: system "/var/ftp/usrflash/Project/C\ Language/Background\ Programs/mycapp.out"; I've tried this, too: p1 = sprintf(256, "/var/ftp/usrflash/Project/C Language/Background Programs/mycapp.out" ) system "%s", 256 Neither causes the program to start. Any ideas on what's going on? ... or any debugging techniques that would be useful in this case ?? I’m using: IDE ver: 4.5.2.9 firmware ver: 2.6.1.0 (CK3M) Thanks in advance! Edited March 1 by DaveBarnett update Quote Link to comment Share on other sites More sharing options...
Unit101 Posted March 1 Share Posted March 1 This works for me... system "/var/ftp/usrflash/Project/C\ Language/Background\ Programs/compass25.out&"; Quote Link to comment Share on other sites More sharing options...
steve.milici Posted March 2 Share Posted March 2 This has been resolved. Both of the following work OK in a PLC: system "/var/ftp/usrflash/Project/C\ Language/Background\ Programs/mycapp.out" p1 = sprintf(256, "/var/ftp/usrflash/Project/C\ Language/Background\ Programs/mycapp.out") system "%s", 256 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.