![Parker Automation Gemini GV6K Command Reference Manual Download Page 239](http://html1.mh-extra.com/html/parker-automation/gemini-gv6k/gemini-gv6k_command-reference-manual_3701373239.webp)
Command Descriptions
237
PORT
Designate Destination Communication (“COM”) Port
Type
Communication Interface
Syntax
<a_><!>PORT<i>
Units
i = port number
Range
0 (set to active port), 1 (COM1), or 2 (COM2)
NOTE: “COM1” is the “RS-232/485” or “ETHERNET” connector.
“COM2” is the “RS-232” connector.
Default
1
Response
PORT: *PORT1
See Also
], [, BOT, DRPCHK, E, EOL, EOT, ERRDEF, ERRLVL, ERROK, ERRBAD,
LOCK, [READ], WRITE, XONOFF
Product Rev
GT6K 6.0
GV6K 6.0
The
PORT
command is used to determine which COM port is affected by the
DRPCHK
,
E
,
ECHO
,
BOT
,
EOL
,
EOT
,
ERROK
,
ERRBAD
,
ERRDEF
,
ERRLVL
, and
XONOFF
commands. It also specifies the port to which
responses and prompts from stored programs should be sent.
The
PORT
command also selects the target port through which the
WRITE
and
READ
commands transmit
ASCII text strings. The
DWRITE
command (as well as all other RP240 commands) will affect the RP240
regardless of the
PORT
command setting. If no RP240 is detected, the commands are sent to the COM2
port.
DWRITE
text strings are always terminated with a carriage return.
You can use the
PORT0
command to set the
PORT
value to the port through which the command was
received. For example, if your computer is connected to the RS-232/485 port (COM1) and you send the
PORT0
command, the
PORT
value will be changed to
PORT1
and all subsequent communication commands
will affect the COM1 port.
Example
(The
PORT
command can be used to designate
EOT
parameters for both ports. Assume that port COM1 is
being used to communicate to the Gem6K drive.)
PORT1
; Select COM1 for EOT setup
EOT45,49,10
; EOT for COM1 is -1<lf>
TPE
; Send "Transfer Position of Encoder" response to COM1
; using EOT 45,49,10
PORT2
; Select COM2 for EOT setup
EOT45,50,10
; EOT for COM2 is -2<lf>
TPC
; Send "Transfer Commanded Position" response to COM2
; using EOT 45,50,10
Example
(The
PORT
command specifies both port setups and response destinations in a stored program.)
DEF qwe
; Begin definition of qwe
PORT1
EOT45,49,10
; EOT for COM1 is -1<lf>
TPE
; Send "Transfer Position of Encoder" response to COM1
; using EOT 45,49,10
PORT2
EOT45,50,10
; EOT for COM2 is -2<lf>
TPC
; Send "Transfer Commanded Position" response to COM2
; using EOT 45,50,10
END
; End definition of qwe
POUTA
Compiled Output
Type
Compiled Motion; Outputs
Syntax
<a_><!><B>POUTA<b><b><b><b>
...
Units
b = enable bit for specific outputs (see page
8
)
Range
b = 0 (off), 1 (on), or X (don't change)
Default
0
Response
n/a
See Also
GOBUF, OUT, OUTEN, OUTFNC, OUTLVL, PCOMP, PRUN, PUCOMP
Product Rev
GT6K 6.0
GV6K 6.0
Use the
POUTA
command to control outputs during Compiled Motion. The outputs that can be controlled
are the digital outputs on the
DRIVE I/O
connector, the relay output (labeled “
RELAY COM
” and “
RELAY
N.O.
”) on the 4-pin removable connector, and any outputs on external I/O bricks. Refer to page
8
to
www.comoso.com
Summary of Contents for Gemini GV6K
Page 24: ...www comoso com...
Page 40: ...www comoso com...
Page 344: ...www comoso com...
Page 350: ...www comoso com...