\OUT
Type:
Syntax:
Units:
Range:
Default:
Response:
See Also:
Network Digital Output
Network | Product | Rev |
<!>n\mOUT<b><b><b><b> | 6K | 5.3 |
|
| |
n = network server # |
|
|
m = module # |
|
|
b = enable bit |
|
|
i = digital output # on module “m” |
|
|
n=
b = 1 (turn on), 0 (turn off), or X (don’t change) i =
n\mOUT0000
n/a
[ \OUT ], NTIO, \TIO, \TOUT
Controlling Multiple Outputs
Output #1
Output #2
Output #3
Output #4
n \ m OUT b b b b
Network Server # |
|
|
|
|
|
(Range: |
|
|
| Options for “b” are: | |
|
|
|
|
| |
|
|
|
|
| 1 = Turn on |
Module # on Server “n” |
|
|
| 0 = Turn off | |
|
|
| x = Don’t Change | ||
(Range: |
|
|
|
|
Controlling One Output
|
|
|
|
|
|
| Output Number |
|
|
|
|
|
|
| (Range: |
|
| n \ m OUT .i - b | |||||
Network Server # |
|
|
|
|
|
| Options for “b” are: |
|
|
|
|
|
| ||
|
|
|
|
|
| ||
(Range: |
|
|
|
|
| ||
|
|
|
|
| |||
|
|
|
|
|
|
| 1 = Turn on |
|
|
|
|
|
|
| 0 = Turn off |
Module # on Server “n” |
|
|
|
|
| x = Don’t Change | |
|
| ||||||
(Range: |
|
|
|
|
|
|
Use the \OUT command to control the state of each digital output on the OPTO22 unit.
The controller addresses the OPTO22 I/O locations as follows:
Each I/O bit is addressed by its location on a specific module. (NOTE: I/O points are not addressed by an absolute
EXAMPLE: OPTO22 is Network Server #2
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Digital | Digital | Digital | Digital | Analog | Analog | Analog | Analog |
Input | Input | Output | Output | Output | Output | Input | Input |
Module | Module | Module | Module | Module | Module | Module | Module |
Input | Input | Output | Output | Output | Output | Input | Input |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Input | Input | Output | Output | Output | Output | Input | Input |
2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
Input | Input | Output | Output |
|
|
|
|
3 | 3 | 3 | 3 |
|
|
|
|
Input | Input | Output | Output |
|
|
|
|
4 | 4 | 4 | 4 |
|
|
|
|
| 2\0IN.3 |
|
|
| 2\3OUT.2 |
|
| 2\5ANO.1 |
|
| 2\7ANI.2 |
|
|
|
|
|
| ||||||||
Example: | ; Identify network server #2 as an OPTO22 unit at IP address |
| ||||||||||
2NTIP2,172,54,125,34 |
| |||||||||||
2NTCONN1 | ; 172.54.125.34 |
|
|
|
|
|
|
|
| |||
; Attempt a | connection to network server #2 (OPTO22 unit) |
| ||||||||||
2\2NTIO2 | ; Server #2 | (OPTO22), module #2 is a digital output module |
| |||||||||
2\3NTIO2 | ; Server #2 | (OPTO22), module #3 is a digital output module |
| |||||||||
2\3OUT1001 | ; On Server | #2, module #3, turn on Outputs #1 and #4 and turn off |
| |||||||||
; Outputs #2 and #3 |
|
|
|
|
|
|
| |||||
; On Server | #2, module #2, turn on only Output #1 |
|
|
|
|
page 38