Jump to content
OMRON Forums

Recommended Posts

Posted

There seems to be many option of the Gpascii,such as -i -2 ,is there a document telling how many options be there and how to use the options?

 

Thanks

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Posted

This is the best explanation I could find:

 

GPLinux Power PMAC ASCII File & STD I/O

Syntax: gpascii [Options]

Input Options: -iFILEIN -oFILEOUT -sSLEEP(usec)
Output Options
 -i      -o        -e           INP     OUT       ERR     -s(useconds)            Test Status
------    -------   -------     ------  --------  ------   ---------               -------------
                                STDIN   STDOUT   STDERR   NOT ACTIVE                  OK
-iFILEIN                         FILEIN  STDOUT   STDERR   ACTIVE (delays usec)        OK
         -oFILEOUT -eERRFILE    STDIN   FILEOUT  ERRFILE  NOT ACTIVE                  OK ^C doesn't close file (use ESC\n)
-iFILEIN  -oFILEOUT -eERRFILE    FILEIN  FILEOUT  ERRFILE  ACTIVE (delays usec)        OK

 

I hope it is helpful.

  • 1 year later...
Posted

Dear all,

I can't get gpascii -s option working :

172.23.1.169:/opt/ppmac# gpascii -s100

Error: Illegal input option

Could someone help me on that, thank you.

My goal: My C applications have time execution picks that seems to come from the "gpascii -i" i use to fill my rotary buffer. I would like to reduce thoses picks.

Posted
I do not know what gpascii -s100 should mean. If you enter gpascii --h you will get the list of options that I know about. Where did you get the information on a -s option?
Posted

I got this infos on this forum thread, just above : Input Options: -iFILEIN -oFILEOUT -sSLEEP(usec)

 

-h not working:

 

root@192.168.16.211

192.168.168.211:/opt/ppmac# gpascii --h

Error: Illegal input option

 

192.168.168.211:/opt/ppmac# gpascii --help

Error: Illegal input option

 

root@192.168.16.211

192.168.168.211:/opt/ppmac# gpascii -h

Error: Illegal input option

Posted

Works for me.

 

root@192.168.0.200

192.168.100.94:/opt/ppmac# gpascii --h

This program is the command line input/output to the Power PMAC Command Processor

 

The input options are the following:

-i followed by the input file name. Default is the STDIN

-o followed by the output file name. Default is the STDOUT

-e followed by the error output file name. Default is the STDOUT

-v Sets the verbose mode where status messages are printed

-2 Enables global & user defined name string replacement with Power PMAC commands

 

To terminate the program send an ESC with a NEWLINE

If you are using the "-i" input file option you must use a CNTRL C to terminate the program.

root@192.168.0.200

192.168.100.94:/opt/ppmac#

 

Try gpascii--h as I was told this was the syntax but it did not work for me, I needed one space.

  • 9 months later...
Posted

Thank you Bradp,

Do you see a reason why i can't get the -h option working?

 

Looks like you need two dashes before "h". This worked for me:

gpascii --h

 

I also got a few more options than those that bradp posted.

This program is the command line input/output to the Power PMAC Command Processor

The input options are the following:
-i      followed by the input file name. Default is the STDIN
-o      followed by the output file name. Default is the STDOUT
-e      followed by the error output file name. Default is the STDOUT
-v      Sets the verbose mode where status messages are printed
-2      Enables global & user defined name string replacement with Power PMAC commands
-n      Do not append  to a PPMAC response.  The default is to add the ACK
       Default is no flush. This option cannot be used along with the -i option.
-f      Automatically flush data to the terminal after PPMAC response on.

To terminate the program send an ESC with a NEWLINE
If you are using the "-i" input file option you must use a CNTRL C to terminate the program.

Guest
This topic is now closed to further replies.

×
×
  • Create New...