DMC-40x0 Command Reference
OP • 179
OP
FUNCTION:
Output Port
DESCRIPTION:
The OP command sends data to the output ports of the controller. You can use the output port to
control external switches and relays.
ARGUMENTS
: OP m,a,b
where
m is an integer in the range 0 to 65535 decimal, or $0000 to $FFFF hexadecimal.
m is the decimal representation of the general output bits Output 1 through Output 8 for
controllers with 4 axes or less. Outputs 1 through Output 16 for controller with 5 or more
axes.
a,b represent the extended I/O in consecutive groups of 16 bits, (values from 0 to 65535).
Arguments which are given for I/O points which are configured as inputs will be ignored.
The following table describes the arguments used to set the state of outputs.
Arguments
Blocks
Bits
Description
m 0
1-8
General
Outputs
(1-4 axes controllers)
m 0,1
1-16
General
Outputs
(5-8 axes controllers)
a
2,3
17-32
Extended I/O
b 4,5
33-48
Extended
I/O
m = ? returns the value of the argument, where n is any of the above arguments.
USAGE:
DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
5.0
Command Line
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_OP0 contains the value of the first argument, m
_OP1 contains the value of the first argument, a
_OP2 contains the value of the first argument, b
RELATED COMMANDS:
Set output bit
Clear output bit
EXAMPLES:
OP 0
Clear Output Port -- all bits
OP $85
Set outputs 1,3,8; clear the others
MG _OP0
Returns the first parameter "m"
MG _OP1
Returns the second parameter "a"
Содержание DMC-40x0 Series
Страница 2: ......
Страница 4: ......
Страница 10: ...vi i Table of Contents DMC 40x0 Command Reference This Page is Left Blank Intentionally ...