Jump to content
OMRON Forums

Gpascii Option


dzrong
 Share

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

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.

Link to comment
Share on other sites

  • 1 year later...

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 9 months later...

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...