AMX nxc User Manual

Operation/Reference Guide
NetLinx® Cardframe,
Control Cards,
and NetModules
NXC, NXF, and NXM Series
Central Controllers
AMX Limited Warranty and Disclaimer
This Limited Warranty and Disclaimer extends only to products purchased directly from AMX or an AMX Authorized Partner which include AMX Dealers, Distributors, VIP’s or other AMX authorized entity.
AMX warrants its products to be free of defects in material and workmanship under normal use for three (3) years from the date of purchase, with the following exceptions:
Electroluminescent and LCD Control Panels are warranted for three (3) years, except for the display and touch overlay compo­nents are warranted for a period of one (1) year.
Disk drive mechanisms, pan/tilt heads, power supplies, and MX Series products are warranted for a period of one (1) year.
AMX lighting products are guaranteed to switch on and off any load that is properly connected to our lighting products, as long as the AMX lighting products are under warranty. AMX also guarantees the control of dimmable loads that are properly con­nected to our lighting products. The dimming performance or quality there of is not guaranteed, impart due to the random combi­nations of dimmers, lamps and ballasts or transformers.
AMX software is warranted for a period of ninety (90) days.
Batteries and incandescent lamps are not covered under the warranty.
AMX AutoPatch Epica, Modula, Modula Series4, Modula CatPro Series and 8Y-3000 product models will be free of defects in materials and manufacture at the time of sale and will remain in good working order for a period of three (3) years following the date of the original sales invoice from AMX. The three-year warranty period will be extended to the life of the product (Limited Lifetime Warranty) if the warranty card is filled out by the dealer and/or end user and returned to AMX so that AMX receives it within thirty (30) days of the installation of equipment but no later than six (6) months from original AMX sales invoice date. The life of the product extends until five (5) years after AMX ceases manufacturing the product model. The Limited Lifetime Warranty applies to products in their original installation only. If a product is moved to a different installation, the Limited Lifetime Warranty will no longer apply, and the product warranty will instead be the three (3) year Limited Warranty.
All products returned to AMX require a Return Material Authorization (RMA) number. The RMA number is obtained from the AMX RMA Department. The RMA number must be clearly marked on the outside of each box. The RMA is valid for a 30-day period. After the 30-day period the RMA will be cancelled. Any shipments received not consistent with the RMA, or after the RMA is cancelled, will be refused. AMX is not responsible for products returned without a valid RMA number.
AMX is not liable for any damages caused by its products or for the failure of its products to perform. This includes any lost profits, lost savings, incidental damages, or consequential damages. AMX is not liable for any claim made by a third party or by an AMX Autho­rized Partner for a third party.
This Limited Warranty does not apply to (a) any AMX product that has been modified, altered or repaired by an unauthorized agent or improperly transported, stored, installed, used, or maintained; (b) damage caused by acts of nature, including flood, erosion, or earth­quake; (c) damage caused by a sustained low or high voltage situation or by a low or high voltage disturbance, including brownouts, sags, spikes, or power outages; or (d) damage caused by war, vandalism, theft, depletion, or obsolescence.
This limitation of liability applies whether damages are sought, or a claim is made, under this warranty or as a tort claim (including negligence and strict product liability), a contract claim, or any other claim. This limitation of liability cannot be waived or amended by any person. This limitation of liability will be effective even if AMX or an authorized representative of AMX has been advised of the possibility of any such damages. This limitation of liability, however, will not apply to claims for personal injury.
Some states do not allow a limitation of how long an implied warranty last. Some states do not allow the limitation or exclusion of inci­dental or consequential damages for consumer products. In such states, the limitation or exclusion of the Limited Warranty may not apply. This Limited Warranty gives the owner specific legal rights. The owner may also have other rights that vary from state to state. The owner is advised to consult applicable state laws for full determination of rights.
EXCEPT AS EXPRESSLY SET FORTH IN THIS WARRANTY, AMX MAKES NO OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. AMX EXPRESSLY DISCLAIMS ALL WARRANTIES NOT STATED IN THIS LIMITED WARRANTY. ANY IMPLIED WARRANTIES THAT MAY BE IMPOSED BY LAW ARE LIMITED TO THE TERMS OF THIS LIMITED WARRANTY. EXCEPT AS OTHERWISE LIMITED BY APPLICABLE LAW, AMX RESERVES THE RIGHT TO MODIFY OR DISCONTINUE DESIGNS, SPECIFICATIONS, WARRAN­TIES, PRICES, AND POLICIES WITHOUT NOTICE.
Table of Contents
i
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
Table of Contents
NXF CardFrame and NetModules ......................................................................1
Overview .................................................................................................................. 1
NXF CardFrame ........................................................................................................ 1
NXF Cardframe Specifications ................................................................................. 1
Mounting Master/Hub Cards in an NXF CardFrame........................................................ 2
Setting the CardFrame's starting address ....................................................................... 2
Device:Port:System (D:P:S).............................................................................................. 3
NXS-NMS NetModules ............................................................................................. 3
NXS-NMS NetModules specifications.............................................................................. 3
Mounting modules into an equipment rack..................................................................... 4
Installing Control Cards into an NXF CardFrame............................................................. 4
Preparing/connecting captive wires ................................................................................ 4
Using the ID button......................................................................................................... 4
NXC-COM2 Dual COM Port Control Card ..........................................................5
Specifications............................................................................................................ 5
Pinouts and Wiring Configuration ............................................................................ 6
NXC-COM2 Channel Assignment.............................................................................. 6
NXC-COM2 Programming Information ..................................................................... 6
NXC-COM2 Send_Commands ......................................................................................... 6
B9MOFF................................................................................................................................... 6
B9MON .................................................................................................................................... 6
CHARD ..................................................................................................................................... 7
CHARDM.................................................................................................................................. 7
CTSPSH .................................................................................................................................... 7
CTSPSH OFF............................................................................................................................. 7
GET BAUD................................................................................................................................ 7
HSOFF...................................................................................................................................... 7
HSON ....................................................................................................................................... 8
RXCLR ...................................................................................................................................... 8
RXOFF...................................................................................................................................... 8
RXON ....................................................................................................................................... 8
SET BAUD ................................................................................................................................ 8
NXC-COM2 Send_String Escape Sequences ................................................................... 9
27,17,<time> ........................................................................................................................... 9
TSET BAUD .............................................................................................................................. 9
TXCLR ...................................................................................................................................... 9
XOFF........................................................................................................................................ 9
XON ......................................................................................................................................... 9
27,18,0 ................................................................................................................................... 10
27,18,1 ................................................................................................................................... 10
27,19,<time> ......................................................................................................................... 10
27,20,0 ................................................................................................................................... 10
27,20,1 ................................................................................................................................... 10
ii
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
Table of Contents
NXC-I/O10 Input/Output Control Card ............................................................11
Specifications.......................................................................................................... 11
Pinouts, Signals, and I/O Mode Functions .............................................................. 12
NXC-I/O10 Channel Assignments ........................................................................... 12
Setting the Switch/Voltage Mode Jumpers ............................................................ 12
Setting the Voltage Clamp Jumper (+12V or Open)............................................... 13
NXC-IRS4 4-Port IR/S Control Card ..................................................................15
Specifications.......................................................................................................... 15
Pinouts, Signals, and Functions .............................................................................. 16
NXC-IRS4 Channel Assignments ............................................................................. 16
Programming Information....................................................................................... 16
CAROFF ................................................................................................................................. 16
CARON................................................................................................................................... 16
CH .......................................................................................................................................... 17
CP........................................................................................................................................... 17
CTOF...................................................................................................................................... 17
CTON ..................................................................................................................................... 17
GET MODE............................................................................................................................. 18
IROFF ..................................................................................................................................... 18
POD ....................................................................................................................................... 18
POF ........................................................................................................................................ 18
PON ....................................................................................................................................... 18
PTOF ...................................................................................................................................... 19
PTON ..................................................................................................................................... 19
SET INPUT LINK ..................................................................................................................... 19
SET IO LINK............................................................................................................................ 19
SET MODE ............................................................................................................................. 20
SP........................................................................................................................................... 20
XCH........................................................................................................................................ 20
XCHM..................................................................................................................................... 20
NXC-REL10 Relay Control Card ........................................................................23
Specifications.......................................................................................................... 23
Pinouts and Functions............................................................................................. 23
NXC-REL10 Channel Assignments .......................................................................... 23
NXC-REL10 Connections/Wiring ............................................................................. 24
NXC-VAI4 Analog Voltage Control Card ..........................................................25
Specifications.......................................................................................................... 25
Pinouts and Functions............................................................................................. 26
Channel Assignments.............................................................................................. 26
NXC-VAI4 Output Level Assignments..................................................................... 28
NXC-VAI4 Input Level Assignments ........................................................................ 29
Programming Information....................................................................................... 29
AD MODE .............................................................................................................................. 29
DEFAULT................................................................................................................................ 29
Table of Contents
iii
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
DEFAULT ALL......................................................................................................................... 29
GAS........................................................................................................................................ 29
GD.......................................................................................................................................... 30
GL........................................................................................................................................... 30
GS .......................................................................................................................................... 30
LEVOFF .................................................................................................................................. 30
LEVON ................................................................................................................................... 30
PC........................................................................................................................................... 31
PE........................................................................................................................................... 31
PL ........................................................................................................................................... 31
PN .......................................................................................................................................... 32
PR........................................................................................................................................... 32
PU .......................................................................................................................................... 32
PX........................................................................................................................................... 33
PZ........................................................................................................................................... 33
NXC-VOL4 Volume Control Card ......................................................................35
Specifications.......................................................................................................... 35
Pinouts, Signals, and Functions............................................................................... 36
NXC-VOL4 Connections/Wiring .............................................................................. 36
NXC-VOL4 Channel Assignments............................................................................ 37
NXC-VOL4 Levels.................................................................................................... 37
CREATE_LEVEL.............................................................................................................. 37
SEND_LEVEL ................................................................................................................. 38
Programming Information....................................................................................... 38
PL ........................................................................................................................................... 38
PR........................................................................................................................................... 38
iv
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
Table of Contents
1
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide

NXF CardFrame and NetModules

123456789101112
123456789101112
12
15 16
19 20
17 18
4
13 14
12
10 11
9
8
7
6
5
3
2
1
12
11
16
18
17
19
5 6 7 8 9
11
10
12
14
13
15
2 3 4
11
10
16
18
17
20
19
5 6 7 8 9
11
10
12
14
13
15
1 2 3 4
10
9
16
18
17
19
5 6 7 8 9
11
10
12
14
13
15
2 3 4
9
8
16
18
17
20
19
5 6 7 8 9
11
10
12
14
13
15
1 2 3 4
8
7
16
18
17
19
5 6 7 8 9
11
10
12
14
13
15
2 3 4
7
6
16
18
17
20
19
5 6 7 8 9
11
10
12
14
13
15
1 2 3 4
6
5
16
18
17
19
5 6 7 8 9
11
10
12
14
13
15
2 3 4
5
4
16
18
17
20
19
5 6 7 8 9
11
10
12
14
13
15
1 2 3 4
4
3
16
18
17
19
5 6 7 8 9
11
10
12
14
13
15
2 3 4
3
2
16
18
17
20
19
5 6 7 8 9
11
10
12
14
13
15
1 2 3 4
2
1
16
18
17
19
5 6 7 8 9
11
10
12
14
13
15
2 3 4
1
NXF
CARDFRAME
CARDFRAME NUMBER
ON
12VDC
CARDFRAME
PWR
front
rear
2-pin 12V power connector
Cardframe number DIP Switch
Control Card slots 1-12
Control Card slots 1-12
Master/Hub Card slot
Master/Hub Card slot

Overview

NetLinx Control Cards can be installed in the NetLinx® (NXF) CardFrame, the NI-4000, or in modules for stand-alone operation. The NXF CardFrame accommodates a NetLinx Master (or Hub) card, up to twelve NetLinx Control cards, and provides a back plane to distribute power and data to/from the cards. The NXF CardFrame provides terminals on the rear panel for connection to the control cards and a system power supply. A DIP switch on the rear panel sets the CardFrame's base device number. The NetLinx Control Cards covered in this document are:
• NXC-COM2 Dual COM Port Control Card
• NXC-I/O10 Input/Output Control Card
• NXC-IRS4 4-Port IR/S Control Card
• NXC-REL10 Relay Control Card
• NXC-VAI4 Analog Voltage Control Card
• NXC-VOL4 Volume Control Card

NXF CardFrame

FIG. 1 shows the front and rear panel components of the NXF CardFrame.
NXF CardFrame and NetModules
NXF CardFrame
FIG. 1

NXF Cardframe Specifications

NXF Cardframe Specifications
Power Requirement 12 VDC; varies with installed Control Cards. Dimensions (HWD) 3.5" x 17.0" x 9.6" (8.89 cm x 43.18 cm x 24.38 cm) Weight 9.1 lbs (4.1 kg)
Front Panel Components:
Master/Hub Card slot Houses the Master or Hub Card. Refer to the NetLinx Master Cards and Modules or
Control Card slots 12 card slots for the NetLinx Control Cards that control devices connected to the
NetLinx Hub Cards and Modules instruction manuals for detailed information.
CardFrame.
NXF CardFrame and NetModules
2
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
NXF Cardframe Specifications (Cont.)
Rear Panel Components:
Card slots Twelve 20-pin black (male) connectors and mating 3.5 mm captive-screw terminals
Control Card connectors (1-12) 20-pin black (male) connectors that connect the Control Cards and external
+12 VDC PWR 2-pin green (male) connector for connecting a 12 VDC power supply. The CardFrame
CardFrame Number DIP switch Sets the starting address for the Control Cards in the CardFrame. The 8-position DIP
Front faceplate Plastic gray faceplate with translucent viewing window. Enclosure Metal with black matte finish.

Mounting Master/Hub Cards in an NXF CardFrame

NetLinx Master and Hub Cards can be installed in the NXF CardFrame. The card mounts in a horizontal position, through the master card slot on the rear panel of the NXF enclosure. To install a Master or Hub Card in an NXF:
1. Discharge the static electricity from your body by touching a grounded metal object.
2. Unplug all the connectors from the NXF.
3. Remove the two screws holding the front plate on the Master Card, and remove the front plate.
4. Align the edges of the card with the guide slots inside the Master Card slot on the NXF.
5. Slide the card about halfway into the slot.
6. Inside the Master Card slot on the NXF, locate the 6-pin control cable connector.
7. Plug the connector from the NXF into the 6-pin terminal on the Master Card. This connector is keyed to ensure
correct orientation.
8. Once the control cable is connected, gently slide the card all the way in until you feel the rear edge of the card
lightly snap into place.
9. Re-apply power and other connections as necessary.

Setting the CardFrame's starting address

The 8-position CardFrame Number DIP switch, located on the rear of the CardFrame (FIG. 1 on page 1), sets the starting address (the device number in the D:P:S specification) for the Control Cards installed in the CardFrame. The address range is 12-3060. The formula for setting the starting address is:
(DIP switch address x 12) + Card slot Number (1-12) = Card address
For example:
For DIP switch setting, 00010101: (0 + 0 + 0 + 0 + 96 + 0 + 384 + 1536) + SLOT #
(ex:1) = 2017.
A card in slot number 7 would be device address 2023.
1. Set the CardFrame Number DIP switch based on the information listed in the table below.
supplied with Control Cards.
equipment to the CardFrame.
can be powered via the Master Card (default) or by an external power supply connected to the CardFrame's PWR connector. If a power supply is connected to the PWR connector, the CardFrame power automatically switches to the connected power supply. In that case, the Control Cards and CardFrame are independently powered. A simple rule to follow is that if the CardFrame contains eight or more Control Cards, use two 12 VDC power supplies.
switch address range is 1-3072.
Position 12345678 Value 12 24 48 96 192 384 768 1536
2. Cycle power for approximately 5 seconds, so the system can read the new device number settings.
Factory default DIP switch value = 0 (zero) (All DIP switches are in the OFF position).
NXF CardFrame and NetModules
3
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
3
NXM-NMS
1720 1819 1516 1314 1012 11 896745
ID
NetModule
12
ICSNet PWR
12VDC
NetModule
ID Button
Parallel 12 VDC 2-pin power supply connectors
Control Card slot
Control Card connector
ICSNet RJ-45 connectors
(20-pin)
front
rear

Device:Port:System (D:P:S)

A device is any hardware component that can be connected to an AXlink or ICSNet bus. Each device must be assigned a unique number to locate that device on the bus. The NetLinx programming language allows numbers in the range 0­32,767. Device 0 refers to the local Master; numbers greater than 32,767 are reserved.
NetLinx requires a Device:Port:System (D:P:S) specification. This D:P:S triplet can be expressed as a series of constants, variables separated by colons, or a DEV structure. For example:
STRUCTURE DEV { INTEGER Number // Device number INTEGER Port // Port on device INTEGER System // System the device belongs to }
The D:P:S notation is used to explicitly represent a device number, port and system. For example, 128:1:0 represents the first port on device 128 on this system. If the system and Port specifications are omitted, (e.g. 128), system 0 (indicating this system) and port 1 (the first port) is assumed. Here's the syntax:
NUMBER:PORT:SYSTEM
where:
NUMBER: 16-bit integer represents the device number PORT: 16-bit integer represents the port number (in the range 1 through the number of ports
SYSTEM: 16-bit integer represents the system number (0 = this system)
on the Controller or device)

NXS-NMS NetModules

The NXS-NMS NetModules (FG2009-10) accommodate one NetLinx Control Card, and connect to the NetLinx bus via
ICSNet connections. The NetModules offer a simple and economical way to integrate additional functionality to control systems. FIG. 2 shows a NetModule shell and its main components.
FIG. 2
NXS-NMS NetLinx NetModule shell

NXS-NMS NetModules specifications

The table below lists the NXS-NMS specifications.
NXS-NMS NetModules Specifications
Dimensions (HWD) 1.50" x 5.55" x 9.25" (3.81 cm x 14.10 cm x 23.50 cm) ID button Generates an event from the NetModule to allow you to assign new Device and
System numbers, using ID mode in the NetLinx Studio software program (seeUsing the ID button section on page 4 for details).
Control connector 20-pin black (male) connector that connects the NetModule to external devices.
These connectors are keyed to insure proper installation.
NXF CardFrame and NetModules
4
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
NXS-NMS NetModules Specifications (Cont.)
ICSNet RJ-45 connectors Receives power and data from a NetLinx Master/Hub ICSNet Port.
12 VDC power supply connectors Two parallel male 2-pin (green) parallel connectors for 12 VDC power. Enclosure Metal with black matte finish Included Accessories NetLinx faceplate Optional accessories AC-RK Accessory Rack Kit (holds up to three NetModules)

Mounting modules into an equipment rack

To install the modules in an equipment rack using the optional AC-RK kit:
1. Remove the front faceplate from the module to expose the mounting holes.
2. Mount the module on the AC-RK bracket.
3. Place the AC-RK bracket (with the module) in the equipment rack and secure the bracket to the rack.
4. Replace the front faceplate on the module, and attach the translucent plastic cover to the faceplate (if necessary).

Installing Control Cards into an NXF CardFrame

1.
Remove the magnetic front faceplate/viewing window from the CardFrame.
2. Align the edge of the Control Card with a slot in the CardFrame. Slide the card into the CardFrame and press until
you feel the Card seat in the backplane connector.
3. Put the magnetic faceplate back on the CardFrame. Secure with mounting screws (if necessary).

Preparing/connecting captive wires

1.
Strip 0.25 inch of wire insulation off all wires.
2. Insert each wire into the appropriate opening on the connector according to the wiring diagrams and connector
types described in this section.
3. Tighten the screws to secure the wires in the connector. Do not tighten the screws excessively; doing so may strip
the threads and damage the connector.

Using the ID button

The ID Button on the rear panel of the NetModules (see FIG. 2) is used in conjunction with the NetLinx Studio software program to allow you to assign new Device and System numbers for the Module.
1. Using NetLinx Studio, place the system in Identity (ID) Mode. ID Mode means the entire system is put on hold
while it waits for an event from any NetLinx device in the named system (for example, pushing the ID button on a Module). The device generating the first event is the identified device.
2. Press the ID Mode button to generate an event from the Module and allow you to assign new Device and System
numbers in NetLinx Studio.
An ICSNet port on a NetLinx Master or Hub supplies up to 500 mA at 12 V for module power.

NXC-COM2 Dual COM Port Control Card

5
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
ICSNET Status LED
LED 1
LED 4
NXC-COM2 Dual COM Port Control Card
The NXC-COM2 Dual COM Port Control Card (FG2022) provides two RS-232, RS-422, or RS-485 control ports and
LED feedback for remote sources connected to the NetLinx CardFrame, NI-4000 or NetModule. FIG. 3 shows the COM2 card.
FIG. 3 NXC-COM2 Dual COM Port Control card

Specifications

NXC-COM2 Specifications
Power Requirements: 140 mA @ 12 VDC Operation: Data 1-2: Two RS-232/422/485 control ports, supports XON/XOFF, CTS/RTS,
300-230,400 baud
Status LEDs (2 per channel): • Red LED shows TX (transmit) data activity
• Yellow LED shows RX (receive) data activity
- LED 1: CH1 TX (red)
- LED 2: CH1 RX (yellow)
- LED 3: CH2 TX (red)
- LED 4: CH2 RX (yellow)
• Green ICSP status LED (located on the board):
- On = card is not in communication with the Master.
- Blinks (1-second intervals) during normal operation. Connections/wiring: Two 10-pin 3.5 mm captive-screw terminals DEVICE_ID: $0107
NXC-COM2 Dual COM Port Control Card
6
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide

Pinouts and Wiring Configuration

NXC-COM2 Pinouts NXC-COM2 Wiring Configuration
Pin Signal Function RS-232 RS-422 RS-485
1 GND Signal ground X X 2 RXD1 Receive data X 3 TXD1 Transmit data X 4 CTS1 Clear to send X 5 RTS1 Request to send X 6 TX1+ Transmit data X X (strap to pin 8) 7 TX1- Transmit data X X (strap to pin 9) 8 RX1+ Receive data X X (strap to pin 6) 9 RX1- Receive data X X (strap to pin 7) 10 +12 VDC Power Optional Optional 11 GND Signal ground X X 12 RXD2 Receive data X 13 TXD2 Transmit data X 14 CTS2 Clear to send X 15 RTS2 Request to send X 16 TX2+ Transmit data X X (strap to pin 18) 17 TX2- Transmit data X X (strap to pin 19) 18 RX2+ Receive data X X (strap to pin 16) 19 RX2- Receive data X X (strap to pin 17) 20 +12 VDC Power Optional Optional

NXC-COM2 Channel Assignment

NXC-COM2 Channel Assignment
Channel Description
255 CTS push channel - reflects the state of the CTS input if a 'CTSPSH' command was sent to the device.

NXC-COM2 Programming Information

NXC-COM2 Send_Commands

NXC-COM2 Send_Commands
Command Description
B9MOFF Disable 9-bit in 232/422/455 mode. This command works in conjunction with the B9MON command.
Syntax:
SEND_COMMAND <DEV>,"'B9MOFF'"
Example:
SEND_COMMAND SOMEDEVICE_1,"'B9MOFF'"
Sets the port settings on SOMEDEVICE to match the port's configuration settings.
B9MON Enable 9-bit in 232/422/455 mode. This command works in conjunction with the B9MOFF command.
Syntax:
SEND_COMMAND <DEV>,"'B9MON'"
Example:
SEND_COMMAND SOMEDEVICE_1,"'B9MON'"
Resets the SOMEDEVICE port's communication parameters to nine data bits and one stop bit.
NXC-COM2 Dual COM Port Control Card
7
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
NXC-COM2 Send_Commands (Cont.)
Command Description
CHARD Set the delay time between all transmitted characters to the value specified (in 100 microsecond
increments). Syntax:
SEND_COMMAND <DEV>,"'CHARD-<time>'"
Variable:
time: 0 - 255. Measured in 100 microsecond increments.
Example:
SEND_COMMAND RS232_1,"'CHARD10'"
Sets a 1-millisecond delay between all transmitted characters.
CHARDM Set the delay time between all transmitted characters to the value specified (in 1 millisecond increments).
Syntax:
SEND_COMMAND <DEV>,"'CHARDM-<time>'"
Variable:
time: 0 - 255. Measured in 1 millisecond increments.
Example:
SEND_COMMAND RS232_1,"'CHARDM10'"
Sets a 10-millisecond delay between all transmitted characters.
CTSPSH Enable Pushes, Releases, and status information to be reported via channel 255 using the CTS
hardware handshake input. If Clear To Send (CTS) is high, the channel is On. Syntax:
SEND_COMMAND <DEV>,"'CTSPSH'"
Example:
SEND_COMMAND RS232_1,"'CTSPSH'"
Sets the RS232_1 port to detect changes on the CTS input.
CTSPSH OFF Disable Pushes, Releases, and Status information to be reported via channel 255. If Clear To Send
GET BAUD Get the RS-232/422/485 port’s current communication parameters. Device sends the response out the
HSOFF Disable hardware handshaking (default).
(CTS) is high, the channel is on.
Syntax:
SEND_COMMAND <DEV>,"'CTSPSH OFF'"
Example:
SEND_COMMAND RS232_1,"'CTSPSH OFF'"
Turns off CTSPSH for the specified device. Disables the RS232_1 port to detect changes on the CTS input.
Master program port. Syntax:
SEND_COMMAND <DEV>,"'GET BAUD'"
Example:
SEND_COMMAND RS232_1,"'GET BAUD'"
Device responds with:
<port #>,<baud>,<parity>,<data>,<stop> 485 <ENABLED | DISABLED>
Syntax:
SEND_COMMAND <DEV>,"'HSOFF'"
Example:
SEND_COMMAND RS232_1,"'HSOFF'"
Disables hardware handshaking on the RS232_1 device.
NXC-COM2 Dual COM Port Control Card
8
NetLinx Cardframe, Control Cards, and NetModules - Operation Reference Guide
NXC-COM2 Send_Commands (Cont.)
Command Description
HSON Enable RTS (ready-to-send) and CTS (clear-to-send) hardware handshaking.
Syntax:
SEND_COMMAND <DEV>,"'HSON'"
Example:
SEND_COMMAND RS232_1,"'HSON'"
Enables hardware handshaking on the RS232_1 device.
RXCLR Clear all characters in the receive buffer waiting to be sent to the Master.
Syntax:
SEND_COMMAND <DEV>,"'RXCLR'"
Example:
SEND_COMMAND RS232_1,"'RXCLR'"
Clears all characters in the receive buffer waiting to be sent to the Master.
RXOFF Disable the transmission of incoming received characters to the Master (default).
Syntax:
SEND_COMMAND <DEV>,"'RXOFF'"
Example:
SEND_COMMAND RS232_1,"'RXOFF'"
Disable the transmission of incoming received characters to the Master (default).
RXON Enables sending incoming received characters to the Master. This command is automatically sent by the
Master when a 'CREATE_BUFFER' program instruction is executed. Syntax:
SEND_COMMAND <DEV>,"'RXON'"
Example:
SEND_COMMAND RS232_1,"'RXON'"
Start transmitting received characters to the Master (default).
SET BAUD Set the RS-232/422/485 port's communication parameters.
Syntax:
SEND_COMMAND <DEV>,"'SET BAUD <baud>,<parity>,<data>,<stop> [485 <Enable|Disable>]'"
Variables:
Baud: baud rates are: 230400, 115200, 76800, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, 300, 150.
Parity: N (none), O (odd), E (even), M (mark), S (space) Data: 7 or 8 data bits Stop: 1 or 2 stop bits 485 Disable: Disables RS-485 mode and enables RS-232/422 485 Enable: Enables RS-485 mode and disables RS-234/422
Note: The only valid 9 bit combination is (baud),N,9,1.
Example:
SEND_COMMAND SOMEDEVICE_1,"'SET BAUD 115200,N,8,1, 485 ENABLE'"
Sets the SOMEDEVICE port's communication parameters to 115,200 baud, no parity, 8 data bits, 1 stop bit, and enables RS-485 mode.
Loading...
+ 32 hidden pages